Skip to content

Instantly share code, notes, and snippets.

## Sanity Tests
### TC001_SANITY_control_50UE_3rate.py
**Summary -**
Sanity test case that setups up the S1 connection and `attaches` a low number of users to the AGW.
**Setup -**
* Total Subs - 50
* Total eNBs - 12
#######################
# terraform show
#######################
...
resource "aws_db_instance" "default" {
address = "orc8rdb.cg2lehhvclgn.us-west-2.rds.amazonaws.com"
allocated_storage = 64
@sudhikan
sudhikan / gist:6fed0557b7713625fb734239073f5cae
Created November 23, 2021 06:18
Terraform Plan - apply immediately false
Resource actions are indicated with the following symbols:
~ update in-place
<= read (data resources)
Terraform will perform the following actions:
# module.orc8r.data.aws_iam_policy_document.es-management[0] will be read during apply
# (config refers to values not yet known)
<= data "aws_iam_policy_document" "es-management" {
~ id = "295713799" -> (known after apply)
@sudhikan
sudhikan / gist:f18f7388abbf098ed2cf1b67f8c30bfd
Created November 23, 2021 06:17
Terraform Apply -DB Upgrade
cloudstrapper:~/magma-experimental/sudhi_db_test/terraform #terraform apply -auto-approve
module.orc8r.tls_private_key.eks_workers[0]: Refreshing state... [id=5c9c0001df1f50b1ab32be4c33871ac8b0960678]
module.orc8r.module.eks.aws_cloudwatch_log_group.this[0]: Refreshing state... [id=/aws/eks/orc8r/cluster]
module.orc8r.module.vpc.aws_vpc.this[0]: Refreshing state... [id=vpc-087b96bed41ece561]
module.orc8r.aws_secretsmanager_secret.orc8r_secrets: Refreshing state... [id=arn:aws:secretsmanager:eu-west-2:007606123670:secret:orc8r-secrets-eBTB7W]
module.orc8r.aws_key_pair.eks_workers[0]: Refreshing state... [id=orc8r20211123002523644700000001]
module.orc8r.aws_sns_topic.sns_orc8r_topic: Refreshing state... [id=arn:aws:sns:eu-west-2:007606123670:orc8r-sns]
module.orc8r.aws_efs_file_system.eks_pv: Refreshing state... [id=fs-07dac22e206227dcb]
module.orc8r.aws_route53_zone.orc8r: Refreshing state... [id=Z09497822BSOBQXO8MB6H]
module.orc8r.module.eks.aws_iam_role.cluster[0]: Refreshing state... [id=orc8r20211123002523
@sudhikan
sudhikan / gist:f05c52eab4ec66e00ef928dc3edf6669
Created November 23, 2021 06:16
Terraform Plan (DB Upgrade)
An execution plan has been generated and is shown below.
Resource actions are indicated with the following symbols:
~ update in-place
<= read (data resources)
Terraform will perform the following actions:
# module.orc8r.data.aws_iam_policy_document.es-management[0] will be read during apply
# (config refers to values not yet known)
<= data "aws_iam_policy_document" "es-management" {
@sudhikan
sudhikan / gist:f4d36e4d87377a0456d841cf16e394ba
Created October 15, 2021 22:55
HIL FEATURE TC002, TC005, TC010
2021-10-15 15:28:04,042 MAGMA_AUTOMATION DEBUG http://192.168.0.142:8080 "GET /api/runningTests/911 HTTP/1.1" 200 2608
2021-10-15 15:28:04,043 MAGMA_AUTOMATION DEBUG Test id 911 on going
2021-10-15 15:28:04,044 MAGMA_AUTOMATION DEBUG Starting new HTTP connection (1): 192.168.0.142:8080
2021-10-15 15:28:04,066 MAGMA_AUTOMATION DEBUG http://192.168.0.142:8080 "GET /api/runningTests/911/measurements HTTP/1.1" 200 36515
2021-10-15 15:28:04,093 MAGMA_AUTOMATION DEBUG TC002_FEATURE_X2_HO_200UE_6enbs_500k_600sec L3 Server current data traffic bits/sec 107,886,710.314
2021-10-15 15:28:04,093 MAGMA_AUTOMATION DEBUG TC002_FEATURE_X2_HO_200UE_6enbs_500k_600sec L3 Client current data traffic bits/sec 107,873,760
2021-10-15 15:28:14,096 MAGMA_AUTOMATION DEBUG Starting new HTTP connection (1): 192.168.0.142:8080
2021-10-15 15:28:14,118 MAGMA_AUTOMATION DEBUG http://192.168.0.142:8080 "GET /api/runningTests/911 HTTP/1.1" 200 2608
2021-10-15 15:28:14,119 MAGMA_AUTOMATION DEBUG Test id 911 on going
2021-10-15 15:28:14,120 MAG
################################################################################
# Copyright 2020 The Magma Authors.
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
cloudstrapper:~/magma-dev/magma/experimental/cloudstrapper/playbooks #ansible-playbook orc8r.yaml -e '@/home/ubuntu/magma-experimental/params.yaml'
[WARNING]: provided hosts list is empty, only localhost is available. Note that the implicit localhost does not match 'all'
PLAY [localhost] *******************************************************************************************************************************************************
TASK [Gathering Facts] *************************************************************************************************************************************************
ok: [localhost]
TASK [control : create certs directory] ********************************************************************************************************************************
changed: [localhost]
cloudstrapper:~/magma-experimental/ens15to161/terraform #terraform init --upgrade
Upgrading modules...
Downloading github.com/magma/magma?ref=v1.6 for orc8r...
- orc8r in .terraform/modules/orc8r/orc8r/cloud/deploy/terraform/orc8r-aws
Downloading terraform-aws-modules/eks/aws 17.0.3 for orc8r.eks...
- orc8r.eks in .terraform/modules/orc8r.eks
- orc8r.eks.fargate in .terraform/modules/orc8r.eks/modules/fargate
- orc8r.eks.node_groups in .terraform/modules/orc8r.eks/modules/node_groups
Downloading terraform-aws-modules/vpc/aws 2.17.0 for orc8r.vpc...
- orc8r.vpc in .terraform/modules/orc8r.vpc
2021-10-06 00:15:14,693 MAGMA_AUTOMATION INFO process pid dict before test {'enodebd': '176542', 'pipelined': '177909', 'directoryd': '176540', 'policydb': '176545', 'subscriberdb': '176550', 'envoy_controller': '177884', 'control_proxy': '176591', 'sessiond': '177821', 'magmad': '176402', 'smsd': '176547', 'redis': '176616', 'mme': '177950', 'mobilityd': '177820', 'eventd': '176543', 'health': '176544', 'state': '176548', 'td-agent-bit': '176621', 'ctraced': '176539', 'dnsd': '176620', 'core_files': ['NO_CORE']}
2021-10-06 00:15:14,693 MAGMA_AUTOMATION INFO process pid dict after test {'enodebd': '176542', 'pipelined': '177909', 'directoryd': '176540', 'policydb': '176545', 'subscriberdb': '176550', 'envoy_controller': '177884', 'control_proxy': '176591', 'sessiond': '177821', 'magmad': '176402', 'smsd': '176547', 'redis': '176616', 'mme': '177950', 'mobilityd': '177820', 'eventd': '176543', 'health': '176544', 'state': '176548', 'td-agent-bit': '176621', 'ctraced': '176539', 'dnsd': '176620', 'core_files':