In Failure case, below was the query and response from agent introspect where field raw_drop_stats is missing in the response as after new VM launch agent takes sometime to query vrouter to update this field. This field is optional in agent VMI uve, so it will not be initially present when VM is launched.
In Failure case, below was the query and response from agent introspect where field raw_drop_stats is missing in the response as after new VM launch agent takes sometime to query vrouter to update this field. This field is optional in agent VMI uve, so it will not be initially present when VM is launched.
2018-06-14 12:51:37,308 - DEBUG - Requesting: http:// 10.204. 216.99: 8085/Snh_ SandeshUVECache Req?x=UveVMInte rfaceAgent ceAgentTrace_ list type="slist"> ceAgentTrace type="sandesh"> UveVMInterfaceA gent> able">default- domain: ctest-TestDropS tats-19689257: 8d4e4f4e- 051d-4521- b17e-74d1d8e3e0 ad</name> "3">68. 225.53. 3</ip_address>
<virtual_ network type="string" identifier= "4">default- domain: ctest-TestDropS tats-19689257: ctest-vn- 69421443< /virtual_ network>
<mac_address type="string" identifier= "5">02: 8d:4e:4f: 4e:05</ mac_address> "6">25< /label> "7">true< /active> "8">ctest- vm1-36599244< /vm_name> "9">68. 225.53. 1</gateway> "10">true< /l2_active> "11">8d4e4f4e- 051d-4521- b17e-74d1d8e3e0 ad</uuid>
<ip6_address type="string" identifier= "12">:: </ip6_address> "13">false< /ip6_active>
<floating_ ips type="list" identifier="15">
</floating_ ips> "19">bd912d8e- af4c-44c1- bdf1-0177fc435a 16</vm_ uuid> "22">true< /ip4_active>
<is_health_ check_active type="bool" identifier= "23">true< /is_health_ check_active>
<health_ check_instance_ list type="list" identifier="24">
</health_ check_instance_ list>
<admin_ state type="bool" identifier= "27">true< /admin_ state>
<fixed_ ip4_list type="list" identifier="28">
<element> 68.225. 53.3</element>
</fixed_ ip4_list>
<fixed_ ip6_list type="list" identifier="29">
</fixed_ ip6_list> "37">1db491b7- 0f31-4e52- a022-dfca33759b 8f</vn_ uuid> "38">65535< /tx_vlan> "39">65535< /rx_vlan>
<vhostuser_ mode type="byte" identifier= "49">0< /vhostuser_ mode>
<port_ mirror_ enabled type="bool" identifier= "50">false< /port_mirror_ enabled> /UveVMInterface Agent> aceAgentTrace> ceAgentTrace type="sandesh"> UveVMInterfaceA gent> able">default- global- system- config: nodem10: vhost0< /name> "3">10. 10.10.10< /ip_address>
<virtual_ network type="string" identifier= "4">default- domain: default- project: ip-fabric< /virtual_ network>
<mac_address type="string" identifier= "5">0c: c4:7a:ea: b7:89</ mac_address> "6">17< /label> "7">true< /active> "10">true< /l2_active> "11">8d51d6c0- 88b3-4706- acc3-985d8971fb 8e</uuid>
<ip6_address type="string" identifier= "12">:: </ip6_address> "13">true< /ip6_active>
<floating_ ips type="list" identifier="15">
</floating_ ips> "22">true< /ip4_active>
<is_health_ check_active type="bool" identifier= "23">true< /is_health_ check_active>
<health_ check_instance_ list type="list" identifier="24">
</health_ check_instance_ list>
<admin_ state type="bool" identifier= "27">true< /admin_ state>
<fixed_ ip4_list type="list" identifier="28">
<element> 10.10.10. 10</element>
</fixed_ ip4_list>
<fixed_ ip6_list type="list" identifier="29">
</fixed_ ip6_list> "37">0bd684e8- b989-4c57- 90a1-fabe8cc9d7 ba</vn_ uuid> "38">65535< /tx_vlan> "39">65535< /rx_vlan>
<parent_ interface type="string" identifier= "40">ens2f1< /parent_ interface>
<vhostuser_ mode type="byte" identifier= "49">0< /vhostuser_ mode>
<port_ mirror_ enabled type="bool" identifier= "50">false< /port_mirror_ enabled> /UveVMInterface Agent> aceAgentTrace> cheResp type="sandesh"> "1">2</ returned> "2">0</ period> "0">false< /more> acheResp> aceAgentTrace_ list>
2018-06-14 12:51:37,313 - DEBUG - <__UveVMInterfa
<UveVMInterfa
<data type="struct" identifier="1">
<
<name type="string" identifier="1" key="ObjectVMIT
<ip_address type="string" identifier=
<label type="u32" identifier=
<active type="bool" identifier=
<vm_name type="string" identifier=
<gateway type="string" identifier=
<l2_active type="bool" identifier=
<uuid type="string" identifier=
<ip6_active type="bool" identifier=
<list type="struct" size="0"/>
<vm_uuid type="string" identifier=
<ip4_active type="bool" identifier=
<list type="struct" size="0"/>
<list type="string" size="1">
</list>
<list type="string" size="0"/>
<vn_uuid type="string" identifier=
<tx_vlan type="u16" identifier=
<rx_vlan type="u16" identifier=
<
</data>
</UveVMInterf
<UveVMInterfa
<data type="struct" identifier="1">
<
<name type="string" identifier="1" key="ObjectVMIT
<ip_address type="string" identifier=
<label type="u32" identifier=
<active type="bool" identifier=
<vm_name type="string" identifier="8"/>
<l2_active type="bool" identifier=
<uuid type="string" identifier=
<ip6_active type="bool" identifier=
<list type="struct" size="0"/>
<vm_uuid type="string" identifier="19"/>
<ip4_active type="bool" identifier=
<list type="struct" size="0"/>
<list type="string" size="1">
</list>
<list type="string" size="0"/>
<vn_uuid type="string" identifier=
<tx_vlan type="u16" identifier=
<rx_vlan type="u16" identifier=
<
</data>
</UveVMInterf
<SandeshUVECa
<returned type="u32" identifier=
<period type="i32" identifier=
<more type="bool" identifier=
</SandeshUVEC
</__UveVMInterf
To fix this, we need to add retry in the test script.