Re: [integration] execute closedloop script,get "TypeError: string indices must be integers"

Netaji Surve
 

Hi Zonghe,

 

vpp_measurement_reporter process runs on FW vm. I think you are checking it on SINK machine which is not correct.

Please check your FW vm.

 

Thanks,

Netaji Surve

 

From: onap-discuss@... [mailto:onap-discuss@...] On Behalf Of zonghe huang
Sent: Friday, July 27, 2018 10:01 AM
To: Netaji Surve <Netaji.Surve@...>; onap-discuss@...
Cc: 'liyq.bri' <liyq.bri@...>; '
孙琼' <sunqiong.bri@...>; '陈研' <chenyan.bri@...>; huangzh.bri@...
Subject:
答复: [onap-discuss] [integration] execute closedloop scriptget "TypeError: string indices must be integers"

 

Hi Netaji Surve,

great thanks for your kindly help!!!

 

1I checked vfwsnk and found no ./vpp_measurement_reporter process. So I reinstalled vfwsnk and it didn't work either. Later I found out that the vpp_measurement_reporter process was executed in the go-client.sh script.

Go-client.sh is called in ./v_firewall_init.sh, ie /v_firewall_init.sh-->go-client.sh->./vpp_measurement_reporter $DCAE_COLLECTOR_IP $DCAE_COLLECTOR_PORT eth1, so I execute it separately

./v_firewall_init.sh, found the following error:

 

root@vfwsnk-1:/opt# ./v_firewall_init.sh

start: Job is already running: vpp

Error setting flags on 'tap111'

Error setting flags on 'tap222'

set interface ip address: expected IP4/IP6 address/length `/0'

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.

device br1 already exists; can't create bridge with the same name

device tap222 is already a member of a bridge; can't enslave it to bridge br1.

device eth2 is already a member of a bridge; can't enslave it to bridge br1.

./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

./v_firewall_init.sh: line 73: cd: /opt/VES/evel/evel-library/code/VESreporting/: No such file or directory

 

 

2. Later, I copied all the files in the robot/opt/demo/vnfs/VESreporting_vFW5.0/ directory of the robot to the /opt/VES/evel/evel-library/code/ directory of vfwsnk

 

 

root@onap-robot:/opt/demo/vnfs/VESreporting_vFW5.0# ls

dep.xml  go-client.sh  LICENSE.TXT  Makefile  pom.xml  README.md  vpp_measurement_reporter.c

 

 

root@vfwsnk-1:/opt/VES/evel/evel-library/VESreporting# ll

total 48

drwxr-xr-x 2 root   root    4096 Jul 27 03:57 ./

drwxr-xr-x 3 root   root    4096 Jul 27 02:50 ../

-rw-r--r-- 1 ubuntu ubuntu   670 Jul 27 03:55 dep.xml

-rwxr-xr-x 1 ubuntu ubuntu   272 Jul 27 03:55 go-client.sh*

-rw-r--r-- 1 ubuntu ubuntu  1059 Jul 27 03:55 LICENSE.TXT

-rw-r--r-- 1 ubuntu ubuntu  1669 Jul 27 03:55 Makefile

-rw-r--r-- 1 ubuntu ubuntu  2710 Jul 27 03:55 pom.xml

-rw-r--r-- 1 ubuntu ubuntu  1096 Jul 27 03:55 README.md

-rw-r--r-- 1 ubuntu ubuntu 13035 Jul 27 03:55 vpp_measurement_reporter.c

 

3Execute v_firewall_init.sh again, one less error is reported:

 

root@vfwsnk-1:/opt# ./v_firewall_init.sh

start: Job is already running: vpp

Error setting flags on 'tap111'

Error setting flags on 'tap222'

set interface ip address: expected IP4/IP6 address/length `/0'

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.

device br1 already exists; can't create bridge with the same name

device tap222 is already a member of a bridge; can't enslave it to bridge br1.

device eth2 is already a member of a bridge; can't enslave it to bridge br1.

./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

root@vfwsnk-1:/opt# ls

 

4. I checked and found that the file under the honeycomb directory is empty:

root@vfwsnk-1:/opt/honeycomb# ls

root@vfwsnk-1:/opt/honeycomb#

 

How can I solve the above problem? thank you very much! !

 

 

发件人: Netaji Surve <Netaji.Surve@...>
发送时间: 2018725 16:24
收件人: huangzonghe <huangzh.bri@...>; onap-discuss@...
抄送: 'liyq.bri' <liyq.bri@...>; '孙琼' <sunqiong.bri@...>; '陈研' <chenyan.bri@...>
主题: RE: [onap-discuss] [integration] execute closedloop scriptget "TypeError: string indices must be integers"

 

Hi Zonghe,

 

The VES report are not coming to DCAE. Please check processes on your vFW vm. It should have ./vpp_measurement_reporter process with correct IP and port.

The IP should be any of your node IP.

 

If it is not correct edit it in corresponding file at /opt/config on vFW vm. And restart your vFW vm.

Then you should see traffic on VES MEASUREMENT OUTPUT topic.

 

Your APPC mount looks good.

 

You need to push policy as below:

Update policy

 first go through below link and validate the health of your policy pods.

https://wiki.onap.org/display/DW/Policy+on+OOM

Then do these steps

1.      Go to pap container

2.      Go to  /tmp/policy-install/config/

3.      execute command "export PRELOAD_POLICIES=true"

4.      copy push-policies.sh to /tmp

5.      Go to /tmp and open push-policies.sh 

6.      Go to vid and search the service instance and then take the "model id" of vPG vnf.

7.      find resourceID  in the push-policies.sh and change its value to "model id" of vPG (shown as below)

 

curl -v --silent -X PUT --header 'Content-Type: application/json' --header 'Accept: text/html' --header 'ClientAuth: cHl0aG9uOnRlc3Q=' --header 'Authorization: Basic dGVzdHBkcDphbHBoYTEyMw==' --header 'Environment: TEST' -d '{
"policyConfigType": "BRMS_PARAM",
"policyName": "com.BRMSParamvFirewall",
"policyDescription": "BRMS Param vFirewall policy",
"policyScope": "com",
"attributes": {
"MATCHING": {
"controller" : "amsterdam"
},
"RULE": {
"templateName": "ClosedLoopControlName",
"closedLoopControlName": "ControlLoop-vFirewall-d0a1dfc6-94f5-4fd4-a5b5-4630b438850a",
"controlLoopYaml": "controlLoop%3A%0D%0A++version%3A+2.0.0%0D%0A++controlLoopName%3A+ControlLoop-vFirewall-d0a1dfc6-94f5-4fd4-a5b5-4630b438850a%0D%0A++trigger_policy%3A+unique-policy-id-1-modifyConfig%0D%0A++timeout%3A+1200%0D%0A++abatement%3A+false%0D%0A+%0D%0Apolicies%3A%0D%0A++-+id%3A+unique-policy-id-1-modifyConfig%0D%0A++++name%3A+modify+packet+gen+config%0D%0A++++description%3A%0D%0A++++actor%3A+APPC%0D%0A++++recipe%3A+ModifyConfig%0D%0A++++target%3A%0D%0A++++++%23+TBD+-+Cannot+be+known+until+instantiation+is+done%0D%0A++++++
resourceID%3A+%973ef-7b55-41ce-a633-62af3462a8220D%0A++++++type%3A+VNF%0D%0A++++retry%3A+0%0D%0A++++timeout%3A+300%0D%0A++++success%3A+final_success%0D%0A++++failure%3A+final_failure%0D%0A++++failure_timeout%3A+final_failure_timeout%0D%0A++++failure_retries%3A+final_failure_retries%0D%0A++++failure_exception%3A+final_failure_exception%0D%0A++++failure_guard%3A+final_failure_guard"
}
}
}' 'http://pdp:8081/pdp/api/createPolicy

 

Thanks,

Netaji Surve

 

 

From: huangzonghe [mailto:huangzh.bri@...]
Sent: Tuesday, July 24, 2018 5:48 AM
To: Netaji Surve <Netaji.Surve@...>; onap-discuss@...
Cc: 'liyq.bri' <liyq.bri@...>; '
孙琼' <sunqiong.bri@...>; '陈研' <chenyan.bri@...>
Subject:
答复: [onap-discuss] [integration] execute closedloop scriptget "TypeError: string indices must be integers"

 

 

 

 

 

 

 

发件人: Netaji Surve <Netaji.Surve@...>
发送时间: 2018715 20:17
收件人: onap-discuss@...; huangzh.bri@...
主题: RE: [onap-discuss] [integration] execute closedloop scriptget "TypeError: string indices must be integers"

 

Hi Zonghe,

 

Please use the attached postman collection to see the topics data.

 

For APPC follow this:

 

1> Get the VNF instance ID, either through VID or through AAI. 

2> Get the public IP address of the Packet Generator from your deployment.

3> create file appc-mount.xml  with following content and replace VPG_IP with packet generator IP and VNF_INSTANCE_ID with VNF instance ID.

<node xmlns="urn:TBD:params:xml:ns:yang:network-topology">
<node-id>
VNF_INSTANCE_ID</node-id>
<host xmlns="urn:opendaylight:netconf-node-topology">
VPG_IP</host>
<port xmlns="urn:opendaylight:netconf-node-topology">2831</port>
<username xmlns="urn:opendaylight:netconf-node-topology">admin</username>
<password xmlns="urn:opendaylight:netconf-node-topology">admin</password>
<tcp-only xmlns="urn:opendaylight:netconf-node-topology">false</tcp-only>
<!-- non-mandatory fields with default values, you can safely remove these if you do not wish to override any of these values-->
<reconnect-on-changed-schema xmlns="urn:opendaylight:netconf-node-topology">false</reconnect-on-changed-schema>
<connection-timeout-millis xmlns="urn:opendaylight:netconf-node-topology">20000</connection-timeout-millis>
<max-connection-attempts xmlns="urn:opendaylight:netconf-node-topology">0</max-connection-attempts>
<between-attempts-timeout-millis xmlns="urn:opendaylight:netconf-node-topology">2000</between-attempts-timeout-millis>
<sleep-factor xmlns="urn:opendaylight:netconf-node-topology">1.5</sleep-factor>
<!-- keepalive-delay set to 0 turns off keepalives-->
<keepalive-delay xmlns="urn:opendaylight:netconf-node-topology">120</keepalive-delay>
</node>

 

Note: related link  https://wiki.onap.org/display/DW/Creating+a+Netconf+Mount

 

4> create Network config in appc using below API

curl -v  --user "admin":"admin" -d @appc-mount.xml -H "Accept: application/xml" -H "Content-type: application/xml" -X PUT http://10.247.18.6:30230/restconf/config/network-topology:network-topology/topology/topology-netconf/node/<VNF_INSTANCE_ID>

 

 

5>Get created config using GET

curl -v  --user "admin":"admin" -d @appc-mount.xml -H "Accept: application/xml" -H "Content-type: application/xml" -X GET http://10.247.18.6:30230/restconf/config/network-topology:network-topology/topology/topology-netconf/node/<VNF_INSTANCE_ID>

 

Thanks,

Netaji Surve

 

 

From: onap-discuss@... [mailto:onap-discuss@...] On Behalf Of zonghe huang
Sent: Friday, July 13, 2018 5:27 PM
To: onap-discuss@...
Subject: Re: [onap-discuss] [integration] execute closedloop script
get "TypeError: string indices must be integers"

 

Hi Netaji Surve,

 

1.      I checked the Dmaap response and found that it is different from what you mentioned:

                                                                   

VES_MEASUREMENT_OUTPUT,

unauthenticated.DCAE_CL_OUTPUT,

POLICY-CL-MGT

unauthenticated.VES_MEASUREMENT_OUTPUT,

DCAE-CL-EVENT,

POLICY-CL-MGT

 

 

root@onap-message-router:/home/ubuntu# curl --request GET localhost:3904/topics

{"topics": [

    "ECOMP-PORTAL-OUTBOX-APP1",

    "ECOMP-PORTAL-OUTBOX-POL1",

    "SDC-DISTR-STATUS-TOPIC-AUTO",

    "msgrtr.apinode.metrics.dmaap",

    "APPC-CL",

    "PDPD-CONFIGURATION",

    "POLICY-CL-MGT",

    "SDC-DISTR-NOTIF-TOPIC-SDC-OPENSOURCE-ENV1",

    "SDC-DISTR-NOTIF-TOPIC-AUTO",

    "unauthenticated.SEC_MEASUREMENT_OUTPUT",

    "SDC-DISTR-STATUS-TOPIC-SDC-OPENSOURCE-ENV1",

    "AAI-EVENT",

    "unauthenticated.VES_MEASUREMENT_OUTPUT",

    "ECOMP-PORTAL-OUTBOX-VID1",

    "ECOMP-PORTAL-INBOX",

    "ECOMP-PORTAL-OUTBOX-SDC1",

    "VCPE-DHCP-EVENT",

    "unauthenticated.TCA_EVENT_OUTPUT",

    "DCAE-CL-EVENT",

    "APPC-TEST2",

    "APPC-TEST1",

    "ECOMP-PORTAL-OUTBOX-DBC1"

]}root@onap-message-router:/home/ubuntu#

 

 

root@onap-dcae:/opt# curl http://172.30.22.67:3904/topics/POLICY-CL-MGT

{

    "owner": "",

    "readerAcl": {

        "enabled": true,

        "users": []

    },

    "name": "POLICY-CL-MGT",

    "description": "",

    "writerAcl": {

        "enabled": true,

        "users": []

    }

}root@onap-dcae:/opt#

root@onap-dcae:/opt# curl http://172.30.22.67:3904/topics/unauthenticated.VES_MEASUREMENT_OUTPUT

{

    "owner": "",

    "readerAcl": {

        "enabled": true,

        "users": []

    },

    "name": "unauthenticated.VES_MEASUREMENT_OUTPUT",

    "description": "",

    "writerAcl": {

        "enabled": true,

        "users": []

    }

}root@onap-dcae:/opt# curl http://172.30.22.67:3904/topics/DCAE-CL-EVENT

{

    "owner": "",

    "readerAcl": {

        "enabled": true,

        "users": []

    },

    "name": "DCAE-CL-EVENT",

    "description": "",

    "writerAcl": {

        "enabled": true,

        "users": []

    }

}root@onap-dcae:/opt#

 

2.      I have performed the following steps to provide the vfw module load point for appc

 

root@onap-robot:/opt# ./demo.sh appc vPKG-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 ....

==============================================================================

Create APPC Mount Point                                               | PASS |

------------------------------------------------------------------------------

OpenECOMP ETE.Robot.Testsuites.Demo :: Executes the VNF Orchestrat... | PASS |

1 critical test, 1 passed, 0 failed

1 test total, 1 passed, 0 failed

==============================================================================

OpenECOMP ETE.Robot.Testsuites                                        | PASS |

1 critical test, 1 passed, 0 failed

1 test total, 1 passed, 0 failed

==============================================================================

OpenECOMP ETE.Robot                                                   | PASS |

1 critical test, 1 passed, 0 failed

1 test total, 1 passed, 0 failed

==============================================================================

OpenECOMP ETE                                                         | PASS |

1 critical test, 1 passed, 0 failed

1 test total, 1 passed, 0 failed

==============================================================================

 

3.     I tried to follow the link below (https://wiki.onap.org/display/DW/Creating+a+Netconf+Mount), but I am getting an errorDo you know what might be the reason?

 

vtrafficgen.xml:

<node xmlns="urn:TBD:params:xml:ns:yang:network-topology">

   <node-id>b34155eb-e34c-4a42-8e12-f37ba13ff57c</node-id>

   <host xmlns="urn:opendaylight:netconf-node-topology">172.30.22.95</host>

   <port xmlns="urn:opendaylight:netconf-node-topology">2831</port>

   <username xmlns="urn:opendaylight:netconf-node-topology">admin</username>

   <password xmlns="urn:opendaylight:netconf-node-topology">admin</password>

   <tcp-only xmlns="urn:opendaylight:netconf-node-topology">false</tcp-only>

   <!-- non-mandatory fields with default values, you can safely remove these if you do not wish to override any of these values-->

   <reconnect-on-changed-schema xmlns="urn:opendaylight:netconf-node-topology">false</reconnect-on-changed-schema>

   <connection-timeout-millis xmlns="urn:opendaylight:netconf-node-topology">20000</connection-timeout-millis>

   <max-connection-attempts xmlns="urn:opendaylight:netconf-node-topology">0</max-connection-attempts>

   <between-attempts-timeout-millis xmlns="urn:opendaylight:netconf-node-topology">2000</between-attempts-timeout-millis>

   <sleep-factor xmlns="urn:opendaylight:netconf-node-topology">1.5</sleep-factor>

   <!-- keepalive-delay set to 0 turns off keepalives-->

   <keepalive-delay xmlns="urn:opendaylight:netconf-node-topology">120</keepalive-delay>

</node>

 

curl -v --noproxy '*' --user "admin":"admin" -d @vtrafficgen.xml -H "Accept: application/xml" -H "Content-type: application/xml" -X PUT --trace trace.out http://172.30.22.54:8282/restconf/config/network-topology:network-topology/topology/topology-netconf/node/b34155eb-e34c-4a42-8e12-f37ba13ff57c

 

root@onap-appc:/home/ubuntu# cat trace.out

== Info: Hostname was NOT found in DNS cache

== Info:   Trying 172.30.22.54...

== Info: Connected to 172.30.22.54 (172.30.22.54) port 8282 (#0)

== Info: Server auth using Basic with user 'admin'

=> Send header, 299 bytes (0x12b)

0000: 50 55 54 20 2f 72 65 73 74 63 6f 6e 66 2f 63 6f PUT /restconf/co

0010: 6e 66 69 67 2f 6e 65 74 77 6f 72 6b 2d 74 6f 70 nfig/network-top

0020: 6f 6c 6f 67 79 3a 6e 65 74 77 6f 72 6b 2d 74 6f ology:network-to

0030: 70 6f 6c 6f 67 79 2f 74 6f 70 6f 6c 6f 67 79 2f pology/topology/

0040: 74 6f 70 6f 6c 6f 67 79 2d 6e 65 74 63 6f 6e 66 topology-netconf

0050: 2f 6e 6f 64 65 2f 62 33 34 31 35 35 65 62 2d 65 /node/b34155eb-e

0060: 33 34 63 2d 34 61 34 32 2d 38 65 31 32 2d 66 33 34c-4a42-8e12-f3

0070: 37 62 61 31 33 66 66 35 37 63 20 48 54 54 50 2f 7ba13ff57c HTTP/

0080: 31 2e 31 0d 0a 41 75 74 68 6f 72 69 7a 61 74 69 1.1..Authorizati

0090: 6f 6e 3a 20 42 61 73 69 63 20 59 57 52 74 61 57 on: Basic YWRtaW

00a0: 34 36 59 57 52 74 61 57 34 3d 0d 0a 55 73 65 72 46YWRtaW4=..User

00b0: 2d 41 67 65 6e 74 3a 20 63 75 72 6c 2f 37 2e 33 -Agent: curl/7.3

00c0: 35 2e 30 0d 0a 48 6f 73 74 3a 20 31 37 32 2e 33 5.0..Host: 172.3

00d0: 30 2e 32 32 2e 35 34 3a 38 32 38 32 0d 0a 41 63 0.22.54:8282..Ac

00e0: 63 65 70 74 3a 20 61 70 70 6c 69 63 61 74 69 6f cept: applicatio

00f0: 6e 2f 78 6d 6c 0d 0a 43 6f 6e 74 65 6e 74 2d 74 n/xml..Content-t

0100: 79 70 65 3a 20 61 70 70 6c 69 63 61 74 69 6f 6e ype: application

0110: 2f 78 6d 6c 0d 0a 43 6f 6e 74 65 6e 74 2d 4c 65 /xml..Content-Le

0120: 6e 67 74 68 3a 20 30 0d 0a 0d 0a                ngth: 0....

<= Recv header, 26 bytes (0x1a)

0000: 48 54 54 50 2f 31 2e 31 20 34 30 30 20 42 61 64 HTTP/1.1 400 Bad

0010: 20 52 65 71 75 65 73 74 0d 0a                    Request..

<= Recv header, 65 bytes (0x41)

0000: 53 65 74 2d 43 6f 6f 6b 69 65 3a 20 4a 53 45 53 Set-Cookie: JSES

0010: 53 49 4f 4e 49 44 3d 31 35 6e 67 69 33 63 79 39 SIONID=15ngi3cy9

0020: 65 75 76 34 74 34 76 68 79 6b 77 71 38 33 75 30 euv4t4vhykwq83u0

0030: 3b 50 61 74 68 3d 2f 72 65 73 74 63 6f 6e 66 0d ;Path=/restconf.

0040: 0a                                              .

<= Recv header, 40 bytes (0x28)

0000: 45 78 70 69 72 65 73 3a 20 54 68 75 2c 20 30 31 Expires: Thu, 01

0010: 20 4a 61 6e 20 31 39 37 30 20 30 30 3a 30 30 3a  Jan 1970 00:00:

0020: 30 30 20 47 4d 54 0d 0a                         00 GMT..

<= Recv header, 99 bytes (0x63)

0000: 53 65 74 2d 43 6f 6f 6b 69 65 3a 20 72 65 6d 65 Set-Cookie: reme

0010: 6d 62 65 72 4d 65 3d 64 65 6c 65 74 65 4d 65 3b mberMe=deleteMe;

0020: 20 50 61 74 68 3d 2f 72 65 73 74 63 6f 6e 66 3b  Path=/restconf;

0030: 20 4d 61 78 2d 41 67 65 3d 30 3b 20 45 78 70 69  Max-Age=0; Expi

0040: 72 65 73 3d 54 68 75 2c 20 31 32 2d 4a 75 6c 2d res=Thu, 12-Jul-

0050: 32 30 31 38 20 31 34 3a 31 30 3a 35 32 20 47 4d 2018 14:10:52 GM

0060: 54 0d 0a                                        T..

<= Recv header, 31 bytes (0x1f)

0000: 43 6f 6e 74 65 6e 74 2d 54 79 70 65 3a 20 61 70 Content-Type: ap

0010: 70 6c 69 63 61 74 69 6f 6e 2f 78 6d 6c 0d 0a    plication/xml..

<= Recv header, 28 bytes (0x1c)

0000: 54 72 61 6e 73 66 65 72 2d 45 6e 63 6f 64 69 6e Transfer-Encodin

0010: 67 3a 20 63 68 75 6e 6b 65 64 0d 0a             g: chunked..

== Info: HTTP error before end of send, stop sending

<= Recv header, 2 bytes (0x2)

0000: 0d 0a                                           ..

<= Recv data, 215 bytes (0xd7)

0000: 43 43 0d 0a 3c 65 72 72 6f 72 73 20 78 6d 6c 6e CC..<errors xmln

0010: 73 3d 22 75 72 6e 3a 69 65 74 66 3a 70 61 72 61 s="urn:ietf:para

0020: 6d 73 3a 78 6d 6c 3a 6e 73 3a 79 61 6e 67 3a 69 ms:xml:ns:yang:i

0030: 65 74 66 2d 72 65 73 74 63 6f 6e 66 22 3e 3c 65 etf-restconf"><e

0040: 72 72 6f 72 3e 3c 65 72 72 6f 72 2d 74 79 70 65 rror><error-type

0050: 3e 70 72 6f 74 6f 63 6f 6c 3c 2f 65 72 72 6f 72 >protocol</error

0060: 2d 74 79 70 65 3e 3c 65 72 72 6f 72 2d 74 61 67 -type><error-tag

0070: 3e 6d 61 6c 66 6f 72 6d 65 64 2d 6d 65 73 73 61 >malformed-messa

0080: 67 65 3c 2f 65 72 72 6f 72 2d 74 61 67 3e 3c 65 ge</error-tag><e

0090: 72 72 6f 72 2d 6d 65 73 73 61 67 65 3e 49 6e 70 rror-message>Inp

00a0: 75 74 20 69 73 20 72 65 71 75 69 72 65 64 2e 3c ut is required.<

00b0: 2f 65 72 72 6f 72 2d 6d 65 73 73 61 67 65 3e 3c /error-message><

00c0: 2f 65 72 72 6f 72 3e 3c 2f 65 72 72 6f 72 73 3e /error></errors>

00d0: 0d 0a 30 0d 0a 0d 0a                            ..0....

== Info: Closing connection 0

root@onap-appc:/home/ubuntu#

 

great thanks for your kindly help!!!

 

 

发件人: onap-discuss@... <onap-discuss@...> 代表 Netaji Surve
发送时间: 2018712 19:41
收件人: huangzonghe <huangzh.bri@...>; onap-discuss@...; 'PLATANIA, MARCO (MARCO)' <platania@...>; 'FREEMAN, BRIAN D' <bf1936@...>; zhehuang_ict@...
抄送: '孙琼' <sunqiong.bri@...>; '陈研' <chenyan.bri@...>
主题: Re: [onap-discuss] [integration] execute closedloop scriptget "TypeError: string indices must be integers"

 

Hi zonghe,

 

Have you checked the Dmaap response on following topics VES_MEASUREMENT_OUTPUT, unauthenticated.DCAE_CL_OUTPUT, POLICY-CL-MGT ? You should see events and alerts on these topics.

Have you done APPC Configurations. If not this is reference for you  https://wiki.onap.org/display/DW/Creating+a+Netconf+Mount

Thanks,

Netaji Surve.

 

 

 

From: huangzonghe [mailto:huangzh.bri@...]
Sent: Thursday, July 12, 2018 2:02 PM
To: onap-discuss@...; huangzh.bri@...; Netaji Surve <Netaji.Surve@...>; 'PLATANIA, MARCO (MARCO)' <platania@...>; 'FREEMAN, BRIAN D' <bf1936@...>; zhehuang_ict@...
Cc: '
孙琼' <sunqiong.bri@...>; '陈研' <chenyan.bri@...>
Subject:
答复: [onap-discuss] [integration] execute closedloop scriptget "TypeError: string indices must be integers"

 

Hi Netaji Surve,

 

I have completed all the steps of the closeloop, no errors and exceptions, but the traffic graph does not seem to be correct, do you know why?

The attatch file is the output of the last step, great thanks for your kindly help!!!

 

 

发件人: onap-discuss@... <onap-discuss@...> 代表 zonghe huang
发送时间: 2018712 16:30
收件人: 'Netaji Surve' <Netaji.Surve@...>; onap-discuss@...; 'PLATANIA, MARCO (MARCO)' <platania@...>; 'FREEMAN, BRIAN D' <bf1936@...>; zhehuang_ict@...
抄送: '孙琼' <sunqiong.bri@...>; '陈研' <chenyan.bri@...>; huangzh.bri@...
主题: Re: [onap-discuss] [integration] execute closedloop scriptget "TypeError: string indices must be integers"

 

Hi Netaji Surve,

 

It does work, great, you are a master, great thanks for your kindly help!!!

 

发件人: Netaji Surve <Netaji.Surve@...>
发送时间: 2018712 15:09
收件人: onap-discuss@...; huangzh.bri@...; 'PLATANIA, MARCO (MARCO)' <platania@...>; 'FREEMAN, BRIAN D' <bf1936@...>; zhehuang_ict@...
抄送: '孙琼' <sunqiong.bri@...>; '陈研' <chenyan.bri@...>
主题: RE: [onap-discuss] [integration] execute closedloop scriptget "TypeError: string indices must be integers"

 

Hi zonghe,

 

Please check the demo_artifacts_version in SDNC preload request. Its value should be 1.2.2

Also validate when your VPG VM is up, all the artifacts are downloaded at location /opt/ .

 

If your demo_artifacts_version is not correct then make it 1.2.2 and recreate the stack and check.

 

Thanks,

Netaji Surve.

 

From: onap-discuss@... [mailto:onap-discuss@...] On Behalf Of zonghe huang
Sent: Thursday, July 12, 2018 6:41 AM
To: onap-discuss@...; huangzh.bri@...; 'PLATANIA, MARCO (MARCO)' <platania@...>; 'FREEMAN, BRIAN D' <bf1936@...>; zhehuang_ict@...
Cc: '
孙琼' <sunqiong.bri@...>; '陈研' <chenyan.bri@...>
Subject:
答复: [onap-discuss] [integration] execute closedloop scriptget "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

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#

 

 

 

 

 

发件人: onap-discuss@... <onap-discuss@...> 代表 zhehuang_ict@...
发送时间: 2018712 7:39
收件人: 'PLATANIA, MARCO (MARCO)' <platania@...>; onap-discuss@...; 'FREEMAN, BRIAN D' <bf1936@...>; zhehuang_ict@...
抄送: '孙琼' <sunqiong.bri@...>; '陈研' <chenyan.bri@...>
主题: 答复: [onap-discuss] [integration] execute closedloop scriptget "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) <platania@...>
发送时间: 2018711 21:12
收件人: onap-discuss@...; FREEMAN, BRIAN D <bf1936@...>; huangzh.bri@...; zhehuang_ict@...
主题: Re: [onap-discuss] [integration] execute closedloop scriptget "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: <onap-discuss@...> on behalf of BRIAN FREEMAN <bf1936@...>
Reply-To: "onap-discuss@..." <onap-discuss@...>, BRIAN FREEMAN <bf1936@...>
Date: Wednesday, July 11, 2018 at 9:05 AM
To: "onap-discuss@..." <onap-discuss@...>, "huangzh.bri@..." <huangzh.bri@...>, "zhehuang_ict@..." <zhehuang_ict@...>
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@... <onap-discuss@...> On Behalf Of zhehuang_ict@...
Sent: Wednesday, July 11, 2018 9:03 AM
To: FREEMAN, BRIAN D <bf1936@...>; onap-discuss@...; zhehuang_ict@...
Cc: huangzh.bri@...
Subject:
答复: [onap-discuss] [integration] execute closedloop scriptget "TypeError: string indices must be integers"

 

ok, thank you very muchI 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 <bf1936@...>
发送时间: 2018711 20:50
收件人: onap-discuss@...; zhehuang_ict@...
抄送: huangzh.bri <huangzh.bri@...>
主题: RE: [onap-discuss] [integration] execute closedloop scriptget "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@... <onap-discuss@...> On Behalf Of zhehuang_ict@...
Sent: Tuesday, July 10, 2018 10:03 PM
To: onap-discuss <onap-discuss@...>
Cc: huangzh.bri <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                                                         | 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#

 


This message and the information contained herein is proprietary and confidential and subject to the Amdocs policy statement, you may review at https://www.amdocs.com/about/email-disclaimer

Amdocs Development Centre India Private Limited having CIN: U72200PN2004PTC0188320 converted into Amdocs Development Centre India LLP (A limited liability partner­ship with LLP Identification Number: AAI-6901 effective 28th Feb 2017)

This message and the information contained herein is proprietary and confidential and subject to the Amdocs policy statement, you may review at https://www.amdocs.com/about/email-disclaimer

Amdocs Development Centre India Private Limited having CIN: U72200PN2004PTC0188320 converted into Amdocs Development Centre India LLP (A limited liability partner­ship with LLP Identification Number: AAI-6901 effective 28th Feb 2017)

This message and the information contained herein is proprietary and confidential and subject to the Amdocs policy statement, you may review at https://www.amdocs.com/about/email-disclaimer

Amdocs Development Centre India Private Limited having CIN: U72200PN2004PTC0188320 converted into Amdocs Development Centre India LLP (A limited liability partner­ship with LLP Identification Number: AAI-6901 effective 28th Feb 2017)

This message and the information contained herein is proprietary and confidential and subject to the Amdocs policy statement, you may review at https://www.amdocs.com/about/email-disclaimer

Amdocs Development Centre India Private Limited having CIN: U72200PN2004PTC0188320 converted into Amdocs Development Centre India LLP (A limited liability partner­ship with LLP Identification Number: AAI-6901 effective 28th Feb 2017)

This message and the information contained herein is proprietary and confidential and subject to the Amdocs policy statement, you may review at https://www.amdocs.com/about/email-disclaimer

Amdocs Development Centre India Private Limited having CIN: U72200PN2004PTC0188320 converted into Amdocs Development Centre India LLP (A limited liability partner­ship with LLP Identification Number: AAI-6901 effective 28th Feb 2017)

Join onap-discuss@lists.onap.org to automatically receive all group messages.