Test procedure for HEAT, need to modify for OOM.
1? SDNC VM??sdnc_ansible_container???
- ??External Controller?????ssh key file???????/opt/onap/ccsdk????ssh key file??https://jira.onap.org/browse/CCSDK-464??????????????
- ??/opt/onap/ccsdk/Playbooks????Ansible_Inventory?????????https://jira.onap.org/browse/CCSDK-464??????????ansible_ssh_private_key_file=ssh_key_file???ansible_ssh_private_key_file=/opt/onap/ccsdk/ssh_key_file?
2? SDNC VM??sdnc_controller_container??????/opt/onap/sdnc/data/properties/lcm-dg.properties
lcm.pnf.upgrade-pre-check.playbookname=ansible_huawei_precheck
lcm.pnf.upgrade-post-check.playbookname=ansible_huawei_postcheck
lcm.pnf.upgrade-software.playbookname=ansible_huawei_upgrade
3? ??SDNC UI??3?LCM NB API??E2E???
- ??UI?http://sdnc_ip:8282/apidoc/explorer/index.html ?credential: admin/Kp8bJ4SXszM0WXlhak3eHlcse2gAw84vaoGGmJvUy2U??????wiki?https://wiki.onap.org/display/DW/SDNC+Component ?
- ??LCM??POST /operations/LCM:upgrade-pre-check,???request?????
{
"input": {
"common-header": {
"timestamp": "2018-10-10T09:40:04.244Z",
"api-ver": "2.00",
"originator-id": "664be3d2-6c12-4f4b-a3e7-c349acced203",
"request-id":"664be3d2-6c12-4f4b-a3e7-c349acced203",
"sub-request-id": "1",
"flags": {
"force" : "TRUE",
"ttl" : 60000
}
},
"action": "UpgradePreCheck",
"action-identifiers": {
"vnf-id":"5gDU0001"
},
"payload": "{\"pnf-flag\":\"true\", \"pnf-name\": \"5gDU0001\",\"pnfId\": \"5gDU0001\", \"ipaddress-v4-oam\": \"139.159.228.37\",\"oldSwVersion\": \"v1\", \"targetSwVersion\": \"v2\", \"ruleName\": \"r001\", \"Id\": \"10\", \"additionalData\":\"{}\"}"}}
- ??LCM??POST /operations/LCM:upgrade-software,???request?????
{
"input": {
"common-header": {
"timestamp": "2018-10-10T09:40:04.244Z",
"api-ver": "2.00",
"originator-id": "664be3d2-6c12-4f4b-a3e7-c349acced203",
"request-id":"664be3d2-6c12-4f4b-a3e7-c349acced203",
"sub-request-id": "3",
"flags": {
"force" : "TRUE",
"ttl" : 60000
}
},
"action": "UpgradeSoftware",
"action-identifiers": {
"vnf-id":"5gDU0001"
},
"payload": "{\"pnf-flag\":\"true\", \"pnf-name\": \"5gDU0001\",\"pnfId\": \"5gDU0001\", \"ipaddress-v4-oam\": \"139.159.228.37\",\"oldSwVersion\": \"v1\", \"targetSwVersion\": \"v2\", \"Id\": \"10\", \"additionalData\":\"{}\"}"}}
- ??LCM??POST /operations/LCM:upgrade-post-check,???request?????
{
"input": {
"common-header": {
"timestamp": "2018-10-10T09:40:04.244Z",
"api-ver": "2.00",
"originator-id": "664be3d2-6c12-4f4b-a3e7-c349acced203",
"request-id":"664be3d2-6c12-4f4b-a3e7-c349acced203",
"sub-request-id": "2",
"flags": {
"force" : "TRUE",
"ttl" : 60000
}
},
"action": "UpgradePostCheck",
"action-identifiers": {
"vnf-id":"5gDU0001"
},
"payload": "{\"pnf-flag\":\"true\", \"pnf-name\": \"5gDU0001\",\"pnfId\": \"5gDU0001\", \"ipaddress-v4-oam\": \"139.159.228.37\",\"oldSwVersion\": \"v1\", \"targetSwVersion\": \"v2\", \"ruleName\": \"r102\", \"Id\": \"10\", \"additionalData\":\"{}\"}"}}
???b/c/d Response??status code?400????????