Re: 答复: [onap-discuss] [integration] execute closedloop script,get "TypeError: string indices must be integers"
The two lines below are not a problem: ./v_firewall_init.sh: line 67: /var/lib/honeycomb/persist/context/data.json: No such file or directory ./v_firewall_init.sh: line 68: /var/lib/honeycomb/persist/config/data.json: No such file or directory During initialization, it’s just deleting old state that could be leftover. If no pre-existing state is present, then you get those two errors, but they won’t impact your application. Marco From: on behalf of zonghe huang Reply-To: "onap-discuss@lists.onap.org" , "huangzh@chinatelecom.cn" Date: Friday, July 27, 2018 at 3:00 AM To: 'Netaji Surve' , "onap-discuss@lists.onap.org" Cc: "'liyq.bri'" , '孙琼' , '陈研' , "huangzh@chinatelecom.cn" Subject: 答复: [onap-discuss] [integration] execute closedloop script,get "TypeError: string indices must be integers" ./v_firewall_init.sh: line 67: /var/lib/honeycomb/persist/context/data.json: No such file or directory ./v_firewall_init.sh: line 68: /var/lib/honeycomb/persist/config/data.json: No such file or directory -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#11481): https://lists.onap.org/g/onap-discuss/message/11481 Mute This Topic: https://lists.onap.org/mt/23829985/21656 Group Owner: onap-discuss+ow...@lists.onap.org Unsubscribe: https://lists.onap.org/g/onap-discuss/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
答复: [onap-discuss] [integration] execute closedloop script,get "TypeError: string indices must be integers"
I reinstall traffic generator VM,found the flowing error, Anyone know how to solve this problem? root@demofwl01pgndemo:/opt# ./v_packetgen_install.sh System start/stop links for /etc/init.d/vpacketgen.sh already exist. start: Job is already running: vpp Error setting flags on 'tap111' set interface ip address: expected IP4/IP6 address/length `/0' device br0 already exists; can't create bridge with the same name device tap111 is already a member of a bridge; can't enslave it to bridge br0. device eth1 is already a member of a bridge; can't enslave it to bridge br0. sed: can't read /opt/pg_streams/stream_fw_udp1: No such file or directory sed: can't read /opt/pg_streams/stream_fw_udp2: No such file or directory sed: can't read /opt/pg_streams/stream_fw_udp3: No such file or directory sed: can't read /opt/pg_streams/stream_fw_udp4: No such file or directory sed: can't read /opt/pg_streams/stream_fw_udp5: No such file or directory sed: can't read /opt/pg_streams/stream_fw_udp6: No such file or directory sed: can't read /opt/pg_streams/stream_fw_udp7: No such file or directory sed: can't read /opt/pg_streams/stream_fw_udp8: No such file or directory sed: can't read /opt/pg_streams/stream_fw_udp9: No such file or directory sed: can't read /opt/pg_streams/stream_fw_udp10: No such file or directory exec: failed to open `/opt/pg_streams/stream_fw_udp1': No such file or directory exec: failed to open `/opt/pg_streams/stream_fw_udp2': No such file or directory exec: failed to open `/opt/pg_streams/stream_fw_udp3': No such file or directory exec: failed to open `/opt/pg_streams/stream_fw_udp4': No such file or directory exec: failed to open `/opt/pg_streams/stream_fw_udp5': No such file or directory exec: failed to open `/opt/pg_streams/stream_fw_udp6': No such file or directory exec: failed to open `/opt/pg_streams/stream_fw_udp7': No such file or directory exec: failed to open `/opt/pg_streams/stream_fw_udp8': No such file or directory exec: failed to open `/opt/pg_streams/stream_fw_udp9': No such file or directory exec: failed to open `/opt/pg_streams/stream_fw_udp10': No such file or directory ./v_packetgen_init.sh: line 78: /var/lib/honeycomb/persist/context/data.json: No such file or directory ./v_packetgen_init.sh: line 79: /var/lib/honeycomb/persist/config/data.json: No such file or directory root@demofwl01pgndemo:/opt# ls config honeycomb run_traffic_fw_demo.sh run_traffic_fw_demo.sh.1 v_packetgen_init.sh v_packetgen_init.sh.1 v_packetgen_install.sh root@demofwl01pgndemo:/opt# ./run_traffic_fw_demo.sh curl: (7) Failed to connect to localhost port 8183: Connection refused root@demofwl01pgndemo:/opt# netstat -tunlp Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp00 0.0.0.0:22 0.0.0.0:* LISTEN 1120/sshd tcp6 0 0 :::22 :::* LISTEN 1120/sshd udp0 0 0.0.0.0:64903 0.0.0.0:* 631/dhclient udp0 0 0.0.0.0:68 0.0.0.0:* 631/dhclient udp6 0 0 :::23600:::* 631/dhclient root@demofwl01pgndemo:/opt# ./run_traffic_fw_demo.sh curl: (7) Failed to connect to localhost port 8183: Connection refused ^C root@demofwl01pgndemo:/opt# root@demofwl01pgndemo:/opt# vppctl vpp# show hard NameIdx Link Hardware local0 0down local0 local tap-0 1 up tap-0 Ethernet address fa:16:3e:51:b9:8e vpp# vpp# show pac no streams currently defined vpp# 发件人: onap-discuss@lists.onap.org 代表 zhehuang_...@163.com 发送时间: 2018年7月12日 7:39 收件人: 'PLATANIA, MARCO (MARCO)' ; onap-discuss@lists.onap.org; 'FREEMAN, BRIAN D' ; zhehuang_...@163.com 抄送: '孙琼' ; '陈研' 主题: 答复: [onap-discuss] [integration] execute closedloop script,get "TypeError: string indices must be integers" I tried soft restart and hard restart demofwl01pgndemo vm, but it still doesn't work, the result is still as follows root@demofwl01pgndemo:/# vppctl show pac no streams currently defined root@demofwl01pgndemo:/# 发件人: PLATANIA, MARCO (MARCO) mailto:plata...@research.att.com> > 发送时间: 2018年7月11日 21:12 收件人: onap-discuss@lists.onap.org <mailto:onap-discuss@lists.onap.org> ; FREEMAN, BRIAN D mailto:bf1...@att.com> >; huangzh@chinatelecom.cn <mailto:huangzh@chinatelec
答复: [onap-discuss] [integration] execute closedloop script,get "TypeError: string indices must be integers"
I tried soft restart and hard restart demofwl01pgndemo vm, but it still doesn't work, the result is still as follows root@demofwl01pgndemo:/# vppctl show pac no streams currently defined root@demofwl01pgndemo:/# 发件人: PLATANIA, MARCO (MARCO) 发送时间: 2018年7月11日 21:12 收件人: onap-discuss@lists.onap.org; FREEMAN, BRIAN D ; huangzh@chinatelecom.cn; zhehuang_...@163.com 主题: Re: [onap-discuss] [integration] execute closedloop script,get "TypeError: string indices must be integers" Try to run “vppctl show pac” in the traffic generator and see if traffic streams are active. You should see at least one stream active. If not, or if you are experiencing issues with VPP, something could be wrong with cloud init, so you may need to restart the vPacketGen, as Brian suggested. Marco From: mailto:onap-discuss@lists.onap.org> > on behalf of BRIAN FREEMAN mailto:bf1...@att.com> > Reply-To: "onap-discuss@lists.onap.org <mailto:onap-discuss@lists.onap.org> " mailto:onap-discuss@lists.onap.org> >, BRIAN FREEMAN mailto:bf1...@att.com> > Date: Wednesday, July 11, 2018 at 9:05 AM To: "onap-discuss@lists.onap.org <mailto:onap-discuss@lists.onap.org> " mailto:onap-discuss@lists.onap.org> >, "huangzh@chinatelecom.cn <mailto:huangzh@chinatelecom.cn> " mailto:huangzh@chinatelecom.cn> >, "zhehuang_...@163.com <mailto:zhehuang_...@163.com> " mailto:zhehuang_...@163.com> > Subject: Re: [onap-discuss] [integration] execute closedloop script,get "TypeError: string indices must be integers" ***Security Advisory: This Message Originated Outside of AT&T *** Reference http://cso.att.com/EmailSecurity/IDSP.html for more information. I think Marco has seen that and sometimes you need to simply restart the traffic generator VM. Brian From: onap-discuss@lists.onap.org <mailto:onap-discuss@lists.onap.org> mailto:onap-discuss@lists.onap.org> > On Behalf Of zhehuang_...@163.com <mailto:zhehuang_...@163.com> Sent: Wednesday, July 11, 2018 9:03 AM To: FREEMAN, BRIAN D mailto:bf1...@att.com> >; onap-discuss@lists.onap.org <mailto:onap-discuss@lists.onap.org> ; zhehuang_...@163.com <mailto:zhehuang_...@163.com> Cc: huangzh@chinatelecom.cn <mailto:huangzh@chinatelecom.cn> 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? 发件人: FREEMAN, BRIAN D mailto:bf1...@att.com> > 发送时间: 2018年7月11日 20:50 收件人: onap-discuss@lists.onap.org <mailto:onap-discuss@lists.onap.org> ; zhehuang_...@163.com <mailto:zhehuang_...@163.com> 抄送: huangzh.bri mailto:huangzh@chinatelecom.cn> > 主题: 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.
答复: [onap-discuss] [integration] execute closedloop script,get "TypeError: string indices must be integers"
Soft restart and hard restart the traffic generator VM multiple times, But it does not work. 发件人: FREEMAN, BRIAN D 发送时间: 2018年7月11日 21:06 收件人: onap-discuss@lists.onap.org; huangzh@chinatelecom.cn; zhehuang_...@163.com 主题: RE: [onap-discuss] [integration] execute closedloop script,get "TypeError: string indices must be integers" I think Marco has seen that and sometimes you need to simply restart the traffic generator VM. Brian From: onap-discuss@lists.onap.org <mailto:onap-discuss@lists.onap.org> mailto:onap-discuss@lists.onap.org> > On Behalf Of zhehuang_...@163.com <mailto:zhehuang_...@163.com> Sent: Wednesday, July 11, 2018 9:03 AM To: FREEMAN, BRIAN D mailto:bf1...@att.com> >; onap-discuss@lists.onap.org <mailto:onap-discuss@lists.onap.org> ; zhehuang_...@163.com <mailto:zhehuang_...@163.com> Cc: huangzh@chinatelecom.cn <mailto:huangzh....@chinatelecom.cn> 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? 发件人: FREEMAN, BRIAN D mailto:bf1...@att.com> > 发送时间: 2018年7月11日 20:50 收件人: onap-discuss@lists.onap.org <mailto:onap-discuss@lists.onap.org> ; zhehuang_...@163.com <mailto:zhehuang_...@163.com> 抄送: huangzh.bri mailto:huangzh@chinatelecom.cn> > 主题: 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: onap-discuss@lists.onap.org <mailto:onap-discuss@lists.onap.org> mai
Re: [onap-discuss] [integration] execute closedloop script,get "TypeError: string indices must be integers"
Try to run “vppctl show pac” in the traffic generator and see if traffic streams are active. You should see at least one stream active. If not, or if you are experiencing issues with VPP, something could be wrong with cloud init, so you may need to restart the vPacketGen, as Brian suggested. Marco From: on behalf of BRIAN FREEMAN Reply-To: "onap-discuss@lists.onap.org" , BRIAN FREEMAN Date: Wednesday, July 11, 2018 at 9:05 AM To: "onap-discuss@lists.onap.org" , "huangzh@chinatelecom.cn" , "zhehuang_...@163.com" Subject: Re: [onap-discuss] [integration] execute closedloop script,get "TypeError: string indices must be integers" ***Security Advisory: This Message Originated Outside of AT&T *** Reference http://cso.att.com/EmailSecurity/IDSP.html for more information. I think Marco has seen that and sometimes you need to simply restart the traffic generator VM. Brian From: onap-discuss@lists.onap.org On Behalf Of zhehuang_...@163.com Sent: Wednesday, July 11, 2018 9:03 AM To: FREEMAN, BRIAN D ; onap-discuss@lists.onap.org; zhehuang_...@163.com Cc: huangzh@chinatelecom.cn 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:image001.png@01D418F7.3384B1B0] 发件人: FREEMAN, BRIAN D mailto:bf1...@att.com>> 发送时间: 2018年7月11日 20:50 收件人: onap-discuss@lists.onap.org<mailto:onap-discuss@lists.onap.org>; zhehuang_...@163.com<mailto:zhehuang_...@163.com> 抄送: huangzh.bri mailto:huangzh....@chinatelecom.cn>> 主题: 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: onap-discuss@lists.onap.org<mailto:onap
Re: [onap-discuss] [integration] execute closedloop script,get "TypeError: string indices must be integers"
I think Marco has seen that and sometimes you need to simply restart the traffic generator VM. Brian From: onap-discuss@lists.onap.org On Behalf Of zhehuang_...@163.com Sent: Wednesday, July 11, 2018 9:03 AM To: FREEMAN, BRIAN D ; onap-discuss@lists.onap.org; zhehuang_...@163.com Cc: huangzh@chinatelecom.cn 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:image001.png@01D418F6.574FB550] 发件人: FREEMAN, BRIAN D mailto:bf1...@att.com>> 发送时间: 2018年7月11日 20:50 收件人: onap-discuss@lists.onap.org<mailto:onap-discuss@lists.onap.org>; zhehuang_...@163.com<mailto:zhehuang_...@163.com> 抄送: huangzh.bri mailto:huangzh@chinatelecom.cn>> 主题: 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: onap-discuss@lists.onap.org<mailto:onap-discuss@lists.onap.org> mailto:onap-discuss@lists.onap.org>> On Behalf Of zhehuang_...@163.com<mailto:zhehuang_...@163.com> Sent: Tuesday, July 10, 2018 10:03 PM To: onap-discuss mailto:onap-discuss@lists.onap.org>> Cc: huangzh.bri mailto:huangzh....@chinatelecom.cn>> 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 prelo
答复: [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? 发件人: FREEMAN, BRIAN D 发送时间: 2018年7月11日 20:50 收件人: onap-discuss@lists.onap.org; zhehuang_...@163.com 抄送: huangzh.bri 主题: 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/) 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: onap-discuss@lists.onap.org <mailto:onap-discuss@lists.onap.org> mailto:onap-discuss@lists.onap.org> > On Behalf Of zhehuang_...@163.com <mailto:zhehuang_...@163.com> Sent: Tuesday, July 10, 2018 10:03 PM To: onap-discuss mailto:onap-discuss@lists.onap.org> > Cc: huangzh.bri mailto:huangzh@chinatelecom.cn> > 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.T
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/) 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: onap-discuss@lists.onap.org On Behalf Of zhehuang_...@163.com Sent: Tuesday, July 10, 2018 10:03 PM To: onap-discuss Cc: huangzh.bri 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
[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# zhehuang_...@163.com -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#11008): https://lists.onap.org/g/onap-discuss/message/11008 Mute This Topic: https://lists.onap.org/mt/23242162/21656 Group Owner: onap-discuss+ow...@lists.onap.org Unsubscribe: https://lists.onap.org/g/onap-discuss/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-