Pérez Caparrós David, INI-INO-ECO-HCT | d30ccf8 | 2019-06-18 23:05:16 +0200 | [diff] [blame] | 1 | .. _docs_bbs: |
| 2 | |
| 3 | BBS (Broadband Service) |
| 4 | ----------------------- |
| 5 | |
| 6 | Overview |
| 7 | ~~~~~~~~ |
| 8 | The BBS use case proposes using ONAP for the design, provisioning, life-cycle |
| 9 | management and assurance of broadband services. BBS focuses on multi-Gigabit |
| 10 | Internet Connectivity services based on PON (Passive Optical Network) access |
| 11 | technology. |
| 12 | |
Pérez Caparrós David | 5da05c5 | 2020-03-05 10:31:49 +0100 | [diff] [blame] | 13 | In Frankfurt release, BBS enables ONAP to |
Pérez Caparrós David, INI-INO-ECO-HCT | d30ccf8 | 2019-06-18 23:05:16 +0200 | [diff] [blame] | 14 | |
Pérez Caparrós David | 5da05c5 | 2020-03-05 10:31:49 +0100 | [diff] [blame] | 15 | 1. Establish a subscriber's HSIA (High Speed Internet Access) service from an |
| 16 | ONT (Optical Network Termination unit) to the Internet drain |
Pérez Caparrós David, INI-INO-ECO-HCT | d30ccf8 | 2019-06-18 23:05:16 +0200 | [diff] [blame] | 17 | |
Pérez Caparrós David | 5da05c5 | 2020-03-05 10:31:49 +0100 | [diff] [blame] | 18 | - The HSIA service is designed and deployed using ONAP's design and |
| 19 | deployment capabilities |
| 20 | - The HSIA service activation is initiated via ONAP's External APIs and |
| 21 | orchestrated and controlled using ONAP orchestration and control |
| 22 | capabilities. The control capabilities leverage a 3rd party controller to |
| 23 | implement the requested action within the technology domain/location |
| 24 | represented by the domain specific SDN management and control function. |
Pérez Caparrós David, INI-INO-ECO-HCT | d30ccf8 | 2019-06-18 23:05:16 +0200 | [diff] [blame] | 25 | |
| 26 | 2. Detect the change of location for ONT devices (Nomadic ONT devices) |
| 27 | |
| 28 | - PNF (Re-)Registration for an ONT |
| 29 | |
| 30 | - Subscriber association to an ONT via ONAP's External APIs |
Pérez Caparrós David | 5da05c5 | 2020-03-05 10:31:49 +0100 | [diff] [blame] | 31 | - ONT association with a expected Access UNI (PON port) when a HSIA service |
| 32 | is created/deployed for a subscriber |
Pérez Caparrós David, INI-INO-ECO-HCT | d30ccf8 | 2019-06-18 23:05:16 +0200 | [diff] [blame] | 33 | - PNF (Re-)Registration using ONAP's PNF registration capabilities |
| 34 | |
Pérez Caparrós David | 5da05c5 | 2020-03-05 10:31:49 +0100 | [diff] [blame] | 35 | - Service location modification that is detected by ONAP's analytic and |
| 36 | initiated via the closed loop capabilities |
Pérez Caparrós David, INI-INO-ECO-HCT | d30ccf8 | 2019-06-18 23:05:16 +0200 | [diff] [blame] | 37 | |
Pérez Caparrós David | 5da05c5 | 2020-03-05 10:31:49 +0100 | [diff] [blame] | 38 | - The closed loop capabilities invoke a HSIA location change service that |
| 39 | is orchestrated and controlled using ONAP capabilities and 3rd party controllers |
Pérez Caparrós David, INI-INO-ECO-HCT | d30ccf8 | 2019-06-18 23:05:16 +0200 | [diff] [blame] | 40 | |
| 41 | |image1| |
| 42 | |
| 43 | **Figure 1. Architecture Overview** |
| 44 | |
| 45 | System View |
| 46 | ~~~~~~~~~~~ |
| 47 | BBS relies on key ONAP components such as External API, SO, AAI, SDC, Policy |
| 48 | (APEX engine), DCAE (PRH, BBS Event Processor, VES collector, VES mapper, |
| 49 | RESTCONF collector) and SDNC |
| 50 | |
| 51 | |image2| |
| 52 | |
| 53 | **Figure 2. System View** |
| 54 | |
| 55 | System Set Up and configuration |
| 56 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 57 | |
Pérez Caparrós David, INI-INO-ECO-HCT | 6d986ee | 2019-06-28 14:07:44 +0200 | [diff] [blame] | 58 | SO: Custom Workflow Configuration |
| 59 | ================================= |
| 60 | |
| 61 | :: |
| 62 | |
| 63 | ~/oom/kubernetes# kubectl edit cm dev-so-so-bpmn-infra-app-configmap |
| 64 | |
Pérez Caparrós David | 5da05c5 | 2020-03-05 10:31:49 +0100 | [diff] [blame] | 65 | mso: |
| 66 | ... |
| 67 | oof: |
| 68 | auth: test:testpwd |
| 69 | callbackEndpoint: http://so-bpmn-infra.onap:8081/mso/WorkflowMessage |
| 70 | endpoint: https://oof-osdf.onap:8698/api/oof/v1/placement |
| 71 | timeout: PT30M |
| 72 | workflow: |
| 73 | + custom: |
| 74 | + BBS_E2E_Service: |
| 75 | + sdnc: |
| 76 | + need: true |
| 77 | + resource: |
| 78 | + sequence: VnfVirtualLink,CPE,AccessConnectivity,InternetProfile,PonUni,OltNni,OntNni |
| 79 | CreateGenericVNFV1: |
| 80 | aai: |
| 81 | volume-group: |
| 82 | uri: /aai/v6/cloud-infrastructure/volume-groups/volume-group |
| 83 | default: |
| 84 | aai: |
| 85 | ... |
Pérez Caparrós David, INI-INO-ECO-HCT | 6d986ee | 2019-06-28 14:07:44 +0200 | [diff] [blame] | 86 | |
| 87 | ## Restart the pod |
| 88 | ~/oom/kubernetes# kubectl delete po dev-so-so-bpmn-infra-7556d7f6bc-8fthk |
| 89 | |
| 90 | |
| 91 | As shown below, new entries need to be inserted manually in SO database (mariadb-galera) in order to map a given resource model to a specific BPMN recipe. For instance, the CPE is modeled in SDC as a VF but it is treated as PNF resource by SO by using the handlePNF BPMN recipe. Those entries need to be inserted in catalogdb database > vnf_recipe table. |
| 92 | |
| 93 | IMPORTANT: make sure vnf_recipe.NF_ROLE matches vnf_resource.MODEL_NAME, and vnf_recipe.VERSION_STR matches vnf_resource.MODEL_VERSION. |
| 94 | |
| 95 | :: |
| 96 | |
| 97 | root@onap-rancher-daily:/home/ubuntu# kubectl exec -ti dev-mariadb-galera-mariadb-galera-0 sh |
| 98 | sh-4.2$ mysql -u root -p |
| 99 | MariaDB [(none)]> use catalogdb; |
Pérez Caparrós David | 5da05c5 | 2020-03-05 10:31:49 +0100 | [diff] [blame] | 100 | MariaDB [catalogdb]> INSERT INTO vnf_recipe (NF_ROLE, ACTION, SERVICE_TYPE, VERSION_STR, DESCRIPTION, ORCHESTRATION_URI, VNF_PARAM_XSD, RECIPE_TIMEOUT) |
Pérez Caparrós David, INI-INO-ECO-HCT | 6d986ee | 2019-06-28 14:07:44 +0200 | [diff] [blame] | 101 | VALUES |
Pérez Caparrós David | 5da05c5 | 2020-03-05 10:31:49 +0100 | [diff] [blame] | 102 | ("InternetProfile", "createInstance", "NF", "1.0", "create InternetProfile", "/mso/async/services/CreateSDNCNetworkResource", '{"operationType":"AccessConnectivity"}', 180000), |
| 103 | ("AccessConnectivity", "createInstance", "NF", "1.0", "create AccessConnectivity", "/mso/async/services/CreateSDNCNetworkResource", '{"operationType":"InternetProfile"}', 180000), |
| 104 | ("CPE", "createInstance", "NF", "1.0", "create CPE", "/mso/async/services/HandlePNF", NULL, 180000); |
Pérez Caparrós David, INI-INO-ECO-HCT | 6d986ee | 2019-06-28 14:07:44 +0200 | [diff] [blame] | 105 | |
Pérez Caparrós David | 5da05c5 | 2020-03-05 10:31:49 +0100 | [diff] [blame] | 106 | MariaDB [catalogdb]> select * from vnf_recipe where NF_ROLE IN ('AccessConnectivity','InternetProfile', 'CPE'); |
| 107 | +-------+--------------------+----------------+--------------+-------------+---------------------------+-----------------------------------------------+----------------------------------------+----------------+---------------------+--------------+ |
| 108 | | id | NF_ROLE | ACTION | SERVICE_TYPE | VERSION_STR | DESCRIPTION | ORCHESTRATION_URI | VNF_PARAM_XSD | RECIPE_TIMEOUT | CREATION_TIMESTAMP | VF_MODULE_ID | |
| 109 | +-------+--------------------+----------------+--------------+-------------+---------------------------+-----------------------------------------------+----------------------------------------+----------------+---------------------+--------------+ |
| 110 | | 10048 | InternetProfile | createInstance | NF | 1.0 | create InternetProfile | /mso/async/services/CreateSDNCNetworkResource | {"operationType":"InternetProfile"} | 1800000 | 2020-01-20 17:43:07 | NULL | |
| 111 | | 10051 | AccessConnectivity | createInstance | NF | 1.0 | create AccessConnectivity | /mso/async/services/CreateSDNCNetworkResource | {"operationType":"AccessConnectivity"} | 1800000 | 2020-01-20 17:43:07 | NULL | |
| 112 | | 10054 | CPE | createInstance | NF | 1.0 | create CPE | /mso/async/services/HandlePNF | NULL | 1800000 | 2020-01-20 17:43:07 | NULL | |
| 113 | +-------+--------------------+----------------+--------------+-------------+---------------------------+-----------------------------------------------+----------------------------------------+----------------+---------------------+--------------+ |
| 114 | 3 rows in set (0.00 sec) |
Pérez Caparrós David, INI-INO-ECO-HCT | 6d986ee | 2019-06-28 14:07:44 +0200 | [diff] [blame] | 115 | |
Pérez Caparrós David, INI-INO-ECO-HCT | 6d986ee | 2019-06-28 14:07:44 +0200 | [diff] [blame] | 116 | |
| 117 | DMaaP Message Router |
| 118 | ==================== |
| 119 | |
Pérez Caparrós David | 5da05c5 | 2020-03-05 10:31:49 +0100 | [diff] [blame] | 120 | Create the required topics in DMaaP |
Pérez Caparrós David, INI-INO-ECO-HCT | 6d986ee | 2019-06-28 14:07:44 +0200 | [diff] [blame] | 121 | |
| 122 | :: |
| 123 | |
| 124 | curl -X POST \ |
| 125 | http://mr.api.simpledemo.openecomp.org:30227/topics/create \ |
| 126 | -H 'Accept: application/json' \ |
| 127 | -H 'Content-Type: application/json' \ |
| 128 | -H 'cache-control: no-cache' \ |
| 129 | -d '{ |
| 130 | "topicName": "unauthenticated.DCAE_CL_OUTPUT", |
| 131 | "topicDescription": "", |
| 132 | "partitionCount": "", |
| 133 | "replicationCount": "3" |
| 134 | }' |
| 135 | |
| 136 | curl -X POST \ |
| 137 | http://mr.api.simpledemo.openecomp.org:30227/topics/create \ |
| 138 | -H 'Accept: application/json' \ |
| 139 | -H 'Content-Type: application/json' \ |
| 140 | -H 'cache-control: no-cache' \ |
| 141 | -d '{ |
| 142 | "topicName": "unauthenticated.CPE_AUTHENTICATION", |
| 143 | "topicDescription": "", |
| 144 | "partitionCount": "", |
| 145 | "replicationCount": "3" |
| 146 | }' |
| 147 | |
| 148 | curl -X POST \ |
| 149 | http://mr.api.simpledemo.openecomp.org:30227/topics/create \ |
| 150 | -H 'Accept: application/json' \ |
| 151 | -H 'Content-Type: application/json' \ |
| 152 | -H 'cache-control: no-cache' \ |
| 153 | -d '{ |
| 154 | "topicName": "unauthenticated.PNF_READY", |
| 155 | "topicDescription": "", |
| 156 | "partitionCount": "", |
| 157 | "replicationCount": "3" |
| 158 | }' |
| 159 | |
| 160 | curl -X POST \ |
| 161 | http://mr.api.simpledemo.openecomp.org:30227/topics/create \ |
| 162 | -H 'Accept: application/json' \ |
| 163 | -H 'Content-Type: application/json' \ |
| 164 | -H 'cache-control: no-cache' \ |
| 165 | -d '{ |
| 166 | "topicName": "unauthenticated.PNF_UPDATE", |
| 167 | "topicDescription": "", |
| 168 | "partitionCount": "", |
| 169 | "replicationCount": "3" |
| 170 | }' |
| 171 | |
| 172 | DCAE: BBS Event Processor (BBS-ep) |
| 173 | ================================== |
| 174 | |
Pérez Caparrós David | 5da05c5 | 2020-03-05 10:31:49 +0100 | [diff] [blame] | 175 | Description: `BBS-ep <https://wiki.onap.org/pages/viewpage.action?pageId=60891185>`_ |
Pérez Caparrós David, INI-INO-ECO-HCT | 6d986ee | 2019-06-28 14:07:44 +0200 | [diff] [blame] | 176 | |
Pérez Caparrós David | 5da05c5 | 2020-03-05 10:31:49 +0100 | [diff] [blame] | 177 | The following BBS event processor blueprints will be used: |
| 178 | - `k8s-bbs-event-processor.yaml <https://git.onap.org/dcaegen2/services/plain/components/bbs-event-processor/dpo/blueprints/k8s-bbs-event-processor.yaml-template?h=frankfurt>`_ |
| 179 | - `bbs-event-processor-input.yaml <https://git.onap.org/dcaegen2/services/plain/components/bbs-event-processor/dpo/blueprints/bbs-event-processor-input.yaml?h=frankfurt>`_ |
| 180 | |
| 181 | The BBS-ep deployment procedure: |
Pérez Caparrós David, INI-INO-ECO-HCT | 6d986ee | 2019-06-28 14:07:44 +0200 | [diff] [blame] | 182 | |
| 183 | :: |
| 184 | |
Pérez Caparrós David | 5da05c5 | 2020-03-05 10:31:49 +0100 | [diff] [blame] | 185 | ~/oom/kubernetes# kubectl exec -ti dev-dcaegen2-dcae-bootstrap-85f664d489-54pmt bash |
| 186 | |
| 187 | [root@dev-dcaegen2-dcae-bootstrap-85f664d489-54pmt /]# cfy blueprints validate /blueprints/k8s-bbs-event-processor.yaml |
| 188 | Validating blueprint: /blueprints/k8s-bbs-event-processor.yaml-template |
| 189 | Blueprint validated successfully |
| 190 | |
| 191 | [root@dev-dcaegen2-dcae-bootstrap-85f664d489-54pmt /]# cfy blueprints upload -b bbs-ep /blueprints/k8s-bbs-event-processor.yaml |
| 192 | Uploading blueprint /blueprints/k8s-bbs-event-processor.yaml... |
| 193 | k8s-bbs-event-pro... |################################################| 100.0% |
| 194 | Blueprint uploaded. The blueprint's id is bbs-ep |
| 195 | [root@dev-dcaegen2-dcae-bootstrap-85f664d489-54pmt /]# cfy deployments create -b bbs-ep -i /bbs-event-processor-input.yaml bbs-ep |
| 196 | Creating new deployment from blueprint bbs-ep... |
| 197 | Deployment created. The deployment's id is bbs-ep |
| 198 | |
| 199 | [root@dev-dcaegen2-dcae-bootstrap-85f664d489-54pmt /]# cfy executions start -d bbs-ep install |
| 200 | Executing workflow install on deployment bbs-ep [timeout=900 seconds] |
| 201 | 2019-05-01 11:35:32.007 CFY <bbs-ep> Starting 'install' workflow execution |
| 202 | 2019-05-01 11:35:32.587 CFY <bbs-ep> [bbs-event-processor_yd5ucp] Creating node instance |
| 203 | 2019-05-01 11:35:32.587 CFY <bbs-ep> [bbs-event-processor_yd5ucp.create] Sending task 'k8splugin.create_for_components' |
| 204 | 2019-05-01 11:35:33.953 LOG <bbs-ep> [bbs-event-processor_yd5ucp.create] INFO: Added config for s4d51b24f52264857b7ef520be9efc46b-bbs-event-processor |
| 205 | 2019-05-01 11:35:33.953 LOG <bbs-ep> [bbs-event-processor_yd5ucp.create] INFO: Added config for s4d51b24f52264857b7ef520be9efc46b-bbs-event-processor |
| 206 | 2019-05-01 11:35:34.596 CFY <bbs-ep> [bbs-event-processor_yd5ucp.create] Task succeeded 'k8splugin.create_for_components' |
| 207 | 2019-05-01 11:35:34.596 CFY <bbs-ep> [bbs-event-processor_yd5ucp] Node instance created |
| 208 | 2019-05-01 11:35:34.596 CFY <bbs-ep> [bbs-event-processor_yd5ucp] Configuring node instance: nothing to do |
| 209 | 2019-05-01 11:35:35.227 CFY <bbs-ep> [bbs-event-processor_yd5ucp] Starting node instance |
| 210 | 2019-05-01 11:35:35.227 CFY <bbs-ep> [bbs-event-processor_yd5ucp.start] Sending task 'k8splugin.create_and_start_container_for_components' |
| 211 | 2019-05-01 11:35:36.818 LOG <bbs-ep> [bbs-event-processor_yd5ucp.start] INFO: Passing k8sconfig: {'tls': {u'cert_path': u'/opt/tls/shared', u'image': u'nexus3.onap.org:10001/onap/org.onap.dcaegen2.deployments.tls-init-container:1.0.3-STAGING-latest'}, 'filebeat': {u'config_map': u'dcae-filebeat-configmap', u'config_path': u'/usr/share/filebeat/filebeat.yml', u'log_path': u'/var/log/onap', u'image': u'docker.elastic.co/beats/filebeat:5.5.0', u'data_path': u'/usr/share/filebeat/data', u'config_subpath': u'filebeat.yml'}, 'consul_dns_name': u'consul-server.onap', 'image_pull_secrets': [u'onap-docker-registry-key'], 'namespace': u'onap', 'consul_host': 'consul-server:8500', 'default_k8s_location': u'central'} |
| 212 | 2019-05-01 11:35:36.818 LOG <bbs-ep> [bbs-event-processor_yd5ucp.start] INFO: k8s deployment initiated successfully for s4d51b24f52264857b7ef520be9efc46b-bbs-event-processor: {'services': ['s4d51b24f52264857b7ef520be9efc46b-bbs-event-processor', 'xs4d51b24f52264857b7ef520be9efc46b-bbs-event-processor'], 'namespace': u'onap', 'location': u'central', 'deployment': 'dep-s4d51b24f52264857b7ef520be9efc46b-bbs-event-processor'} |
| 213 | 2019-05-01 11:35:36.818 LOG <bbs-ep> [bbs-event-processor_yd5ucp.start] INFO: Waiting up to 1800 secs for s4d51b24f52264857b7ef520be9efc46b-bbs-event-processor to become ready |
| 214 | 2019-05-01 11:36:58.376 LOG <bbs-ep> [bbs-event-processor_yd5ucp.start] INFO: Done starting: s4d51b24f52264857b7ef520be9efc46b-bbs-event-processor |
| 215 | 2019-05-01 11:36:57.873 LOG <bbs-ep> [bbs-event-processor_yd5ucp.start] INFO: k8s deployment is ready for: s4d51b24f52264857b7ef520be9efc46b-bbs-event-processor |
| 216 | 2019-05-01 11:36:59.119 CFY <bbs-ep> [bbs-event-processor_yd5ucp.start] Task succeeded 'k8splugin.create_and_start_container_for_components' |
| 217 | 2019-05-01 11:36:59.119 CFY <bbs-ep> [bbs-event-processor_yd5ucp] Node instance started |
| 218 | 2019-05-01 11:36:59.119 CFY <bbs-ep> 'install' workflow execution succeeded |
| 219 | Finished executing workflow install on deployment bbs-ep |
| 220 | * Run 'cfy events list -e 7f285182-4f85-478c-95f3-b8b6970f7c8d' to retrieve the execution's events/logs |
| 221 | |
| 222 | IMPORTANT: Make sure that the configuration of BBS-ep in Consul contains the following version for the close loop policy in order to match the version expected by BBS APEX policy: |
| 223 | |
| 224 | :: |
| 225 | |
| 226 | "application.clVersion": "1.0.2" |
Pérez Caparrós David, INI-INO-ECO-HCT | 6d986ee | 2019-06-28 14:07:44 +0200 | [diff] [blame] | 227 | |
| 228 | DCAE: RESTCONF Collector |
| 229 | ======================== |
| 230 | |
Pérez Caparrós David | 5da05c5 | 2020-03-05 10:31:49 +0100 | [diff] [blame] | 231 | Description: `RESTCONF Collector <https://wiki.onap.org/pages/viewpage.action?pageId=60891182>`_ |
| 232 | |
| 233 | The following RESTCONF collector blueprints will be used: |
| 234 | - `k8s-rcc-policy.yaml <https://git.onap.org/dcaegen2/collectors/restconf/plain/dpo/blueprints/k8s-rcc-policy.yaml-template?h=frankfurt>`_ |
| 235 | |
| 236 | RESTCONF Collector deployment procedure: |
| 237 | |
| 238 | :: |
| 239 | |
| 240 | [root@dev-dcaegen2-dcae-bootstrap-779767c49c-7cvdw /]# cfy blueprints validate blueprints/k8s-rcc-policy.yaml |
| 241 | Validating blueprint: blueprints/k8s-rcc-policy.yaml |
| 242 | Blueprint validated successfully |
| 243 | |
| 244 | [root@dev-dcaegen2-dcae-bootstrap-779767c49c-7cvdw /]# cfy blueprints upload -b restconfcollector /blueprints/k8s-rcc-policy.yaml |
| 245 | Uploading blueprint /blueprints/k8s-rcc-policy.yaml... |
| 246 | k8s-rcc-policy.yaml |#################################################| 100.0% |
| 247 | Blueprint uploaded. The blueprint's id is restconfcollector |
| 248 | |
| 249 | [root@dev-dcaegen2-dcae-bootstrap-779767c49c-7cvdw /]# cfy deployments create -b restconfcollector |
| 250 | Creating new deployment from blueprint restconfcollector... |
| 251 | Deployment created. The deployment's id is restconfcollector |
| 252 | |
| 253 | [root@dev-dcaegen2-dcae-bootstrap-779767c49c-7cvdw /]# cfy executions start -d restconfcollector install |
| 254 | Executing workflow install on deployment restconfcollector [timeout=900 seconds] |
| 255 | 2020-01-13 15:12:52.119 CFY <restconfcollector> Starting 'install' workflow execution |
| 256 | 2020-01-13 15:12:52.701 CFY <restconfcollector> [rcc_k8s_8qm5me] Creating node instance |
| 257 | 2020-01-13 15:12:52.701 CFY <restconfcollector> [rcc_k8s_8qm5me.create] Sending task 'k8splugin.create_for_platforms' |
| 258 | 2020-01-13 15:12:55.168 LOG <restconfcollector> [rcc_k8s_8qm5me.create] INFO: Added config for dcaegen2-collectors-rcc |
| 259 | 2020-01-13 15:12:55.747 LOG <restconfcollector> [rcc_k8s_8qm5me.create] INFO: Done setting up: dcaegen2-collectors-rcc |
| 260 | 2020-01-13 15:12:55.747 CFY <restconfcollector> [rcc_k8s_8qm5me.create] Task succeeded 'k8splugin.create_for_platforms' |
| 261 | 2020-01-13 15:12:55.747 CFY <restconfcollector> [rcc_k8s_8qm5me] Node instance created |
| 262 | 2020-01-13 15:12:56.341 CFY <restconfcollector> [rcc_k8s_8qm5me] Configuring node instance: nothing to do |
| 263 | 2020-01-13 15:12:56.341 CFY <restconfcollector> [rcc_k8s_8qm5me] Starting node instance |
| 264 | 2020-01-13 15:12:56.341 CFY <restconfcollector> [rcc_k8s_8qm5me.start] Sending task 'k8splugin.create_and_start_container_for_platforms' |
| 265 | 2020-01-13 15:12:57.559 LOG <restconfcollector> [rcc_k8s_8qm5me.start] INFO: Starting k8s deployment for dcaegen2-collectors-rcc, image: nexus3.onap.org:10001/onap/org.onap.dcaegen2.collectors.restconfcollector:1.1.1, env: {'CONSUL_HOST': u'consul-server.onap.svc.cluster.local', u'DMAAPHOST': u'message-router.onap.svc.cluster.local', 'CONFIG_BINDING_SERVICE': u'config_binding_service', u'CBS_HOST': u'config-binding-service.dcae.svc.cluster.local', u'DMAAPPORT': u'3904', u'CBS_PORT': u'10000', u'CONSUL_PORT': u'8500', u'DMAAPPUBTOPIC': u'unauthenticated.DCAE_RCC_OUTPUT'}, kwargs: {'readiness': {u'endpoint': u'/healthcheck', u'type': u'http', u'timeout': u'1s', u'interval': u'15s'}, 'tls_info': {}, 'replicas': 1, u'envs': {u'CONSUL_HOST': u'consul-server.onap.svc.cluster.local', u'DMAAPHOST': u'message-router.onap.svc.cluster.local', u'CONFIG_BINDING_SERVICE': u'config_binding_service', u'CBS_HOST': u'config-binding-service.dcae.svc.cluster.local', u'DMAAPPORT': u'3904', u'CBS_PORT': u'10000', u'CONSUL_PORT': u'8500', u'DMAAPPUBTOPIC': u'unauthenticated.DCAE_RCC_OUTPUT'}, 'labels': {'cfydeployment': u'restconfcollector', 'cfynodeinstance': u'rcc_k8s_8qm5me', 'cfynode': u'rcc_k8s'}, 'ctx': <cloudify.context.CloudifyContext object at 0x7fb63e5872d0>, 'always_pull_image': False, 'resource_config': {}, 'log_info': {u'log_directory': u'/opt/app/RCCollector/logs'}, u'ports': [u'8080:30416'], 'k8s_location': u'central'} |
| 266 | 2020-01-13 15:12:58.275 LOG <restconfcollector> [rcc_k8s_8qm5me.start] INFO: Passing k8sconfig: {'tls': {u'cert_path': u'/opt/tls/shared', u'image': u'nexus3.onap.org:10001/onap/org.onap.dcaegen2.deployments.tls-init-container:1.0.3', u'ca_cert_configmap': u'dev-dcaegen2-dcae-bootstrap-dcae-cacert', u'component_ca_cert_path': u'/opt/dcae/cacert/cacert.pem'}, 'filebeat': {u'config_map': u'dcae-filebeat-configmap', u'config_path': u'/usr/share/filebeat/filebeat.yml', u'log_path': u'/var/log/onap', u'image': u'docker.elastic.co/beats/filebeat:5.5.0', u'data_path': u'/usr/share/filebeat/data', u'config_subpath': u'filebeat.yml'}, 'consul_dns_name': u'consul-server.onap', 'image_pull_secrets': [u'onap-docker-registry-key'], 'namespace': u'onap', 'consul_host': 'consul-server:8500', 'default_k8s_location': u'central'} |
| 267 | 2020-01-13 15:12:58.275 LOG <restconfcollector> [rcc_k8s_8qm5me.start] INFO: k8s deployment initiated successfully for dcaegen2-collectors-rcc: {'services': ['dcaegen2-collectors-rcc', 'xdcaegen2-collectors-rcc'], 'namespace': u'onap', 'location': u'central', 'deployment': 'dep-dcaegen2-collectors-rcc'} |
| 268 | 2020-01-13 15:12:58.275 LOG <restconfcollector> [rcc_k8s_8qm5me.start] INFO: Waiting up to 1800 secs for dcaegen2-collectors-rcc to become ready |
| 269 | ^A2020-01-13 15:13:29.970 LOG <restconfcollector> [rcc_k8s_8qm5me.start] INFO: k8s deployment is ready for: dcaegen2-collectors-rcc |
| 270 | 2020-01-13 15:13:30.550 CFY <restconfcollector> [rcc_k8s_8qm5me.start] Task succeeded 'k8splugin.create_and_start_container_for_platforms' |
| 271 | 2020-01-13 15:13:30.550 CFY <restconfcollector> [rcc_k8s_8qm5me] Node instance started |
| 272 | 2020-01-13 15:13:31.265 CFY <restconfcollector> 'install' workflow execution succeeded |
| 273 | Finished executing workflow install on deployment restconfcollector |
| 274 | * Run 'cfy events list -e 2ea4f906-536b-48b1-aa34-dd6b4baed255' to retrieve the execution's events/logs |
Pérez Caparrós David, INI-INO-ECO-HCT | 6d986ee | 2019-06-28 14:07:44 +0200 | [diff] [blame] | 275 | |
| 276 | DCAE: VES mapper |
| 277 | ================ |
| 278 | |
| 279 | Installation instructions: `VES Mapper <https://wiki.onap.org/pages/viewpage.action?pageId=60891188>`_ |
| 280 | |
Pérez Caparrós David | 5da05c5 | 2020-03-05 10:31:49 +0100 | [diff] [blame] | 281 | The following VES mapper blueprints will be used: |
| 282 | - `k8s-vesmapper.yaml <https://gerrit.onap.org/r/gitweb?p=dcaegen2/services/mapper.git;a=blob_plain;f=UniversalVesAdapter/dpo/blueprints/k8s-vesmapper.yaml-template.yaml>`_ |
| 283 | |
| 284 | IMPORTANT: Set the image to nexus3.onap.org:10001/onap/org.onap.dcaegen2.services.mapper.vesadapter.universalvesadaptor:1.0.0 in the blueprint |
| 285 | |
Pérez Caparrós David, INI-INO-ECO-HCT | 6d986ee | 2019-06-28 14:07:44 +0200 | [diff] [blame] | 286 | DCAE: VES collector |
| 287 | =================== |
| 288 | |
Pérez Caparrós David | 5da05c5 | 2020-03-05 10:31:49 +0100 | [diff] [blame] | 289 | Configure the mapping of the VES event domain to the correct DMaaP topic in Consul: ves-statechange --> unauthenticated.CPE_AUTHENTICATION |
Pérez Caparrós David, INI-INO-ECO-HCT | 6d986ee | 2019-06-28 14:07:44 +0200 | [diff] [blame] | 290 | |
Pérez Caparrós David | 5da05c5 | 2020-03-05 10:31:49 +0100 | [diff] [blame] | 291 | 1. Access Consul UI: `<http://<consul_server_ui>:30270/ui/#/dc1/services>`_ |
Pérez Caparrós David, INI-INO-ECO-HCT | 6d986ee | 2019-06-28 14:07:44 +0200 | [diff] [blame] | 292 | |
Pérez Caparrós David | 5da05c5 | 2020-03-05 10:31:49 +0100 | [diff] [blame] | 293 | 2. Modify the dcae-ves-collector configuration by adding a new VES domain to DMaaP topic mapping |
Pérez Caparrós David, INI-INO-ECO-HCT | 6d986ee | 2019-06-28 14:07:44 +0200 | [diff] [blame] | 294 | |
| 295 | :: |
| 296 | |
| 297 | "ves-statechange": {"type": "message_router", "dmaap_info": {"topic_url": "http://message-router:3904/events/unauthenticated.CPE_AUTHENTICATION"}} |
| 298 | |
Pérez Caparrós David | 5da05c5 | 2020-03-05 10:31:49 +0100 | [diff] [blame] | 299 | 3. Click on UPDATE in order to apply the new configuration |
| 300 | |
| 301 | |
Pérez Caparrós David, INI-INO-ECO-HCT | 6d986ee | 2019-06-28 14:07:44 +0200 | [diff] [blame] | 302 | SDNC: BBS DGs (Directed Graphs) |
| 303 | =============================== |
| 304 | |
Pérez Caparrós David | 5da05c5 | 2020-03-05 10:31:49 +0100 | [diff] [blame] | 305 | Make sure that the following BBS DGs in the SDNC DGBuilder are in Active state |
Pérez Caparrós David, INI-INO-ECO-HCT | 6d986ee | 2019-06-28 14:07:44 +0200 | [diff] [blame] | 306 | |
| 307 | :: |
| 308 | |
Pérez Caparrós David | 5da05c5 | 2020-03-05 10:31:49 +0100 | [diff] [blame] | 309 | bbs-access-connectivity-vnf-topology-operation-create-huawei |
| 310 | bbs-access-connectivity-vnf-topology-operation-delete-huawei |
| 311 | bbs-internet-profile-vnf-topology-operation-change-huawei |
| 312 | bbs-internet-profile-vnf-topology-operation-common-huawei |
| 313 | bbs-internet-profile-vnf-topology-operation-create-huawei |
| 314 | bbs-internet-profile-vnf-topology-operation-delete-huawei |
| 315 | validate-bbs-vnf-input-parameters |
| 316 | |
| 317 | DGBuilder URL: `<https://sdnc.api.simpledemo.onap.org:30203>`_ |
| 318 | |
| 319 | Access SDN M&C DG |
| 320 | ================= |
| 321 | Configure Access SDN M&C IP address in SDNC DG using dgbuilder. For instance: |
| 322 | |
| 323 | > GENERIC-RESOURCE-API: bbs-access-connectivity-vnf-topology-operation-create-huawei.json |
| 324 | > GENERIC-RESOURCE-API: bbs-access-connectivity-vnf-topology-operation-delete-huawei.json |
| 325 | |
| 326 | 1. Export the relevant DG |
| 327 | |
| 328 | 2. Modify the IP address |
| 329 | |
| 330 | 3. Import back the DG and Activate it |
| 331 | |
| 332 | DGBuilder URL: `<https://sdnc.api.simpledemo.onap.org:30203>`_ |
| 333 | |
| 334 | Edge SDN M&C DG |
| 335 | =============== |
| 336 | Configure Edge SDN M&C IP address in SDNC DG using dgbuilder. For instance: |
| 337 | |
| 338 | > GENERIC-RESOURCE-API: bbs-access-connectivity-vnf-topology-operation-common-huawei.json |
| 339 | |
| 340 | 1. Export the relevant DG |
| 341 | |
| 342 | 2. Modify the IP address |
| 343 | |
| 344 | 3. Import back the DG and Activate it |
| 345 | |
| 346 | DGBuilder URL: `<https://sdnc.api.simpledemo.onap.org:30203>`_ |
| 347 | |
| 348 | Add SSL certificate of the 3rd party controller into the SDNC trust store |
| 349 | ------------------------------------------------------------------------- |
| 350 | |
| 351 | :: |
| 352 | |
| 353 | kubectl exec -ti dev-sdnc-sdnc-0 -n onap -- bash |
| 354 | |
| 355 | openssl s_client -connect <IP_ADDRESS_EXT_CTRL>:<PORT> |
| 356 | # copy server certificate and paste in /tmp/<CA_CERT_NAME>.crt |
| 357 | sudo keytool -importcert -file /tmp/<CA_CERT_NAME>.crt -alias <CA_CERT_NAME>_key -keystore truststore.onap.client.jks -storepass adminadmin |
| 358 | keytool -list -keystore truststore.onap.client.jks -storepass adminadmin | grep <CA_CERT_NAME> |
Pérez Caparrós David, INI-INO-ECO-HCT | 6d986ee | 2019-06-28 14:07:44 +0200 | [diff] [blame] | 359 | |
| 360 | Policy: BBS APEX policy |
| 361 | ======================= |
| 362 | |
Pérez Caparrós David | 5da05c5 | 2020-03-05 10:31:49 +0100 | [diff] [blame] | 363 | Deployment procedure of BBS APEX Policy (master, apex-pdp image v2.3+) |
Pérez Caparrós David, INI-INO-ECO-HCT | 6d986ee | 2019-06-28 14:07:44 +0200 | [diff] [blame] | 364 | |
Pérez Caparrós David | 5da05c5 | 2020-03-05 10:31:49 +0100 | [diff] [blame] | 365 | 1. Make Sure APEX PDP is running and in Active state |
Pérez Caparrós David, INI-INO-ECO-HCT | 6d986ee | 2019-06-28 14:07:44 +0200 | [diff] [blame] | 366 | |
| 367 | :: |
| 368 | |
Pérez Caparrós David | 5da05c5 | 2020-03-05 10:31:49 +0100 | [diff] [blame] | 369 | API: GET |
| 370 | URL: {{POLICY-PAP-URL}}/policy/pap/v1/pdps |
Pérez Caparrós David, INI-INO-ECO-HCT | 6d986ee | 2019-06-28 14:07:44 +0200 | [diff] [blame] | 371 | |
Pérez Caparrós David | 5da05c5 | 2020-03-05 10:31:49 +0100 | [diff] [blame] | 372 | 2. Create the operational control loop APEX policy type |
Pérez Caparrós David, INI-INO-ECO-HCT | 6d986ee | 2019-06-28 14:07:44 +0200 | [diff] [blame] | 373 | |
| 374 | :: |
| 375 | |
Pérez Caparrós David | 5da05c5 | 2020-03-05 10:31:49 +0100 | [diff] [blame] | 376 | API: POST |
| 377 | URL: {{POLICY-API-URL}}/policy/api/v1/policytypes |
| 378 | |
| 379 | 3. Create BBS APEX policy |
| 380 | |
| 381 | :: |
| 382 | |
| 383 | API: POST |
| 384 | URL: {{POLICY-API-URL}}/policy/api/v1/policytypes/onap.policies.controlloop.operational.Apex/versions/1.0.0/policies |
| 385 | |
| 386 | 4. Deploy BBS policy |
| 387 | |
| 388 | :: |
| 389 | |
| 390 | API: POST |
| 391 | URL: {{POLICY-PAP-URL}}/policy/pap/v1/pdps/deployments/batch |
| 392 | |
| 393 | 5. Verify the deployment |
| 394 | |
| 395 | :: |
| 396 | |
| 397 | API: GET |
| 398 | URL: {{POLICY-API-URL}}/policy/api/v1/policytypes/onap.policies.controlloop.operational.Apex/versions/1.0.0/policies/ |
Pérez Caparrós David, INI-INO-ECO-HCT | 6d986ee | 2019-06-28 14:07:44 +0200 | [diff] [blame] | 399 | |
| 400 | Edge Services: vBNG+AAA+DHCP, Edge SDN M&C |
| 401 | ========================================== |
| 402 | |
| 403 | Installation and setup instructions: `Swisscom Edge SDN M&C and virtual BNG <https://wiki.onap.org/pages/viewpage.action?pageId=63996962>`_ |
| 404 | |
| 405 | References |
| 406 | ========== |
| 407 | |
Pérez Caparrós David | 5da05c5 | 2020-03-05 10:31:49 +0100 | [diff] [blame] | 408 | Please refer to the following wiki page for further steps related to the BBS service design and instantiation: |
Pérez Caparrós David, INI-INO-ECO-HCT | 6d986ee | 2019-06-28 14:07:44 +0200 | [diff] [blame] | 409 | |
Pérez Caparrós David | 5da05c5 | 2020-03-05 10:31:49 +0100 | [diff] [blame] | 410 | - `BBS Documentation <https://wiki.onap.org/pages/viewpage.action?pageId=75303137#BBSDocumentation(Frankfurt)-BBSServiceConfiguration>`_ |
Pérez Caparrós David, INI-INO-ECO-HCT | 6d986ee | 2019-06-28 14:07:44 +0200 | [diff] [blame] | 411 | |
| 412 | Known Issues |
| 413 | ------------ |
| 414 | |
Pérez Caparrós David | 5da05c5 | 2020-03-05 10:31:49 +0100 | [diff] [blame] | 415 | - E2E Service deletion workflow does not delete the PNF resource in AAI (`SO-2609 <https://jira.onap.org/browse/SO-2609>`_) |
Pérez Caparrós David, INI-INO-ECO-HCT | d30ccf8 | 2019-06-18 23:05:16 +0200 | [diff] [blame] | 416 | |
| 417 | .. |image1| image:: files/bbs/BBS_arch_overview.png |
| 418 | :width: 6.5in |
| 419 | .. |image2| image:: files/bbs/BBS_system_view.png |
| 420 | :width: 6.5in |