I think Marco has seen that and sometimes you need to simply restart the traffic generator VM.
Brian From: [email protected] <[email protected]> On Behalf Of [email protected] Sent: Wednesday, July 11, 2018 9:03 AM To: FREEMAN, BRIAN D <[email protected]>; [email protected]; [email protected] Cc: [email protected] Subject: 答复: [onap-discuss] [integration] execute closedloop script,get "TypeError: string indices must be integers" ok, thank you very much,I just solved it in the afternoon, but there is a new problem, check snk vm, but the traffic does not produce, do you know what might be the reason? [cid:[email protected]] 发件人: FREEMAN, BRIAN D <[email protected]<mailto:[email protected]>> 发送时间: 2018年7月11日 20:50 收件人: [email protected]<mailto:[email protected]>; [email protected]<mailto:[email protected]> 抄送: huangzh.bri <[email protected]<mailto:[email protected]>> 主题: RE: [onap-discuss] [integration] execute closedloop script,get "TypeError: string indices must be integers" Hard to debug remotely but it might be that you haven’t configured robot correctly. If the vFWSNK-1 does not exist you should get the below error message. Instead you are getting a python error which could mean the VNF exists in AAI but the vfModule or one of the relationships does not. I would go to the robot gui and look up your test to see the data you are getting back and where in /var/opt/OpenECOMP_ETE/robot/resources/demo_preload.robot you are getting the error from. In heat if you run demo.sh init_robot and set a password for user ‘test’ you can then go to the robot VM on port 88 and view logs (e.g. http://10.12.5.220:88/logs/<https://urldefense.proofpoint.com/v2/url?u=http-3A__10.12.5.220-3A88_logs_&d=DwMFbw&c=LFYZ-o9_HUMeMTSQicvjIg&r=e3d1ehx3DI5AoMgDmi2Fzw&m=GKLh6_YQQ3QS6AvmXGRB-VAC2j4qVuplTz65wlTAhVo&s=l7mir8__wdMyR4GBA6q6nFTLr4MpRk4Ewr3YuHOB_Z0&e=>) Scroll down to the test run (PreloadDemo in this case) and then look at log.html You can also find the logs on the VM file system but its easier to use the web interface. Brian root@onap-robot:/opt# ./demo.sh preload vFWSNK-1 vFWSNK-Module-1 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 | FAIL | VNF Name: vFWSNK-1 is not found. ------------------------------------------------------------------------------ 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 From: [email protected]<mailto:[email protected]> <[email protected]<mailto:[email protected]>> On Behalf Of [email protected]<mailto:[email protected]> Sent: Tuesday, July 10, 2018 10:03 PM To: onap-discuss <[email protected]<mailto:[email protected]>> Cc: huangzh.bri <[email protected]<mailto:[email protected]>> Subject: [onap-discuss] [integration] execute closedloop script,get "TypeError: string indices must be integers" Execute the closedloop script of the vfw scene. When loading data, execute: root@onap-robot:/opt# ./demo.sh preload vFWSNK-1 vFWSNK-Module-1, error: TypeError: string indices must be integers, who know What is the reason? I searched all vfw related scripts but didn't find this error. Thank you root@onap-robot:/opt# ./demo.sh preload vFWSNK-1 vFWSNK-Module-1 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 | FAIL | TypeError: string indices must be integers ------------------------------------------------------------------------------ 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# ________________________________ [email protected]<mailto:[email protected]> -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#11022): https://lists.onap.org/g/onap-discuss/message/11022 Mute This Topic: https://lists.onap.org/mt/23245091/21656 Group Owner: [email protected] Unsubscribe: https://lists.onap.org/g/onap-discuss/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
