Uploaded image for project: 'Integration'
  1. Integration
  2. INT-1016

Robot init script fails

XMLWordPrintable

      When running demo-k8s.sh onap init_robot, it fails with the message "ValueError: Invalid \escape: line 6 column 21 (char 142)". See the full message below: 

      root@staging-rancher:~# oom/kubernetes/robot/demo-k8s.sh onap init_robot
      Number of parameters:
      2
      KEY:
      init_robot
      WEB Site Password for user 'test': ++ kubectl --namespace onap get pods
      ++ sed 's/ .*//'
      ++ grep robot
      + POD=dev-robot-robot-d576f8448-ghhlk
      + ETEHOME=/var/opt/ONAP
      ++ kubectl --namespace onap exec dev-robot-robot-d576f8448-ghhlk -- bash -c 'ls -1q /share/logs/ | wc -l'
      + export GLOBAL_BUILD_NUMBER=1
      + GLOBAL_BUILD_NUMBER=1
      ++ printf %04d 1
      + OUTPUT_FOLDER=0001_demo_init_robot
      + DISPLAY_NUM=91
      + VARIABLEFILES='-V /share/config/vm_properties.py -V /share/config/integration_robot_properties.py -V /share/config/integration_preload_parameters.py'
      + kubectl --namespace onap exec dev-robot-robot-d576f8448-ghhlk -- /var/opt/ONAP/runTags.sh -V /share/config/vm_properties.py -V /share/config/integration_robot_properties.py -V /share/config/integration_preload_parameters.py -v WEB_PASSWORD:test -d /share/logs/0001_demo_init_robot -i UpdateWebPage --display 91
      Starting Xvfb on display :91 with res 1280x1024x24
      Executing robot tests at log level TRACE
      ==============================================================================
      Testsuites 
      ==============================================================================
      Testsuites.Update Onap Page :: Initializes ONAP Test Web Page and Password 
      ==============================================================================
      Update ONAP Page | FAIL |
      ValueError: Invalid \escape: line 6 column 21 (char 142)
      ------------------------------------------------------------------------------

       

      According to Brian, it's caused by wrong openstack password. Recently Robot VM changed to use the same password encryption algorithm to store openstack password. But the decryption algorithm in Robot has not changed. See function `Get Openstack Credentials` in robot/resources/openstack/keystone_interface.robot

       

            xuyang11 xuyang11
            xuyang11 xuyang11
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: