Create your first assembly descriptor in Cloud Pak for Network Automation (CP4NA)
Objective: To create an assembly descriptor using an existing resource package.
This article is for users who intend to learn about assembly descriptors and instances in CloudPak for Network Automation ( CP4NA ), earlier called Telco Network Cloud Orchestrator ( TNC-O ) / Agile Lifecycle Manager ( ALM ).
Pre-Requisite: It is expected that you have a running instance of CloudPak for Network Automation ( CP4NA ) and able to use it for the below exercise.
The package used in this exercise is t_simple. This is a simple resource that is packaged and will be pushed to the CP4NA server. Here, dev refers to the environment name, as defined in lmctl-config.yaml
Steps for creating an assembly descriptor:
- As shown in the below image, lmctl command is used to push a package from the local machine to the CP4NA server.
2. There is a VNF component ( resource ) in the package. Which is pushed into the Resource Manager
3. The t_simple resource descriptor is added. Click Create to add a new assembly descriptor
4. Click on Open to open the assembly descriptor
5. Click on Add Element and provide the below values. Use the descriptor — resource descriptor. Choose the t_simple resource descriptor. Click Add.
6. Drop down the Component_Resource and observe the properties
7. Add the deploymentLocation and resourceManager values, which in this exercise are devstack and defaultrm. Observe that the properties are updated. Save the configuration
Steps to create an instance using the assembly descriptor
- From the CP4NA UI, expand Operations -> Recent Assembly Instances. Click on Create
2. Properties are blank because the resource does not have any properties. Click Next
3. Review the configuration and click Create
4. The below image shows that the instance is being installed. Click the 3 dots and select Open Execution
5. Observe the above image and note the execution steps. In this, we have installed the instance successfully.
Conclusion:
Through this article, we have observed the steps to create a descriptor and install an instance.