Versions Compared

Key

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

...

View file
name5G - PNF Software Update.mp4
height250

Test Setup

In this test setup, we just use Rancher node as external controller simulator and onap_dev as private key. 

1.  Set up  SDNC sdnc _ ansible_-server container:

  • Prepare External Controller simulator ssh key file, name the key file as ssh_key_file and put it Put onap_dev key file under the contianer /opt/onap/ccsdk directory . You can download ssh key file from https://jira.onap.org/browse/CCSDK-464, and set permission to and rename the file to ssh_key_file, and make sure file permission is 0400. 
  • Replace /opt/onap/ccsdk/Playbooks/Ansible_Inventory, with the file of the same name under https://jira.onap.org/browse/CCSDK-464. Open the file and change ansible_ssh_private_key_file=ssh_key_file to ansible_ssh_private_key_file=/opt/onap/ccsdk/ssh_key_file

2.  Set up SDNC sdnc_controller_container. To change file /opt/onap/sdnc/data/properties/lcm-dg.properties, you need to edit it with kubectl configmap dev-sdnc-sdnc-properties and make the following changes:, or simple edit the resource file in sdnc charts and make all; make onap, then use helm to redeploy sdnc. 

Code Block
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. On Rancher node, create swm directory under /root. Add 3 empty files in swm directory and make them executable as the following: 

Code Block
root@sb00-rancher:~/swm# ls -l
total 0
-rwxr-xr-x 1 root root 0 Nov 29 17:16 upgrade-post-check.sh
-rwxr-xr-x 1 root root 0 Nov 29 17:16 upgrade-pre-check.sh
-rwxr-xr-x 1 root root 0 Nov 29 17:17 upgrade-software.sh

4.  Login SDNC UI and do e2e tests of 3 LCM NB APIs

...