-
Bug
-
Resolution: Done
-
Highest
-
Beijing Release
The preload step in ONAP demo setup is failing.
While working on deploying the vFirewall demo, received the below error and the TC fails.
It seems the that code (Get Model UUID from VID in /var/opt/OpenECOMP_ETE/robot/resources/vid/vid_insterface.robot) to read JSON response from VID is expecting a flat JSON file to be placed into a dictionary to read service UUID and InvarientID.
However, due to layered JSON in response, failure occurs.
For convenience, the JSON and dict data are logged in the output below, in which following is the JSON response:
{u'services': [\{u'category': u'Network L1-3', u'lastUpdaterFullName': None, u'uuid': u'50c04891-302d-4817-9957-29f2a5c40028', u'distributionStatus': u'DISTRIBUTED', u'lastUpdaterUserId': u'jm0007', u'artifacts': None, u'version': u'1.0', u'toscaModelURL': u'/sdc/v1/catalog/services/50c04891-302d-4817-9957-29f2a5c40028/toscaModel', u'lifecycleState': u'CERTIFIED', u'invariantUUID': u'd64d212b-67d6-4c56-b6cb-25241cf00351', u'resources': None, u'name': u'demo1VFW'}], u'readOnly': False}
And following is the ${dict}:
services
Thanks,
Arun Arora
root@onap-robot:/opt# bash -x demo.sh preload Demo1VNF DemoModule
+ '[' 3 -eq 0 ']'
+ '[' 3 -gt 0 ']'
+ key=preload
+ case $key in
+ TAG=PreloadDemo
+ shift
+ '[' 2 -ne 2 ']'
+ VARIABLES=' -v VNF_NAME:Demo1VNF'
+ shift
+ VARIABLES=' -v VNF_NAME:Demo1VNF -v MODULE_NAME:DemoModule'
+ shift
+ '[' 0 -gt 0 ']'
+ ETEHOME=/var/opt/OpenECOMP_ETE
+ VARIABLEFILES='-V /share/config/vm_properties.py -V /share/config/integration_robot_properties.py -V /share/config/integration_preload_parameters.py'
+ docker exec openecompete_container /var/opt/OpenECOMP_ETE/runTags.sh -V /share/config/vm_properties.py -V /share/config/integration_robot_properties.py -V /share/config/integration_preload_parameters.py -v VNF_NAME:Demo1VNF -v MODULE_NAME:DemoModule -d /share/logs/demo/PreloadDemo -i PreloadDemo --display 89
Starting Xvfb on display :89 with res 1280x1024x24
Executing robot tests at log level TRACE
==============================================================================
OpenECOMP ETE
==============================================================================
OpenECOMP ETE.Robot
==============================================================================
OpenECOMP ETE.Robot.Testsuites
==============================================================================
OpenECOMP ETE.Robot.Testsuites.Demo :: Executes the VNF Orchestration Test ...
==============================================================================
Preload VNF {u'services': [\{u'category': u'Network L1-3', u'lastUpdaterFullName': None, u'uuid': u'50c04891-302d-4817-9957-29f2a5c40028', u'distributionStatus': u'DISTRIBUTED', u'lastUpdaterUserId': u'jm0007', u'artifacts': None, u'version': u'1.0', u'toscaModelURL': u'/sdc/v1/catalog/services/50c04891-302d-4817-9957-29f2a5c40028/toscaModel', u'lifecycleState': u'CERTIFIED', u'invariantUUID': u'd64d212b-67d6-4c56-b6cb-25241cf00351', u'resources': None, u'name': u'demo1VFW'}], u'readOnly': False}
services
| FAIL |
AttributeError: 'unicode' object has no attribute 'keys'
------------------------------------------------------------------------------
OpenECOMP ETE.Robot.Testsuites.Demo :: Executes the VNF Orchestrat... | FAIL |
1 critical test, 0 passed, 1 failed
1 test total, 0 passed, 1 failed
==============================================================================
OpenECOMP ETE.Robot.Testsuites | FAIL |
1 critical test, 0 passed, 1 failed
1 test total, 0 passed, 1 failed
==============================================================================
OpenECOMP ETE.Robot | FAIL |
1 critical test, 0 passed, 1 failed
1 test total, 0 passed, 1 failed
==============================================================================
OpenECOMP ETE | FAIL |
1 critical test, 0 passed, 1 failed
1 test total, 0 passed, 1 failed
==============================================================================
Output: /share/logs/demo/PreloadDemo/output.xml
Log: /share/logs/demo/PreloadDemo/log.html
Report: /share/logs/demo/PreloadDemo/report.html
root@onap-robot:/opt#