ajay | b3f4098 | 2021-12-08 14:26:11 -0800 | [diff] [blame] | 1 | .. |
| 2 | SPDX-FileCopyrightText: © 2020 Open Networking Foundation <support@opennetworking.org> |
| 3 | SPDX-License-Identifier: Apache-2.0 |
| 4 | |
ajay | ce0380c | 2021-12-14 21:51:00 -0800 | [diff] [blame] | 5 | .. _aiab-guide: |
ajay | 8794529 | 2021-12-08 00:52:00 -0800 | [diff] [blame] | 6 | |
Ajay Lotan Thakur | 05ce5ce | 2022-09-25 20:36:16 -0700 | [diff] [blame] | 7 | Aether In a Box - 4G |
| 8 | ==================== |
ajay | 8794529 | 2021-12-08 00:52:00 -0800 | [diff] [blame] | 9 | |
Ajay Lotan Thakur | 05ce5ce | 2022-09-25 20:36:16 -0700 | [diff] [blame] | 10 | Setting Up Aether-in-a-Box - 4G |
| 11 | ________________________________ |
ajay | 8794529 | 2021-12-08 00:52:00 -0800 | [diff] [blame] | 12 | |
| 13 | Aether-in-a-Box (AiaB) provides an easy way to deploy Aether’s SD-CORE |
| 14 | components and run basic tests to validate the installation. This guide |
| 15 | describes the steps to set up AiaB. |
| 16 | |
| 17 | AiaB can be set up with a 4G or 5G SD-CORE. We use SimApp to configure |
ajay | cbd1706 | 2022-03-06 11:12:58 -0800 | [diff] [blame] | 18 | the required subscribers & network slices in SD-CORE for testing core |
| 19 | functionality. |
ajay | 8794529 | 2021-12-08 00:52:00 -0800 | [diff] [blame] | 20 | |
| 21 | Helm charts are the primary method of installing the SD-CORE resources. |
| 22 | AiaB offers a great deal of flexibility regarding which Helm chart |
| 23 | versions to install: |
| 24 | |
| 25 | * Local definitions of charts (for testing Helm chart changes) |
| 26 | * Latest published charts (for deploying a development version of Aether) |
| 27 | * Specified versions of charts (for deploying a specific Aether release) |
| 28 | |
| 29 | AiaB can be run on a bare metal machine or VM. System prerequisites: |
| 30 | |
Ajay Lotan Thakur | 05ce5ce | 2022-09-25 20:36:16 -0700 | [diff] [blame] | 31 | * Ubuntu 18.04 or later |
ajay | 8794529 | 2021-12-08 00:52:00 -0800 | [diff] [blame] | 32 | * Kernel 4.15 or later |
| 33 | * Haswell CPU or newer |
| 34 | |
| 35 | Clone Repositories |
| 36 | __________________ |
| 37 | |
Ajay Lotan Thakur | 05ce5ce | 2022-09-25 20:36:16 -0700 | [diff] [blame] | 38 | To initialize the AiaB environment, first clone the following repository:: |
ajay | 8794529 | 2021-12-08 00:52:00 -0800 | [diff] [blame] | 39 | |
| 40 | cd ~ |
ajay | cbd1706 | 2022-03-06 11:12:58 -0800 | [diff] [blame] | 41 | git clone "https://gerrit.opencord.org/aether-in-a-box" |
ajay | 8794529 | 2021-12-08 00:52:00 -0800 | [diff] [blame] | 42 | |
| 43 | mkdir -p ~/cord |
| 44 | cd ~/cord |
ajay | cbd1706 | 2022-03-06 11:12:58 -0800 | [diff] [blame] | 45 | git clone "https://gerrit.opencord.org/sdcore-helm-charts" |
ajay | 8794529 | 2021-12-08 00:52:00 -0800 | [diff] [blame] | 46 | |
ajay | cbd1706 | 2022-03-06 11:12:58 -0800 | [diff] [blame] | 47 | .. note:: |
| 48 | Only one version of the SD-CORE (4G or 5G) can be installed in AIAB environment |
| 49 | at a time. The first time you build AiaB, it takes a while because it sets up the |
| 50 | Kubernetes cluster. Subsequent builds will be much faster if you follow below steps |
| 51 | to delete & redeploy SD-Core (4G/5G) without destroying the Kubernetes |
ajay | 8794529 | 2021-12-08 00:52:00 -0800 | [diff] [blame] | 52 | |
Ajay Lotan Thakur | 05ce5ce | 2022-09-25 20:36:16 -0700 | [diff] [blame] | 53 | Running 4G Test |
ajay | cbd1706 | 2022-03-06 11:12:58 -0800 | [diff] [blame] | 54 | ________________ |
ajay | 8794529 | 2021-12-08 00:52:00 -0800 | [diff] [blame] | 55 | |
Ajay Lotan Thakur | 05ce5ce | 2022-09-25 20:36:16 -0700 | [diff] [blame] | 56 | To deploy 4G SD-CORE using local helm charts:: |
ajay | 8794529 | 2021-12-08 00:52:00 -0800 | [diff] [blame] | 57 | |
Ajay Lotan Thakur | 5aaab13 | 2022-06-22 21:54:58 -0700 | [diff] [blame] | 58 | make 4g-core |
ajay | 8794529 | 2021-12-08 00:52:00 -0800 | [diff] [blame] | 59 | |
ajay | cbd1706 | 2022-03-06 11:12:58 -0800 | [diff] [blame] | 60 | To delete 4G SD-CORE deployment :: |
ajay | 8794529 | 2021-12-08 00:52:00 -0800 | [diff] [blame] | 61 | |
ajay | cbd1706 | 2022-03-06 11:12:58 -0800 | [diff] [blame] | 62 | make reset-test |
| 63 | |
| 64 | The above step performs UE attach and data test. If you wish to update any images |
| 65 | of SD-Core 4G components then edit file in *~/aether-in-a-box/sd-core-4g-values.yaml*. |
| 66 | After updating config in *sd-core-4g-values.yaml* you can reset deployment and run |
| 67 | the test again. |
| 68 | |
ajay | 8794529 | 2021-12-08 00:52:00 -0800 | [diff] [blame] | 69 | Developer Loop |
| 70 | ______________ |
| 71 | |
Ajay Lotan Thakur | 05ce5ce | 2022-09-25 20:36:16 -0700 | [diff] [blame] | 72 | Suppose you wish to test a new build of a 4G SD-CORE services. You can deploy |
| 73 | custom images by editing ~/aether-in-a-box/sd-core-4g-values.yaml, for example:: |
ajay | 8794529 | 2021-12-08 00:52:00 -0800 | [diff] [blame] | 74 | |
| 75 | images: |
| 76 | tags: |
Ajay Lotan Thakur | 05ce5ce | 2022-09-25 20:36:16 -0700 | [diff] [blame] | 77 | spgwc: omecproject/spgw:master-e419062 |
ajay | 8794529 | 2021-12-08 00:52:00 -0800 | [diff] [blame] | 78 | |
Ajay Lotan Thakur | 05ce5ce | 2022-09-25 20:36:16 -0700 | [diff] [blame] | 79 | To upgrade a running 4G SD-CORE with the new image, or to redeploy the 4G SD-CORE |
ajay | 8794529 | 2021-12-08 00:52:00 -0800 | [diff] [blame] | 80 | with the image:: |
| 81 | |
Ajay Lotan Thakur | 05ce5ce | 2022-09-25 20:36:16 -0700 | [diff] [blame] | 82 | make reset-test # delete 4G deployment if it was already started before updating image |
| 83 | make 4g-test #now this deployment will use new webui image |
ajay | 8794529 | 2021-12-08 00:52:00 -0800 | [diff] [blame] | 84 | |
| 85 | Troubleshooting / Known Issues |
| 86 | ______________________________ |
| 87 | |
Ajay Lotan Thakur | 05ce5ce | 2022-09-25 20:36:16 -0700 | [diff] [blame] | 88 | Deployment Status |
| 89 | """""""""""""""""" |
| 90 | |
ajay | 8794529 | 2021-12-08 00:52:00 -0800 | [diff] [blame] | 91 | If you suspect a problem, first verify that all pods are in Running state:: |
| 92 | |
| 93 | kubectl -n omec get pods |
ajay | 8794529 | 2021-12-08 00:52:00 -0800 | [diff] [blame] | 94 | |
| 95 | If the pods are stuck in ImagePullBackOff state, then it’s likely an issue |
ajay | cbd1706 | 2022-03-06 11:12:58 -0800 | [diff] [blame] | 96 | with image name. |
ajay | 8794529 | 2021-12-08 00:52:00 -0800 | [diff] [blame] | 97 | |
Ajay Lotan Thakur | 05ce5ce | 2022-09-25 20:36:16 -0700 | [diff] [blame] | 98 | Test Failure |
| 99 | """""""""""" |
ajay | 8794529 | 2021-12-08 00:52:00 -0800 | [diff] [blame] | 100 | |
Ajay Lotan Thakur | 5aaab13 | 2022-06-22 21:54:58 -0700 | [diff] [blame] | 101 | Occasionally make 4g-core (for 4G) fails for unknown reasons; this is true |
ajay | 8794529 | 2021-12-08 00:52:00 -0800 | [diff] [blame] | 102 | regardless of which Helm charts are used. If this happens, first try |
Ajay Lotan Thakur | 5aaab13 | 2022-06-22 21:54:58 -0700 | [diff] [blame] | 103 | cleaning up AiaB and re-running the test. If make 4g-core fails consistently, |
ajay | cbd1706 | 2022-03-06 11:12:58 -0800 | [diff] [blame] | 104 | then try to debug the issue by looking at spgwc, mme logs. |