blob: 548ccc8b737dc9f477b1898bccc26fd4e174c525 [file] [log] [blame]
Haibin Huang13433a82019-06-04 16:14:59 +08001## Guide for hpa_automation.py script in tosca
2
3These guide describes how to run the hpa_automation.py script. It can be used to run the vCPE end to end
4use cases.
5
6## Prerequisites
7
8 - Login in your CLI container.
9 - Install python mysql.connector in CLI container (pip install mysql-connector-python)
10 - Create Nodeport for Policy pdp using the pdp_service_expose.yaml file (copy pdp_service_expose.yaml
11 in hpa_automation/tosca to rancher and run kubectl apply -f pdp_expose.yaml)
12 - Design vCPE in SDC, you can refer to https://wiki.onap.org/display/DW/vCPE+with+Tosca+VNF+Test+Guide.
13 - Put in the CSAR file to be used to create service models and specify its path in vcpe_config.json
14 - Put in the right parameters for automation in vcpe_config.json or vcpe_vgw_config.json
15 you must change below params:
16 - aai_url: https://<node-ip>:30233
17 - sdc_onboarding_url: http://<cluster-ip>:8081
songgongjun48d1ab02019-08-27 21:06:07 -070018 <cludster-ip> can be gotten by "kubectl get services -n onap -o wide | grep sdc-onboarding-be"
Haibin Huang13433a82019-06-04 16:14:59 +080019 - sdc_catalog_url: http://<node-ip>:30205
20 - multicloud_url: http://<node-ip>:30280
21 - policy_url: https://<node-ip>:30694
22 - vfc-url: http://<node-ip>:30280
23 - cloud_region_data
24 - vnfs path
25 - ns path
26 - You can run the following commands.
27 vcpe_config.json including all vnfs.
28 vcpe_vgw_config.json including vgw vnf, we can use it to test VF-C and do simple integration test.
29 - Use local package which is submitted by local file system.
30 # python hpa_automation.py -f vcpe_vgw_config.json -t "local"
31 - Use sdc package which is distributed from SDC.
32 # python hpa_automation.py -f vcpe_config.json -t "sdc"
33
34**Points to Note:**
35 - The hpa_automation.py runs end to end. It does the following;
36 - Create cloud complex
37 - Register cloud regions
38 - Create service type
39 - Create customer and adds customer subscription
40 - SDC Onboarding (Create VLM, VSP, VF Model, and service model)
41 - Upload policy models and adds policies
42 - Create Service Instance and VNF Instance
43 - There are well named functions that do the above items every time the script is run. If you do not
44 wish to run any part of that, you can go into the script and comment out the section at the bottom
45 that handles that portion.