Disclaimer: We are using the HPA & Cloud Agnostic Intent - R3 Test Plan as reference. The postman given here are only for reference. Please make necessary edits according to the test plan.
Generating AAI data
Note: Required only if the Multicloud has no real cloud-regions and HPA discovery cannot happen.
If Multicloud team has data for creating the Cloud-region and doesn't have the HPA, then please update the existing data with the flavors with HPA.
- Import the postman collection CASABLANCA_AAI_postman.json
- To add/remove HPA Capabilities edit the flavors section in the body of PUT Cloud-Region{x}
- Once all the necessary Use postman to add the complex and cloud regions in the order specified below
- Use the GET requests to verify the data.
Creating Policy
Note: For testing purposes, policies go hand in hand with the available HPA capabilities. This means for a matching homing solution to be identified, we have to inject policies that is a subset of available HPA capabilities.
Login to Policy GUI by using the pap port https://${k8s_node_ip}:30219/onap/login.htm credentials are demo/demo
Wiki reference for Policy GUI - /wiki/spaces/DW/pages/16279393. The models in this wiki might not be the latest. Please refer below for the OOF Policy models.
Create Policy model
Using the policy GUI upload all the policy models in the portal using either Method 1 or Method 2.
Method 1 (Import CSV)
Shortcurt to upload model - Not tested
- Select Policy→Dictionary from left panel
- Click on the IMPORT DICTIONARY'S button and use the OOFPolicyDictionary_For_Import.csv to import models.
Method 2 (Manual upload)
Manual Method to Upload models by creating dictionary as per the below screen shots.
OOF Policy models including HPA available here OOF Policy Tosca Models
- Select Policy→Dictionary from left panel
- Select MicroService Policy from Policy Type Dictionary drop down
- Select MicroService Models from Select Dictionary drop down
- Click on the CREATE button.
- Creating menu is self explanatory, please give same version for all the models imported together.
Create and Push Policy
Login to any pod (We OSDF) - and use the pdp servicename and port using the curl commands below.