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
tcp 0 0 0.0.0.0:22 0.0.0.0:*
LISTEN 1120/sshd
tcp6 0 0 :::22 :::*
LISTEN 1120/sshd
udp 0 0 0.0.0.0:64903 0.0.0.0:*
631/dhclient
udp 0 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
Name Idx Link Hardware
local0 0 down 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#
发件人: [email protected] <[email protected]> 代表
[email protected]
发送时间: 2018年7月12日 7:39
收件人: 'PLATANIA, MARCO (MARCO)' <[email protected]>;
[email protected]; 'FREEMAN, BRIAN D' <[email protected]>;
[email protected]
抄送: '孙琼' <[email protected]>; '陈研' <[email protected]>
主题: 答复: [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) <[email protected]
<mailto:[email protected]> >
发送时间: 2018年7月11日 21:12
收件人: [email protected] <mailto:[email protected]> ;
FREEMAN, BRIAN D <[email protected] <mailto:[email protected]> >;
[email protected] <mailto:[email protected]> ;
[email protected] <mailto:[email protected]>
主题: 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: <[email protected] <mailto:[email protected]> > on
behalf of BRIAN FREEMAN <[email protected] <mailto:[email protected]> >
Reply-To: "[email protected] <mailto:[email protected]> "
<[email protected] <mailto:[email protected]> >, BRIAN
FREEMAN <[email protected] <mailto:[email protected]> >
Date: Wednesday, July 11, 2018 at 9:05 AM
To: "[email protected] <mailto:[email protected]> "
<[email protected] <mailto:[email protected]> >,
"[email protected] <mailto:[email protected]> "
<[email protected] <mailto:[email protected]> >,
"[email protected] <mailto:[email protected]> " <[email protected]
<mailto:[email protected]> >
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: [email protected] <mailto:[email protected]>
<[email protected] <mailto:[email protected]> > On Behalf
Of [email protected] <mailto:[email protected]>
Sent: Wednesday, July 11, 2018 9:03 AM
To: FREEMAN, BRIAN D <[email protected] <mailto:[email protected]> >;
[email protected] <mailto:[email protected]> ;
[email protected] <mailto:[email protected]>
Cc: [email protected] <mailto:[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?
发件人: 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 (#11064): https://lists.onap.org/g/onap-discuss/message/11064
Mute This Topic: https://lists.onap.org/mt/23251565/21656
Group Owner: [email protected]
Unsubscribe: https://lists.onap.org/g/onap-discuss/unsub
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-