Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

5G Core Slice creation and Core NS instantiation using the Macro flow through NBI Automation.
Here we are performing the Instantiation,Day0,Day1 and Day2 configuration with help of SO, SDNC, Multicloud (k8s-plugin) and CDS.
There are two E2E workflows involved i.e Macro POST (Instantiation) and PUT (Modify Config) operations.

CBA package Download:

https://gerrit.onap.org/r/c/ccsdk/cds/+/113518



Jira
serverONAP JIRA
columnskey,summary,type,created,updated,due,assignee,reporter,priority,status,resolution
serverId425b2b0a-557c-3c0c-b515-579789cceedb
keyINT-1728

  1. POST: Instantiation,Day0 and Day1 (will update the snssai value in CNF while creation/Instantiation) will perform.
  2. PUT: Day2 can perform (will update the snssai value for Modify Config flow).


Description:


This guide explains to realize the 5G Slicing CNF instantiation of dummy AMF, SMF and UPF network components as PODs in the k8s cluster and applying slicing configurations via ConfigMap k8s resource.

The following pre-requisites are required on ONAP Frankfurt instance to execute the usecase.

· Dummy Helm Charts to instantiate AMF, SMF & UPF

  • CBA package
  • NBI – NBI image 7.0.2
  • SO – SO image 1.7.1
  • Multicloud/K8splugin – Multicloud image latest


Helm artifacts for AMF, SMF & UPF:

  1. Instantiation, day0 & day1
    1.  Base helm package amf_cloudtech_k8s_charts.tgz for instantiation contains following resources.
Info
iconfalse

AMF package:

amf/

amf/Chart.yaml

amf/values.yaml

amf/templates/

amf/templates/configmap.yaml

amf/templates/deployment.yaml

  

                 b. Profile artifact template-profile.tar.gz contains the following resources.

Info
iconfalse

Profile package:

manifest.yaml

override_values.yaml


profile artifact carries snssai parameters for the day0 slice configurations inside override_values.yaml

Day2:

Config templates for each AMF, SMF & UPF instances as helm package for the day2 configurations contains the following resources. For instance the amf config template amf-config-template.tar.gz for AMF instance contains following resources


Info
iconfalse

AMF Config Template :

amf/

amf/Chart.yaml

amf/values.yaml

amf/templates/

amf/templates/configmap.yaml

Config template helm package will be placed inside CBA package along the side profile artifact.

The day2 config-templates will be modified from the Kotlin script before uploaded to multicloud with the ConfigMap name already instantiated. This is to ensure that config-template would update the same ConfigMap which is existing already.


CBA package impacts:

The following new workflows introduced in the CBA along with the existing workflow “resource-assignment” compare to firewall CNF usecase from the Frankfurt.

  1. Instantiation, Day0 & Day1
    • resource-assignment
                This CDS workflow executes kotlin script K8sProfileUpload.kt – responsible to upload profile artifact.
    • config-assign
    • config-deploy
                This CDS workflow executes kotlin script DayOneConfig.kt – responsible to update the config-template with appropriate(instantiated configmap) ConfigMap name and upload it using K8splugin config template API. This is being invoked
      from SO POST api.
  2. Day2
    1. config-assign-day-2
    2. config-deploy-day-2

...

Code Block
languagesql
firstline1
titleorchestration_flow_reference
collapsetrue
MariaDB [catalogdb]> select * from  orchestration_flow_reference;

| 429 | Service-Macro-Create | 1 | AssignServiceInstanceBB | 1 | 102 | NULL | NULL |
| 432 | Service-Macro-Create | 2 | CreateNetworkCollectionBB | 1 | 102 | NULL | NULL |
| 435 | Service-Macro-Create | 3 | AssignNetworkBB | 1 | 102 | NULL | NULL |
| 438 | Service-Macro-Create | 4 | AssignVnfBB | 1 | 102 | NULL | NULL |
| 441 | Service-Macro-Create | 5 | AssignVolumeGroupBB | 1 | 102 | NULL | NULL |
| 444 | Service-Macro-Create | 6 | AssignVfModuleBB | 1 | 102 | NULL | NULL |
| 447 | Service-Macro-Create | 7 | ControllerExecutionBB | 1 | 102 | vnf | config-assign |
| 450 | Service-Macro-Create | 8 | AssignPnfBB | 1 | 102 | NULL | NULL |
| 453 | Service-Macro-Create | 9 | WaitForPnfReadyBB | 1 | 102 | NULL | NULL |
| 456 | Service-Macro-Create | 10 | ActivatePnfBB | 1 | 102 | NULL | NULL |
| 459 | Service-Macro-Create | 11 | CreateNetworkBB | 1 | 102 | NULL | NULL |
| 462 | Service-Macro-Create | 12 | ActivateNetworkBB | 1 | 102 | NULL | NULL |
| 465 | Service-Macro-Create | 15 | CreateVolumeGroupBB | 1 | 102 | NULL | NULL |
| 468 | Service-Macro-Create | 16 | ActivateVolumeGroupBB | 1 | 102 | NULL | NULL |
| 471 | Service-Macro-Create | 17 | CreateVfModuleBB | 1 | 102 | NULL | NULL |
| 474 | Service-Macro-Create | 18 | ActivateVfModuleBB | 1 | 102 | NULL | NULL |
| 477 | Service-Macro-Create | 19 | ControllerExecutionBB | 1 | 102 | vnf | config-deploy |
| 480 | Service-Macro-Create | 20 | ActivateVnfBB | 1 | 102 | NULL | NULL |
| 483 | Service-Macro-Create | 21 | ActivateNetworkCollectionBB | 1 | 102 | NULL | NULL |
| 486 | Service-Macro-Create | 22 | ActivateServiceInstanceBB | 1 | 102 | NULL | NULL |


Instantiation of slice, day-0 configurations:


Instantiation and Day-0 FlowImage Added



Process:

  1. NBI receives 5G Slice order request to process. SO creates the service instance and updates service instance information to A&AI. SO further triggers SDNC to create service instance info in MD-SAL. SDNC further triggers CDS to execute resource assignment workflow.
  2. SO creates VNF and updates VNF information to A&AI. SO further triggers SDNC to create VNF info in MD-SAL. SDNC further triggers CDS to execute resource assignment workflow.
  3. SO creates vf-module and updates vf-module information to A&AI. SO further triggers SDNC to create VNF info in MD-SAL. SDNC further triggers CDS to execute resource-assignment workflow. The workflow triggers kotlin script KotlinK8sProfileUpload.kt which updates profile artifact with snssai parameters and create profile in K8splugin.
  4. SO triggers config-assign workflow in CDS. CDS processes config-assign workflow.
  5. SO invokes infra-workload API of Multicloud which further invokes K8splugin. Before processing of instantiating helm charts, the K8splugin retrieves profile artifact and updates the ConfigMap with snssai information from override.yaml of profile artifact.
  6. SO updates A&AI with vf-module status as Activated.
  7. SO triggers config-deploy workflow of CDS. CDS processes the config-deploy workflow. The workflow would execute kotlin script KotlinDayOneConfig.kt. The script performs the following activities in sequence. Steps from b) to f) will be executed for
    all the vf-modules except base.
    1. Script invokes A&AI and fetch vf-modules details
    2. From each vf-module response it retrieves heat-stack-id which is actually k8splugin instance id.
    3. With instance-id, invokes K8splugin /instance API to fetch ConfigMap name information.
    4. Updates the ConfigMap name in config-template artifact.
    5. Executes Create template API of K8splugin
    6. Uploads the config-template artifact by invoking Upload config template content API of K8splugin.
  8. SO updates A&AI with VNF status as Active.
  9. SO updates A&AI with Service Instance status as Active.


PUT Operation Process:

Info
iconfalse

Prerequisites:

  • Update the SO catalogdb tables as below for config-assign and config-deploy process from SO to CDS.

...