Scott Baker | fab7c9e | 2021-07-29 17:12:16 -0700 | [diff] [blame] | 1 | .. vim: syntax=rst |
| 2 | |
Scott Baker | f07ec23 | 2022-03-08 12:20:24 -0800 | [diff] [blame] | 3 | .. _roc-developer-guide: |
| 4 | |
Scott Baker | fab7c9e | 2021-07-29 17:12:16 -0700 | [diff] [blame] | 5 | Aether ROC Developer Guide |
| 6 | ========================== |
| 7 | |
| 8 | Background / Development Environment |
| 9 | ------------------------------------ |
| 10 | |
| 11 | This document assumes familiarity with Kubernetes and Helm, and that a Kubernetes/Helm development |
| 12 | environment has already been deployed in the developer’s work environment. |
Zack Williams | 1ae109e | 2021-07-27 11:17:04 -0700 | [diff] [blame] | 13 | |
| 14 | This development environment can use any of a number of potential mechanisms -- including KinD, kubeadm, etc. |
| 15 | |
Scott Baker | fab7c9e | 2021-07-29 17:12:16 -0700 | [diff] [blame] | 16 | The Aether-in-a-Box script is one potential way to setup a development environment, but not the only way. |
| 17 | As an alternative to the developer’s local machine, a remote environment can be set up, for example on |
Zack Williams | 1ae109e | 2021-07-27 11:17:04 -0700 | [diff] [blame] | 18 | cloud infrastructure such as Cloudlab. |
Scott Baker | fab7c9e | 2021-07-29 17:12:16 -0700 | [diff] [blame] | 19 | |
Sean Condon | eb95cd6 | 2021-08-04 19:44:18 +0100 | [diff] [blame] | 20 | .. note:: When ROC is deployed it is unsecured by default, with no Authentication or Authorization. |
| 21 | To secure ROC so that the Authentication and Authorization can be tested, follow the Securing ROC |
| 22 | guide below :ref:`securing_roc` |
| 23 | |
Scott Baker | fab7c9e | 2021-07-29 17:12:16 -0700 | [diff] [blame] | 24 | Installing Prerequisites |
| 25 | ------------------------ |
| 26 | |
| 27 | Atomix and onos-operator must be installed:: |
| 28 | |
| 29 | # create necessary namespaces |
| 30 | kubectl create namespace micro-onos |
| 31 | |
Andy Bavier | 4c42541 | 2021-08-27 14:39:38 -0700 | [diff] [blame] | 32 | # add repos |
| 33 | helm repo add atomix https://charts.atomix.io |
| 34 | helm repo add onosproject https://charts.onosproject.org |
| 35 | helm repo update |
| 36 | |
Scott Baker | fab7c9e | 2021-07-29 17:12:16 -0700 | [diff] [blame] | 37 | # install atomix |
SeanCondon | 909d55b | 2022-04-25 17:59:46 +0100 | [diff] [blame] | 38 | export ATOMIX_CONTROLLER_VERSION=0.6.9 |
Sean Condon | 257687f | 2021-08-23 11:13:20 +0100 | [diff] [blame] | 39 | helm -n kube-system install atomix-controller atomix/atomix-controller --version $ATOMIX_CONTROLLER_VERSION |
SeanCondon | 909d55b | 2022-04-25 17:59:46 +0100 | [diff] [blame] | 40 | export ATOMIX_RAFT_VERSION=0.1.26 |
Sean Condon | 70dcf70 | 2021-08-24 10:57:29 +0100 | [diff] [blame] | 41 | helm -n kube-system install atomix-raft-storage atomix/atomix-raft-storage --version $ATOMIX_RAFT_VERSION |
Scott Baker | fab7c9e | 2021-07-29 17:12:16 -0700 | [diff] [blame] | 42 | |
| 43 | # install the onos operator |
SeanCondon | 909d55b | 2022-04-25 17:59:46 +0100 | [diff] [blame] | 44 | ONOS_OPERATOR_VERSION=0.5.3 |
Sean Condon | 257687f | 2021-08-23 11:13:20 +0100 | [diff] [blame] | 45 | helm install -n kube-system onos-operator onosproject/onos-operator --version $ONOS_OPERATOR_VERSION |
Scott Baker | fab7c9e | 2021-07-29 17:12:16 -0700 | [diff] [blame] | 46 | |
Sean Condon | 257687f | 2021-08-23 11:13:20 +0100 | [diff] [blame] | 47 | .. note:: The ROC is sensitive to the versions of Atomix and onos-operator installed. The values |
Sean Condon | 8d55a1e | 2021-11-11 12:49:00 +0000 | [diff] [blame] | 48 | shown above are correct for the 1.4.42- versions of the *aether-roc-umbrella*. |
Sean Condon | 257687f | 2021-08-23 11:13:20 +0100 | [diff] [blame] | 49 | |
| 50 | .. list-table:: ROC support component version matrix |
Sean Condon | 70dcf70 | 2021-08-24 10:57:29 +0100 | [diff] [blame] | 51 | :widths: 40 20 20 20 |
Sean Condon | 257687f | 2021-08-23 11:13:20 +0100 | [diff] [blame] | 52 | :header-rows: 1 |
| 53 | |
| 54 | * - ROC Version |
| 55 | - Atomix Controller |
| 56 | - Atomix Raft |
| 57 | - Onos Operator |
Sean Condon | 70dcf70 | 2021-08-24 10:57:29 +0100 | [diff] [blame] | 58 | * - 1.2.25-1.2.45 |
Sean Condon | 257687f | 2021-08-23 11:13:20 +0100 | [diff] [blame] | 59 | - 0.6.7 |
| 60 | - 0.1.8 |
| 61 | - 0.4.8 |
Zack Williams | 90578fa | 2021-11-04 11:57:23 -0700 | [diff] [blame] | 62 | * - 1.3.0-1.3.10 |
Sean Condon | 70dcf70 | 2021-08-24 10:57:29 +0100 | [diff] [blame] | 63 | - 0.6.8 |
| 64 | - 0.1.9 |
Sean Condon | 1df1fcf | 2021-09-20 09:45:39 +0100 | [diff] [blame] | 65 | - 0.4.10 |
Zack Williams | 90578fa | 2021-11-04 11:57:23 -0700 | [diff] [blame] | 66 | * - 1.3.11-,1.4.0- |
| 67 | - 0.6.8 |
| 68 | - 0.1.14 |
| 69 | - 0.4.12 |
Sean Condon | 8d55a1e | 2021-11-11 12:49:00 +0000 | [diff] [blame] | 70 | * - 1.4.42- |
| 71 | - 0.6.8 |
| 72 | - 0.1.15 |
| 73 | - 0.4.14 |
Scott Baker | 6bd3d19 | 2022-03-03 14:50:38 -0800 | [diff] [blame] | 74 | * - 2.0.29- |
| 75 | - 0.6.8 |
| 76 | - 0.1.16 |
| 77 | - 0.5.1 |
SeanCondon | 909d55b | 2022-04-25 17:59:46 +0100 | [diff] [blame] | 78 | * - 2.1.8- |
| 79 | - 0.6.9 |
| 80 | - 0.1.26 |
| 81 | - 0.5.3 |
Scott Baker | fab7c9e | 2021-07-29 17:12:16 -0700 | [diff] [blame] | 82 | |
| 83 | Verify that these services were installed properly. |
| 84 | You should see pods for *atomix-controller*, *atomix-raft-storage-controller*, |
SeanCondon | 909d55b | 2022-04-25 17:59:46 +0100 | [diff] [blame] | 85 | *onos-operator-app*, and *onos-operator-topo*. |
Scott Baker | fab7c9e | 2021-07-29 17:12:16 -0700 | [diff] [blame] | 86 | Execute these commands:: |
| 87 | |
Sean Condon | 257687f | 2021-08-23 11:13:20 +0100 | [diff] [blame] | 88 | helm -n kube-system list |
Scott Baker | fab7c9e | 2021-07-29 17:12:16 -0700 | [diff] [blame] | 89 | kubectl -n kube-system get pods | grep -i atomix |
| 90 | kubectl -n kube-system get pods | grep -i onos |
| 91 | |
Scott Baker | fab7c9e | 2021-07-29 17:12:16 -0700 | [diff] [blame] | 92 | Create a values-override.yaml |
| 93 | ----------------------------- |
| 94 | |
| 95 | You’ll want to override several of the defaults in the ROC helm charts:: |
| 96 | |
| 97 | cat > values-override.yaml <<EOF |
SeanCondon | 909d55b | 2022-04-25 17:59:46 +0100 | [diff] [blame] | 98 | aether-roc-gui-v2-1: |
Scott Baker | b46a6ed | 2021-08-02 14:03:10 -0700 | [diff] [blame] | 99 | ingress: |
| 100 | enabled: false |
Scott Baker | fab7c9e | 2021-07-29 17:12:16 -0700 | [diff] [blame] | 101 | EOF |
| 102 | |
Zack Williams | 1ae109e | 2021-07-27 11:17:04 -0700 | [diff] [blame] | 103 | Installing the ``aether-roc-umbrella`` Helm chart |
| 104 | ------------------------------------------------- |
Scott Baker | fab7c9e | 2021-07-29 17:12:16 -0700 | [diff] [blame] | 105 | |
| 106 | Add the necessary helm repositories:: |
| 107 | |
Scott Baker | 6bd3d19 | 2022-03-03 14:50:38 -0800 | [diff] [blame] | 108 | helm repo add aether https://charts.aetherproject.org |
Scott Baker | fab7c9e | 2021-07-29 17:12:16 -0700 | [diff] [blame] | 109 | |
Zack Williams | 1ae109e | 2021-07-27 11:17:04 -0700 | [diff] [blame] | 110 | ``aether-roc-umbrella`` will bring up the ROC and its services:: |
Scott Baker | fab7c9e | 2021-07-29 17:12:16 -0700 | [diff] [blame] | 111 | |
Sean Condon | 1df1fcf | 2021-09-20 09:45:39 +0100 | [diff] [blame] | 112 | helm -n micro-onos install aether-roc-umbrella aether/aether-roc-umbrella -f values-override.yaml |
Scott Baker | fab7c9e | 2021-07-29 17:12:16 -0700 | [diff] [blame] | 113 | |
| 114 | kubectl wait pod -n micro-onos --for=condition=Ready -l type=config --timeout=300s |
| 115 | |
| 116 | |
Sean Condon | f918f64 | 2021-08-04 14:32:53 +0100 | [diff] [blame] | 117 | .. _posting-the-mega-patch: |
| 118 | |
Scott Baker | fab7c9e | 2021-07-29 17:12:16 -0700 | [diff] [blame] | 119 | Posting the mega-patch |
| 120 | ---------------------- |
| 121 | |
| 122 | The ROC usually comes up in a blank state -- there are no Enterprises, UEs, or other artifacts present in it. |
| 123 | The mega-patch is an example patch that populates the ROC with some sample enterprises, UEs, slices, etc. |
SeanCondon | 909d55b | 2022-04-25 17:59:46 +0100 | [diff] [blame] | 124 | |
Scott Baker | fab7c9e | 2021-07-29 17:12:16 -0700 | [diff] [blame] | 125 | Execute the following:: |
| 126 | |
| 127 | # launch a port-forward for the API |
| 128 | # this will continue to run in the background |
SeanCondon | 909d55b | 2022-04-25 17:59:46 +0100 | [diff] [blame] | 129 | |
Scott Baker | fab7c9e | 2021-07-29 17:12:16 -0700 | [diff] [blame] | 130 | kubectl -n micro-onos port-forward service/aether-roc-api --address 0.0.0.0 8181:8181 & |
| 131 | |
SeanCondon | 909d55b | 2022-04-25 17:59:46 +0100 | [diff] [blame] | 132 | curl http://localhost:8181/targets |
| 133 | # It should show a list of the configure enterprises: [{"name":"defaultent"},{"name":"acme"},{"name":"starbucks"} |
| 134 | |
Scott Baker | fab7c9e | 2021-07-29 17:12:16 -0700 | [diff] [blame] | 135 | git clone https://github.com/onosproject/aether-roc-api.git |
| 136 | |
| 137 | # execute the mega-patch (it will post via CURL to localhost:8181) |
Scott Baker | ae02410 | 2022-02-23 10:55:28 -0800 | [diff] [blame] | 138 | bash ~/path/to/aether-roc-api/examples/MEGA_Patch_20.curl |
Scott Baker | fab7c9e | 2021-07-29 17:12:16 -0700 | [diff] [blame] | 139 | |
SeanCondon | 909d55b | 2022-04-25 17:59:46 +0100 | [diff] [blame] | 140 | .. note:: To configure Aether-In-a-Box - no port-forward is necessary - use the URL *http://<hostname>:31194/aether-roc-api/* |
Scott Baker | fab7c9e | 2021-07-29 17:12:16 -0700 | [diff] [blame] | 141 | |
| 142 | You may wish to customize the mega patch. |
Zack Williams | 1ae109e | 2021-07-27 11:17:04 -0700 | [diff] [blame] | 143 | |
| 144 | For example, by default the patch configures the ``sdcore-adapter`` to push to |
| 145 | ``sdcore-test-dummy``. |
| 146 | |
Scott Baker | fab7c9e | 2021-07-29 17:12:16 -0700 | [diff] [blame] | 147 | You could configure it to push to a live aether-in-a-box core by doing something like this:: |
| 148 | |
SeanCondon | 909d55b | 2022-04-25 17:59:46 +0100 | [diff] [blame] | 149 | sed -i 's^http://aether-roc-umbrella-sdcore-test-dummy/v1/config/5g^http://webui.omec.svc.cluster.local:9089/config^g' MEGA_Patch_21.curl |
Scott Baker | fab7c9e | 2021-07-29 17:12:16 -0700 | [diff] [blame] | 150 | |
| 151 | #apply the patch |
Scott Baker | ae02410 | 2022-02-23 10:55:28 -0800 | [diff] [blame] | 152 | ./MEGA_Patch_20.curl |
Scott Baker | fab7c9e | 2021-07-29 17:12:16 -0700 | [diff] [blame] | 153 | |
| 154 | (Note that if your Aether-in-a-Box was installed on a different machine that port-forwarding may be necessary) |
| 155 | |
| 156 | |
| 157 | Expected CURL output from a successful mega-patch post will be a UUID. |
Zack Williams | 1ae109e | 2021-07-27 11:17:04 -0700 | [diff] [blame] | 158 | |
| 159 | You can also verify that the mega-patch was successful by going into the |
| 160 | ``aether-roc-gui`` in a browser (see the section on useful port-forwards |
| 161 | below). The GUI may open to a dashboard that is unpopulated -- you can use the |
| 162 | dropdown menu (upper-right hand corner of the screen) to select an object such |
Scott Baker | ae02410 | 2022-02-23 10:55:28 -0800 | [diff] [blame] | 163 | as Slice and you will see a list of slices. |
Scott Baker | fab7c9e | 2021-07-29 17:12:16 -0700 | [diff] [blame] | 164 | |
| 165 | |ROCGUI| |
| 166 | |
SeanCondon | 909d55b | 2022-04-25 17:59:46 +0100 | [diff] [blame] | 167 | Adding new Enterprises |
| 168 | ---------------------- |
| 169 | |
| 170 | Enterprises are stored in `onos-topo` outside of `onos-config` are are usually only created by system administrators |
| 171 | during the onboarding of new customers (tenants) on Aether. |
| 172 | |
| 173 | There is currently no way of adding new Enterprises through the ROC GUI or the ROC API - it can be |
| 174 | done in the 2 ways in the following sections. |
| 175 | |
| 176 | Enterprises are specified as Entities using CRDs, and the `onos-operator` ensures that these are created |
| 177 | as `entitites` inside `onos-topo`. |
| 178 | |
| 179 | To check that the current list of enterprises (as CRDs), the following command may be used:: |
| 180 | |
| 181 | kubectl -n micro-onos get entities |
| 182 | |
| 183 | and to check that the `onos-operator` does indeed take effect, the ROC API endpoint `/targets` can be used to list the |
| 184 | `enterprises`. |
| 185 | |
| 186 | Another option is to use the `onos-cli` pod to query `onos-topo` directly:: |
| 187 | |
| 188 | kubectl -n micro-onos exec deployment/onos-cli -- onos topo get entities -v |
| 189 | |
| 190 | Adding new Enterprises through Helm Chart |
| 191 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 192 | |
| 193 | To have an entity added at **start up of the cluster** it can be added through the Helm Chart in the `values.yaml` |
| 194 | under `enterprises`. e.g.:: |
| 195 | |
| 196 | enterprises: |
| 197 | - id: starbucks |
| 198 | name: Starbucks Enterprise |
| 199 | lat: 52.5150 |
| 200 | long: 13.3885 |
| 201 | |
| 202 | This will load the `enterprise` as an Entity CRD through the `onos-operator`. |
| 203 | |
| 204 | Adding new Enterprises through `onos-topo` |
| 205 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 206 | |
| 207 | New `enterprises` can be added to a live running system through the `onos-topo` command line (bypassing |
| 208 | the `onos-operator`). For example:: |
| 209 | |
| 210 | kubectl -n micro-onos exec deployment/onos-cli -- \ |
| 211 | onos topo create entity new-enterprise \ |
| 212 | -a onos.topo.Configurable='{"address”:”sdcore-adapter-v2-1:5150”,”version”:”2.1.x”,”type”:”aether”}' \ |
| 213 | -a onos.topo.TLSOptions='{"insecure":true}' \ |
| 214 | -a onos.topo.Asset='{"name”:”New Enterprise”}' \ |
| 215 | -a onos.topo.MastershipState='{}' \ |
| 216 | -k aether |
| 217 | |
Zack Williams | 1ae109e | 2021-07-27 11:17:04 -0700 | [diff] [blame] | 218 | Uninstalling the ``aether-roc-umbrella`` Helm chart |
| 219 | --------------------------------------------------- |
Scott Baker | fab7c9e | 2021-07-29 17:12:16 -0700 | [diff] [blame] | 220 | |
| 221 | To tear things back down, usually as part of a developer loop prior to redeploying again, do the following:: |
| 222 | |
| 223 | helm -n micro-onos del aether-roc-umbrella |
| 224 | |
| 225 | If the uninstall hangs or if a subsequent reinstall hangs, it could be an issue with some of the CRDs |
| 226 | not getting cleaned up. The following may be useful:: |
| 227 | |
Sean Condon | 8d55a1e | 2021-11-11 12:49:00 +0000 | [diff] [blame] | 228 | # fix stuck finalizers in operator CRDs |
Scott Baker | 6bd3d19 | 2022-03-03 14:50:38 -0800 | [diff] [blame] | 229 | kubectl -n micro-onos patch entities connectivity-service-v2 --type json --patch='[ { "op": "remove", "path": "/metadata/finalizers" } ]' && \ |
SeanCondon | 909d55b | 2022-04-25 17:59:46 +0100 | [diff] [blame] | 230 | kubectl -n micro-onos patch entities starbucks --type json --patch='[ { "op": "remove", "path": "/metadata/finalizers" } ]' && \ |
| 231 | kubectl -n micro-onos patch entities acme-v2 --type json --patch='[ { "op": "remove", "path": "/metadata/finalizers" } ]' && \ |
| 232 | kubectl -n micro-onos patch entities defult-ent --type json --patch='[ { "op": "remove", "path": "/metadata/finalizers" } ]' && \ |
Sean Condon | 8d55a1e | 2021-11-11 12:49:00 +0000 | [diff] [blame] | 233 | kubectl -n micro-onos patch entities plproxy-amp --type json --patch='[ { "op": "remove", "path": "/metadata/finalizers" } ]' && \ |
| 234 | kubectl -n micro-onos patch entities plproxy-acc --type json --patch='[ { "op": "remove", "path": "/metadata/finalizers" } ]' && \ |
| 235 | kubectl -n micro-onos patch kind plproxy --type json --patch='[ { "op": "remove", "path": "/metadata/finalizers" } ]' && \ |
| 236 | kubectl -n micro-onos patch kind aether --type json --patch='[ { "op": "remove", "path": "/metadata/finalizers" } ]' |
Scott Baker | fab7c9e | 2021-07-29 17:12:16 -0700 | [diff] [blame] | 237 | |
Scott Baker | fab7c9e | 2021-07-29 17:12:16 -0700 | [diff] [blame] | 238 | |
| 239 | Useful port forwards |
| 240 | -------------------- |
| 241 | |
| 242 | Port forwarding is often necessary to allow access to ports inside of Kubernetes pods that use ClusterIP addressing. |
| 243 | Note that you typically need to leave a port-forward running (you can put it in the background). |
| 244 | Also, If you redeploy the ROC and/or if a pod crashes then you might have to restart a port-forward. |
SeanCondon | 909d55b | 2022-04-25 17:59:46 +0100 | [diff] [blame] | 245 | |
| 246 | .. note:: With Aether-In-a-Box no port-forward is necessary - the GUI can be accessed |
| 247 | at ``http://<hostname>:31194`` and the API at ``http://<hostname>:31194/aether-roc-api/`` |
| 248 | |
Scott Baker | fab7c9e | 2021-07-29 17:12:16 -0700 | [diff] [blame] | 249 | The following port-forwards may be useful:: |
| 250 | |
| 251 | # aether-roc-api |
| 252 | |
| 253 | kubectl -n micro-onos port-forward service/aether-roc-api --address 0.0.0.0 8181:8181 |
| 254 | |
| 255 | # aether-roc-gui |
| 256 | |
SeanCondon | 909d55b | 2022-04-25 17:59:46 +0100 | [diff] [blame] | 257 | kubectl -n micro-onos port-forward service/aether-roc-gui-v2-1 --address 0.0.0.0 8183:80 |
Scott Baker | fab7c9e | 2021-07-29 17:12:16 -0700 | [diff] [blame] | 258 | |
| 259 | # grafana |
| 260 | |
| 261 | kubectl -n micro-onos port-forward service/aether-roc-umbrella-grafana --address 0.0.0.0 8187:80 |
| 262 | |
Zack Williams | 1ae109e | 2021-07-27 11:17:04 -0700 | [diff] [blame] | 263 | ``aether-roc-api`` and ``aether-roc-gui`` are in our experience the most useful two port-forwards. |
| 264 | |
| 265 | ``aether-roc-api`` is useful to be able to POST REST API requests. |
| 266 | |
| 267 | ``aether-roc-gui`` is useful to be able to interactively browse the current configuration. |
Scott Baker | fab7c9e | 2021-07-29 17:12:16 -0700 | [diff] [blame] | 268 | |
Sean Condon | 257687f | 2021-08-23 11:13:20 +0100 | [diff] [blame] | 269 | .. note:: Internally the ``aether-roc-gui`` operates a Reverse Proxy on the ``aether-roc-api``. This |
| 270 | means that if you have done a ``port-forward`` to ``aether-roc-gui`` say on port ``8183`` there's no |
| 271 | need to do another on the ``aether-roc-api`` instead you can access the API on |
| 272 | ``http://localhost:8183/aether-roc-api`` |
| 273 | |
Scott Baker | fab7c9e | 2021-07-29 17:12:16 -0700 | [diff] [blame] | 274 | Deploying using custom images |
| 275 | ----------------------------- |
| 276 | |
| 277 | Custom images may be used by editing the values-override.yaml file. |
Zack Williams | 1ae109e | 2021-07-27 11:17:04 -0700 | [diff] [blame] | 278 | For example, to deploy a custom ``sdcore-adapter``:: |
Scott Baker | fab7c9e | 2021-07-29 17:12:16 -0700 | [diff] [blame] | 279 | |
SeanCondon | 909d55b | 2022-04-25 17:59:46 +0100 | [diff] [blame] | 280 | sdcore-adapter-v2-1: |
Scott Baker | 6bd3d19 | 2022-03-03 14:50:38 -0800 | [diff] [blame] | 281 | prometheusEnabled: false |
Scott Baker | fab7c9e | 2021-07-29 17:12:16 -0700 | [diff] [blame] | 282 | image: |
Scott Baker | 6bd3d19 | 2022-03-03 14:50:38 -0800 | [diff] [blame] | 283 | repository: my-private-repo/sdcore-adapter |
| 284 | tag: my-tag |
| 285 | pullPolicy: Always |
Scott Baker | fab7c9e | 2021-07-29 17:12:16 -0700 | [diff] [blame] | 286 | |
Zack Williams | 1ae109e | 2021-07-27 11:17:04 -0700 | [diff] [blame] | 287 | The above example assumes you have published a docker images at ``my-private-repo/sdcore-adapter:my-tag``. |
Scott Baker | fab7c9e | 2021-07-29 17:12:16 -0700 | [diff] [blame] | 288 | My particular workflow is to deploy a local-docker registry and push my images to that. |
| 289 | Please do not publish ONF images to a public repository unless the image is intended to be public. |
| 290 | Several ONF repositories are private, and therefore their docker artifacts should also be private. |
| 291 | |
| 292 | There are alternatives to using a private docker repository. |
Zack Williams | 1ae109e | 2021-07-27 11:17:04 -0700 | [diff] [blame] | 293 | For example, if you are using kubeadm, then you may be able to simply tag the image locally. |
Scott Baker | fab7c9e | 2021-07-29 17:12:16 -0700 | [diff] [blame] | 294 | If you’re using KinD, then you can push a local image to into the kind cluster:: |
| 295 | |
| 296 | kind load docker-image sdcore-adapter:my-tag |
| 297 | |
Scott Baker | abcfc6e | 2021-09-08 22:37:51 -0700 | [diff] [blame] | 298 | Developing using a custom onos-config |
| 299 | ------------------------------------- |
| 300 | |
Scott Baker | 6bd3d19 | 2022-03-03 14:50:38 -0800 | [diff] [blame] | 301 | The onos-config helm chart is responsible for loading model plugins at runtime. You can override which |
| 302 | plugins it loads, and optionally override the image for onos-config as well. For example:: |
Scott Baker | abcfc6e | 2021-09-08 22:37:51 -0700 | [diff] [blame] | 303 | |
Scott Baker | 6bd3d19 | 2022-03-03 14:50:38 -0800 | [diff] [blame] | 304 | onos-config: |
| 305 | image: |
| 306 | tag: mytag |
| 307 | repository: mydockeraccount/onos-config |
| 308 | modelPlugins: |
SeanCondon | 909d55b | 2022-04-25 17:59:46 +0100 | [diff] [blame] | 309 | - name: aether-2 |
| 310 | image: onosproject/aether-2.0.x:2.0.3-aether-2.0.x |
| 311 | endpoint: localhost |
| 312 | port: 5152 |
| 313 | - name: aether-2-1 |
| 314 | image: onosproject/aether-2.1.x:2.1.3-aether-2.1.x |
| 315 | endpoint: localhost |
| 316 | port: 5153 |
Scott Baker | abcfc6e | 2021-09-08 22:37:51 -0700 | [diff] [blame] | 317 | |
Scott Baker | 6bd3d19 | 2022-03-03 14:50:38 -0800 | [diff] [blame] | 318 | In the above example, the onos-config image will be pulled from `mydockeraccount`, and it will install |
| 319 | two plugins for v2 and v4 models, from that same docker account. |
Scott Baker | abcfc6e | 2021-09-08 22:37:51 -0700 | [diff] [blame] | 320 | |
Scott Baker | fab7c9e | 2021-07-29 17:12:16 -0700 | [diff] [blame] | 321 | Inspecting logs |
| 322 | --------------- |
| 323 | |
| 324 | Most of the relevant Kubernetes pods are in the micro-onos namespace. |
| 325 | The names may change from deployment to deployment, so start by getting a list of pods:: |
| 326 | |
| 327 | kubectl -n micro-onos get pods |
| 328 | |
| 329 | Then you can inspect a specific pod/container:: |
| 330 | |
SeanCondon | 909d55b | 2022-04-25 17:59:46 +0100 | [diff] [blame] | 331 | kubectl -n micro-onos logs deployment/sdcore-adapter-v2-1 |
Scott Baker | fab7c9e | 2021-07-29 17:12:16 -0700 | [diff] [blame] | 332 | |
Sean Condon | eb95cd6 | 2021-08-04 19:44:18 +0100 | [diff] [blame] | 333 | .. _securing_roc: |
| 334 | |
| 335 | Securing ROC |
| 336 | ------------ |
| 337 | |
Sean Condon | 9e182f6 | 2021-12-06 17:35:53 -0800 | [diff] [blame] | 338 | keycloak-dev.onlab.us |
| 339 | ^^^^^^^^^^^^^^^^^^^^^ |
| 340 | Keycloak is an Open Source Identity and Access Management for Modern Applications and |
| 341 | Services. It can be used as an OIDC Issuer than can act as a front end to several authentication systems |
| 342 | e.g. LDAP, Crowd, Google, GitHub |
| 343 | |
Zack Williams | 1ae109e | 2021-07-27 11:17:04 -0700 | [diff] [blame] | 344 | When deploying ROC with the ``aether-roc-umbrella`` chart, secure mode can be enabled by |
Sean Condon | eb95cd6 | 2021-08-04 19:44:18 +0100 | [diff] [blame] | 345 | specifying an OpenID Connect (OIDC) issuer like:: |
| 346 | |
Andy Bavier | e86261e | 2021-09-21 11:05:18 -0700 | [diff] [blame] | 347 | helm -n micro-onos install aether-roc-umbrella aether/aether-roc-umbrella \ |
Sean Condon | 9e182f6 | 2021-12-06 17:35:53 -0800 | [diff] [blame] | 348 | --set onos-config.openidc.issuer=https://keycloak-dev.onlab.us/auth/realms/master \ |
| 349 | --set aether-roc-api.openidc.issuer=https://keycloak-dev.onlab.us/auth/realms/master \ |
SeanCondon | 909d55b | 2022-04-25 17:59:46 +0100 | [diff] [blame] | 350 | --set aether-roc-gui-v2-1.openidc.issuer=https://keycloak-dev.onlab.us/auth/realms/master \ |
Sean Condon | 9e182f6 | 2021-12-06 17:35:53 -0800 | [diff] [blame] | 351 | --set prom-label-proxy-acc.config.openidc.issuer=https://keycloak-dev.onlab.us/auth/realms/master \ |
| 352 | --set prom-label-proxy-amp.config.openidc.issuer=https://keycloak-dev.onlab.us/auth/realms/master |
Sean Condon | eb95cd6 | 2021-08-04 19:44:18 +0100 | [diff] [blame] | 353 | |
Sean Condon | 9e182f6 | 2021-12-06 17:35:53 -0800 | [diff] [blame] | 354 | The choice of OIDC issuer in this case is the **development** Keycloak server at https://keycloak-dev.onlab.us |
Sean Condon | eb95cd6 | 2021-08-04 19:44:18 +0100 | [diff] [blame] | 355 | |
Sean Condon | 9e182f6 | 2021-12-06 17:35:53 -0800 | [diff] [blame] | 356 | Its LDAP server is populated with 7 different users in the 2 example enterprises - *starbucks* and *acme*. |
Sean Condon | 948aeaa | 2021-09-29 12:08:30 +0100 | [diff] [blame] | 357 | |
Sean Condon | 9e182f6 | 2021-12-06 17:35:53 -0800 | [diff] [blame] | 358 | +------------------+----------+-------------+-----------------+-----------------+-----------------+-----------+------+ |
| 359 | | User | login | mixedGroup: | charactersGroup | AetherROCAdmin | EnterpriseAdmin | starbucks | acme | |
| 360 | +==================+==========+=============+=================+=================+=================+===========+======+ |
| 361 | | Alice Admin | alicea | ✓ | | ✓ | | | | |
| 362 | +------------------+----------+-------------+-----------------+-----------------+-----------------+-----------+------+ |
| 363 | | Bob Cratchit | bobc | ✓ | ✓ | | | | | |
| 364 | +------------------+----------+-------------+-----------------+-----------------+-----------------+-----------+------+ |
| 365 | | Charlie Brown | charlieb | | ✓ | | | | | |
| 366 | +------------------+----------+-------------+-----------------+-----------------+-----------------+-----------+------+ |
| 367 | | Daisy Duke | daisyd | | ✓ | | ✓ | ✓ | | |
| 368 | +------------------+----------+-------------+-----------------+-----------------+-----------------+-----------+------+ |
| 369 | | Elmer Fudd | elmerf | | ✓ | | | ✓ | | |
| 370 | +------------------+----------+-------------+-----------------+-----------------+-----------------+-----------+------+ |
| 371 | | Fred Flintstone | fredf | | ✓ | | ✓ | | ✓ | |
| 372 | +------------------+----------+-------------+-----------------+-----------------+-----------------+-----------+------+ |
| 373 | | Gandalf The Grey | gandalfg | | ✓ | | | | ✓ | |
| 374 | +------------------+----------+-------------+-----------------+-----------------+-----------------+-----------+------+ |
| 375 | |
| 376 | .. note:: all users have the same password - please contact `aether-roc <https://onf-internal.slack.com/archives/C01S7BVC1FX>`_ slack group if you need it |
| 377 | |
| 378 | .. note:: Because of the SSO feature of Keycloak you will need to explicitly logout of Keycloak to change users. |
| 379 | To login as 2 separate users at the same time, use a private browser window for one. |
| 380 | |
| 381 | Running your own Keycloak Server |
| 382 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 383 | |
| 384 | It is also possible to run your own own Keycloak server inside of Kubernetes. |
Sean Condon | 948aeaa | 2021-09-29 12:08:30 +0100 | [diff] [blame] | 385 | |
| 386 | ``keycloak-389-umbrella`` is a Helm chart that combines a Keycloak server with an LDAP |
Sean Condon | 8d55a1e | 2021-11-11 12:49:00 +0000 | [diff] [blame] | 387 | installation (389 Directory Server), and an LDAP administration tool. It can be deployed (with name ``k3u`` in to the |
| 388 | same cluster namespace as ``aether-roc-umbrella``:: |
Sean Condon | 948aeaa | 2021-09-29 12:08:30 +0100 | [diff] [blame] | 389 | |
Sean Condon | 8d55a1e | 2021-11-11 12:49:00 +0000 | [diff] [blame] | 390 | helm -n micro-onos install k3u onosproject/keycloak-389-umbrella |
| 391 | |
Sean Condon | 8d55a1e | 2021-11-11 12:49:00 +0000 | [diff] [blame] | 392 | To make the deployment available with the hostname ``k3u-keycloak`` requires: |
| 393 | |
| 394 | #. a port forward like ``kubectl -n micro-onos port-forward service/k3u-keycloak --address=0.0.0.0 5557:80`` |
| 395 | #. editing your ``/etc/hosts`` file (on the machine where your browser runs) so that the name ``k3u-keycloak`` points |
| 396 | to the IP address of the machine where the ``port-forward`` runs (usually ``localhost``). |
Sean Condon | 948aeaa | 2021-09-29 12:08:30 +0100 | [diff] [blame] | 397 | |
| 398 | When running it should be available at *http://k3u-keycloak:5557/auth/realms/master/.well-known/openid-configuration*. |
| 399 | |
Sean Condon | 8d55a1e | 2021-11-11 12:49:00 +0000 | [diff] [blame] | 400 | .. note:: You can access the Keycloak management page from *http://k3u-keycloak:5557/auth/admin* but you must |
Sean Condon | 9e182f6 | 2021-12-06 17:35:53 -0800 | [diff] [blame] | 401 | login as `admin`. Because of the SSO feature of Keycloak this will affect your Aether ROC GUI login too. |
Sean Condon | 8d55a1e | 2021-11-11 12:49:00 +0000 | [diff] [blame] | 402 | To login as 2 separate users at the same time, use a private browser window for one. |
| 403 | |
Sean Condon | 9e182f6 | 2021-12-06 17:35:53 -0800 | [diff] [blame] | 404 | .. note:: Services inside the cluster (e.g. onos-config) should set the issuer to *https://k3u-keycloak:80/auth/realms/master* |
| 405 | on port 80, while the aether-roc-gui should use port 5557 |
| 406 | |
| 407 | As any OIDC server can work with ROC you can alternately use ``dex-ldap-umbrella`` |
| 408 | (`deprecated <https://github.com/onosproject/onos-helm-charts/tree/master/dex-ldap-umbrella>`_). |
| 409 | |
Sean Condon | 948aeaa | 2021-09-29 12:08:30 +0100 | [diff] [blame] | 410 | See `keycloak-389-umbrella <https://github.com/onosproject/onos-helm-charts/tree/master/keycloak-389-umbrella#readme>`_ |
| 411 | for more details. |
| 412 | |
Sean Condon | 9e182f6 | 2021-12-06 17:35:53 -0800 | [diff] [blame] | 413 | Production Environment |
| 414 | ^^^^^^^^^^^^^^^^^^^^^^ |
| 415 | In a production environment, the public Aether Keycloak (with its LDAP server populated with real Aether users and groups) should be used. |
Sean Condon | 948aeaa | 2021-09-29 12:08:30 +0100 | [diff] [blame] | 416 | See `public keycloak <https://keycloak.opennetworking.org/auth/realms/master/.well-known/openid-configuration>`_ for more details. |
| 417 | |
| 418 | .. note:: Your RBAC access to ROC will be limited by the groups you belong to in its LDAP store. |
| 419 | |
Sean Condon | eb95cd6 | 2021-08-04 19:44:18 +0100 | [diff] [blame] | 420 | Role Based Access Control |
Sean Condon | 9e182f6 | 2021-12-06 17:35:53 -0800 | [diff] [blame] | 421 | ^^^^^^^^^^^^^^^^^^^^^^^^^ |
Zack Williams | 1ae109e | 2021-07-27 11:17:04 -0700 | [diff] [blame] | 422 | |
Sean Condon | eb95cd6 | 2021-08-04 19:44:18 +0100 | [diff] [blame] | 423 | When secured, access to the configuration in ROC is limited by the **groups** that a user belongs to. |
| 424 | |
| 425 | * **AetherROCAdmin** - users in this group have full read **and** write access to all configuration. |
| 426 | * *<enterprise>* - users in a group the lowercase name of an enterprise, will have **read** access to that enterprise. |
| 427 | * **EnterpriseAdmin** - users in this group will have read **and** write access the enterprise they belong to. |
| 428 | |
Sean Condon | 948aeaa | 2021-09-29 12:08:30 +0100 | [diff] [blame] | 429 | For example in *keycloak-389-umbrella* the user *Daisy Duke* belongs to *starbucks* **and** |
Sean Condon | eb95cd6 | 2021-08-04 19:44:18 +0100 | [diff] [blame] | 430 | *EnterpriseAdmin* and so has read **and** write access to items linked with *starbucks* enterprise. |
| 431 | |
| 432 | By comparison the user *Elmer Fudd* belongs only to *starbucks* group and so has only **read** access to items |
| 433 | linked with the *starbucks* enterprise. |
| 434 | |
| 435 | Requests to a Secure System |
Sean Condon | 9e182f6 | 2021-12-06 17:35:53 -0800 | [diff] [blame] | 436 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
Zack Williams | 1ae109e | 2021-07-27 11:17:04 -0700 | [diff] [blame] | 437 | |
Sean Condon | eb95cd6 | 2021-08-04 19:44:18 +0100 | [diff] [blame] | 438 | When configuration is retrieved or updated through *aether-config*, a Bearer Token in the |
Zack Williams | 1ae109e | 2021-07-27 11:17:04 -0700 | [diff] [blame] | 439 | form of a JSON Web Token (JWT) issued by the selected OIDC Issuer server must accompany |
Sean Condon | eb95cd6 | 2021-08-04 19:44:18 +0100 | [diff] [blame] | 440 | the request as an Authorization Header. |
| 441 | |
Zack Williams | 1ae109e | 2021-07-27 11:17:04 -0700 | [diff] [blame] | 442 | This applies to both the REST interface of ``aether-roc-api`` **and** the *gnmi* interface of |
Sean Condon | 8d55a1e | 2021-11-11 12:49:00 +0000 | [diff] [blame] | 443 | ``aether-config``. |
Sean Condon | eb95cd6 | 2021-08-04 19:44:18 +0100 | [diff] [blame] | 444 | |
| 445 | In the Aether ROC, a Bearer Token can be generated by logging in and selecting API Key from the |
| 446 | menu. This pops up a window with a copy button, where the key can be copied. |
| 447 | |
Sean Condon | 8d55a1e | 2021-11-11 12:49:00 +0000 | [diff] [blame] | 448 | Alternatively with Keycloak a Token may be requested programmatically through the Keycloak API:: |
| 449 | |
Sean Condon | 9e182f6 | 2021-12-06 17:35:53 -0800 | [diff] [blame] | 450 | curl --location --request POST 'https://keycloak-dev.onlab.us/auth/realms/master/protocol/openid-connect/token' \ |
Sean Condon | 8d55a1e | 2021-11-11 12:49:00 +0000 | [diff] [blame] | 451 | --header 'Content-Type: application/x-www-form-urlencoded' \ |
| 452 | --data-urlencode 'grant_type=password' \ |
| 453 | --data-urlencode 'client_id=aether-roc-gui' \ |
| 454 | --data-urlencode 'username=alicea' \ |
| 455 | --data-urlencode 'password=password' \ |
Scott Baker | 6bd3d19 | 2022-03-03 14:50:38 -0800 | [diff] [blame] | 456 | --data-urlencode 'scope=openid profile email groups' | jq "{access_token}" |
Sean Condon | 8d55a1e | 2021-11-11 12:49:00 +0000 | [diff] [blame] | 457 | |
| 458 | |
Sean Condon | eb95cd6 | 2021-08-04 19:44:18 +0100 | [diff] [blame] | 459 | The key will expire after 24 hours. |
| 460 | |
| 461 | .. image:: images/aether-roc-gui-copy-api-key.png |
| 462 | :width: 580 |
| 463 | :alt: Aether ROC GUI allows copying of API Key to clipboard |
| 464 | |
| 465 | Accessing the REST interface from a tool like Postman, should include this Auth token. |
| 466 | |
| 467 | .. image:: images/postman-auth-token.png |
| 468 | :width: 930 |
| 469 | :alt: Postman showing Authentication Token pasted in |
| 470 | |
| 471 | Logging |
Zack Williams | 1ae109e | 2021-07-27 11:17:04 -0700 | [diff] [blame] | 472 | """"""" |
| 473 | |
Sean Condon | eb95cd6 | 2021-08-04 19:44:18 +0100 | [diff] [blame] | 474 | The logs of *aether-config* will contain the **username** and **timestamp** of |
| 475 | any **gnmi** call when security is enabled. |
| 476 | |
| 477 | .. image:: images/aether-config-log.png |
| 478 | :width: 887 |
| 479 | :alt: aether-config log message showing username and timestamp |
| 480 | |
Sean Condon | 435be9a | 2021-08-06 14:28:37 +0100 | [diff] [blame] | 481 | Accessing GUI from an external system |
Zack Williams | 1ae109e | 2021-07-27 11:17:04 -0700 | [diff] [blame] | 482 | """"""""""""""""""""""""""""""""""""" |
| 483 | |
Sean Condon | 435be9a | 2021-08-06 14:28:37 +0100 | [diff] [blame] | 484 | To access the ROC GUI from a computer outside the Cluster machine using *port-forwarding* then |
| 485 | it is necessary to: |
| 486 | |
| 487 | * Ensure that all *port-forward*'s have **--address=0.0.0.0** |
| 488 | * Add to the IP address of the cluster machine to the **/etc/hosts** of the outside computer as:: |
| 489 | |
Sean Condon | 948aeaa | 2021-09-29 12:08:30 +0100 | [diff] [blame] | 490 | <ip address of cluster> k3u-keycloak aether-roc-gui |
Sean Condon | 9e182f6 | 2021-12-06 17:35:53 -0800 | [diff] [blame] | 491 | * Verify that you can access the Keycloak server by its name *https://keycloak-dev.onlab.us/auth/realms/master/.well-known/openid-configuration* |
Zack Williams | 1ae109e | 2021-07-27 11:17:04 -0700 | [diff] [blame] | 492 | * Access the GUI through the hostname (rather than ip address) ``http://aether-roc-gui:8183`` |
Sean Condon | 435be9a | 2021-08-06 14:28:37 +0100 | [diff] [blame] | 493 | |
Sean Condon | eb95cd6 | 2021-08-04 19:44:18 +0100 | [diff] [blame] | 494 | Troubleshooting Secure Access |
Zack Williams | 1ae109e | 2021-07-27 11:17:04 -0700 | [diff] [blame] | 495 | """"""""""""""""""""""""""""" |
| 496 | |
Sean Condon | eb95cd6 | 2021-08-04 19:44:18 +0100 | [diff] [blame] | 497 | While every effort has been made to ensure that securing Aether is simple and effective, |
| 498 | some difficulties may arise. |
| 499 | |
Sean Condon | 948aeaa | 2021-09-29 12:08:30 +0100 | [diff] [blame] | 500 | One of the most important steps is to validate that the OIDC Issuer (Keycloak server) can be reached |
Sean Condon | eb95cd6 | 2021-08-04 19:44:18 +0100 | [diff] [blame] | 501 | from the browser. The **well_known** URL should be available and show the important endpoints are correct. |
| 502 | |
Sean Condon | 948aeaa | 2021-09-29 12:08:30 +0100 | [diff] [blame] | 503 | .. image:: images/keycloak-389-umbrella-well-known.png |
Sean Condon | eb95cd6 | 2021-08-04 19:44:18 +0100 | [diff] [blame] | 504 | :width: 580 |
Sean Condon | 948aeaa | 2021-09-29 12:08:30 +0100 | [diff] [blame] | 505 | :alt: Keycloak Well Known page |
Sean Condon | eb95cd6 | 2021-08-04 19:44:18 +0100 | [diff] [blame] | 506 | |
| 507 | If logged out of the Browser when accessing the Aether ROC GUI, accessing any page of the application should |
Sean Condon | 948aeaa | 2021-09-29 12:08:30 +0100 | [diff] [blame] | 508 | redirect to the Keycloak login page. |
Sean Condon | eb95cd6 | 2021-08-04 19:44:18 +0100 | [diff] [blame] | 509 | |
Sean Condon | 948aeaa | 2021-09-29 12:08:30 +0100 | [diff] [blame] | 510 | .. image:: images/keycloak-ldap-login-page.png |
Sean Condon | eb95cd6 | 2021-08-04 19:44:18 +0100 | [diff] [blame] | 511 | :width: 493 |
Sean Condon | 948aeaa | 2021-09-29 12:08:30 +0100 | [diff] [blame] | 512 | :alt: Keycloak Login page |
Sean Condon | eb95cd6 | 2021-08-04 19:44:18 +0100 | [diff] [blame] | 513 | |
| 514 | When logged in the User details can be seen by clicking the User's name in the drop down menu. |
| 515 | This shows the **groups** that the user belongs to, and can be used to debug RBAC issues. |
| 516 | |
| 517 | .. image:: images/aether-roc-gui-user-details.png |
| 518 | :width: 700 |
| 519 | :alt: User Details page |
| 520 | |
Sean Condon | 948aeaa | 2021-09-29 12:08:30 +0100 | [diff] [blame] | 521 | When you sign out of the ROC GUI, if you are not redirected to the Keycloak Login Page, |
Sean Condon | eb95cd6 | 2021-08-04 19:44:18 +0100 | [diff] [blame] | 522 | you should check the Developer Console of the browser. The console should show the correct |
Sean Condon | 948aeaa | 2021-09-29 12:08:30 +0100 | [diff] [blame] | 523 | OIDC issuer (Keycloak server), and that Auth is enabled. |
Sean Condon | eb95cd6 | 2021-08-04 19:44:18 +0100 | [diff] [blame] | 524 | |
| 525 | .. image:: images/aether-roc-gui-console-loggedin.png |
| 526 | :width: 418 |
| 527 | :alt: Browser Console showing correct configuration |
| 528 | |
Sean Condon | 8d55a1e | 2021-11-11 12:49:00 +0000 | [diff] [blame] | 529 | Keycloak installation issues |
| 530 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 531 | |
| 532 | The ``fedorea-389ds`` pod may restart a couple of times before it finally reaches running. |
| 533 | There are 2 post install jobs that take some time to start. Overall allow 3 minutes for startup. |
| 534 | |
| 535 | Some users are finding that the Fedora pod will never reach a running state on resource |
| 536 | constrained machines. This issue is being investigated. |
| 537 | |
| 538 | |
Scott Baker | b46a6ed | 2021-08-02 14:03:10 -0700 | [diff] [blame] | 539 | ROC Data Model Conventions and Requirements |
| 540 | ------------------------------------------- |
| 541 | |
| 542 | The MEGA-Patch described above will bring up a fully compliant sample data model. |
| 543 | However, it may be useful to bring up your own data model, customized to a different |
| 544 | site of sites. This subsection documents conventions and requirements for the Aether |
Zack Williams | 1ae109e | 2021-07-27 11:17:04 -0700 | [diff] [blame] | 545 | modeling within the ROC. |
Scott Baker | b46a6ed | 2021-08-02 14:03:10 -0700 | [diff] [blame] | 546 | |
| 547 | The ROC models must be configured with the following: |
| 548 | |
| 549 | * A default enterprise with the id `defaultent`. |
Scott Baker | b46a6ed | 2021-08-02 14:03:10 -0700 | [diff] [blame] | 550 | * A default site with the id `defaultent-defaultsite`. |
Scott Baker | ae02410 | 2022-02-23 10:55:28 -0800 | [diff] [blame] | 551 | This site should be within the `defaultent` enterprise. |
| 552 | This site is used by ``subscriber-proxy`` to place detected SIM Cards that cannot |
| 553 | be matched to an existing site. |
Scott Baker | b46a6ed | 2021-08-02 14:03:10 -0700 | [diff] [blame] | 554 | |
Scott Baker | fab7c9e | 2021-07-29 17:12:16 -0700 | [diff] [blame] | 555 | Some exercises to get familiar |
| 556 | ------------------------------ |
| 557 | |
Zack Williams | 1ae109e | 2021-07-27 11:17:04 -0700 | [diff] [blame] | 558 | 1. Deploy the ROC and POST the mega-patch, go into the ``aether-roc-gui`` and click |
Scott Baker | ae02410 | 2022-02-23 10:55:28 -0800 | [diff] [blame] | 559 | through the Slice, DeviceGroup, and other objects to see that they were |
Zack Williams | 1ae109e | 2021-07-27 11:17:04 -0700 | [diff] [blame] | 560 | created as expected. |
Scott Baker | fab7c9e | 2021-07-29 17:12:16 -0700 | [diff] [blame] | 561 | |
Scott Baker | 6bd3d19 | 2022-03-03 14:50:38 -0800 | [diff] [blame] | 562 | 2. Examine the log of the ``sdcore-adapter-v2`` container. It should be |
Zack Williams | 1ae109e | 2021-07-27 11:17:04 -0700 | [diff] [blame] | 563 | attempting to push the mega-patch’s changes. If you don’t have a core |
| 564 | available, it may be failing the push, but you should see the attempts. |
Scott Baker | fab7c9e | 2021-07-29 17:12:16 -0700 | [diff] [blame] | 565 | |
Scott Baker | 6bd3d19 | 2022-03-03 14:50:38 -0800 | [diff] [blame] | 566 | 3. Change an object in the GUI. Watch the ``sdcore-adapter-v2`` log file and |
Zack Williams | 1ae109e | 2021-07-27 11:17:04 -0700 | [diff] [blame] | 567 | see that the adapter attempts to push the change. |
Scott Baker | fab7c9e | 2021-07-29 17:12:16 -0700 | [diff] [blame] | 568 | |
Scott Baker | 6bd3d19 | 2022-03-03 14:50:38 -0800 | [diff] [blame] | 569 | 4. Try POSTing a change via the API. Observe the ``sdcore-adapter-v2`` log |
Zack Williams | 1ae109e | 2021-07-27 11:17:04 -0700 | [diff] [blame] | 570 | file and see that the adapter attempts to push the change. |
Scott Baker | fab7c9e | 2021-07-29 17:12:16 -0700 | [diff] [blame] | 571 | |
Andy Bavier | f73c3d2 | 2021-08-30 10:29:06 -0700 | [diff] [blame] | 572 | 5. Deploy a 5G Aether-in-a-Box (See :doc:`Setting Up Aether-in-a-Box |
| 573 | <aiab>`), modify the mega-patch to specify the URL for the Aether-in-a-Box |
Zack Williams | 1ae109e | 2021-07-27 11:17:04 -0700 | [diff] [blame] | 574 | ``webui`` container, POST the mega-patch, and observe that the changes were |
Scott Baker | 6bd3d19 | 2022-03-03 14:50:38 -0800 | [diff] [blame] | 575 | correctly pushed via the ``sdcore-adapter-v2`` into the ``sd-core``’s |
Zack Williams | 1ae109e | 2021-07-27 11:17:04 -0700 | [diff] [blame] | 576 | ``webui`` container (``webui`` container log will show configuration as it |
| 577 | is received) |
Scott Baker | fab7c9e | 2021-07-29 17:12:16 -0700 | [diff] [blame] | 578 | |
| 579 | .. |ROCGUI| image:: images/rocgui.png |
Sean Condon | eb95cd6 | 2021-08-04 19:44:18 +0100 | [diff] [blame] | 580 | :width: 945 |
Scott Baker | ae02410 | 2022-02-23 10:55:28 -0800 | [diff] [blame] | 581 | :alt: ROC GUI showing list of Slices |