[R5.0]- Fix intermittent failure for test cases test_flow_action_drop_stats
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Juniper Openstack | Status tracked in Trunk | |||||
R5.0 |
Fix Committed
|
Medium
|
alok kumar | |||
Trunk |
Fix Committed
|
Medium
|
alok kumar |
Bug Description
Test case TestDropStats.
Traceback (most recent call last): File "tcutils/
though this is not reproducible in current setup, this probably looks like script issue when raw_drop_stats field is not available in VMI table in agent.
All the fields for VMI get updated periodically and there may be instances when VMI table is seen but field raw_drop_stats is not updated yet.
In this case we may need to retry.
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....
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=