Comment 1 for bug 1777107

Revision history for this message
alok kumar (kalok) wrote :

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_SandeshUVECacheReq?x=UveVMInterfaceAgent
2018-06-14 12:51:37,313 - DEBUG - <__UveVMInterfaceAgentTrace_list type="slist">
  <UveVMInterfaceAgentTrace type="sandesh">
    <data type="struct" identifier="1">
      <UveVMInterfaceAgent>
        <name type="string" identifier="1" key="ObjectVMITable">default-domain:ctest-TestDropStats-19689257:8d4e4f4e-051d-4521-b17e-74d1d8e3e0ad</name>
        <ip_address type="string" identifier="3">68.225.53.3</ip_address>
        <virtual_network type="string" identifier="4">default-domain:ctest-TestDropStats-19689257:ctest-vn-69421443</virtual_network>
        <mac_address type="string" identifier="5">02:8d:4e:4f:4e:05</mac_address>
        <label type="u32" identifier="6">25</label>
        <active type="bool" identifier="7">true</active>
        <vm_name type="string" identifier="8">ctest-vm1-36599244</vm_name>
        <gateway type="string" identifier="9">68.225.53.1</gateway>
        <l2_active type="bool" identifier="10">true</l2_active>
        <uuid type="string" identifier="11">8d4e4f4e-051d-4521-b17e-74d1d8e3e0ad</uuid>
        <ip6_address type="string" identifier="12">::</ip6_address>
        <ip6_active type="bool" identifier="13">false</ip6_active>
        <floating_ips type="list" identifier="15">
          <list type="struct" size="0"/>
        </floating_ips>
        <vm_uuid type="string" identifier="19">bd912d8e-af4c-44c1-bdf1-0177fc435a16</vm_uuid>
        <ip4_active type="bool" identifier="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">
          <list type="struct" size="0"/>
        </health_check_instance_list>
        <admin_state type="bool" identifier="27">true</admin_state>
        <fixed_ip4_list type="list" identifier="28">
          <list type="string" size="1">
            <element>68.225.53.3</element>
          </list>
        </fixed_ip4_list>
        <fixed_ip6_list type="list" identifier="29">
          <list type="string" size="0"/>
        </fixed_ip6_list>
        <vn_uuid type="string" identifier="37">1db491b7-0f31-4e52-a022-dfca33759b8f</vn_uuid>
        <tx_vlan type="u16" identifier="38">65535</tx_vlan>
        <rx_vlan type="u16" identifier="39">65535</rx_vlan>
        <vhostuser_mode type="byte" identifier="49">0</vhostuser_mode>
        <port_mirror_enabled type="bool" identifier="50">false</port_mirror_enabled>
      </UveVMInterfaceAgent>
    </data>
  </UveVMInterfaceAgentTrace>
  <UveVMInterfaceAgentTrace type="sandesh">
    <data type="struct" identifier="1">
      <UveVMInterfaceAgent>
        <name type="string" identifier="1" key="ObjectVMITable">default-global-system-config:nodem10:vhost0</name>
        <ip_address type="string" identifier="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>
        <label type="u32" identifier="6">17</label>
        <active type="bool" identifier="7">true</active>
        <vm_name type="string" identifier="8"/>
        <l2_active type="bool" identifier="10">true</l2_active>
        <uuid type="string" identifier="11">8d51d6c0-88b3-4706-acc3-985d8971fb8e</uuid>
        <ip6_address type="string" identifier="12">::</ip6_address>
        <ip6_active type="bool" identifier="13">true</ip6_active>
        <floating_ips type="list" identifier="15">
          <list type="struct" size="0"/>
        </floating_ips>
        <vm_uuid type="string" identifier="19"/>
        <ip4_active type="bool" identifier="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">
          <list type="struct" size="0"/>
        </health_check_instance_list>
        <admin_state type="bool" identifier="27">true</admin_state>
        <fixed_ip4_list type="list" identifier="28">
          <list type="string" size="1">
            <element>10.10.10.10</element>
          </list>
        </fixed_ip4_list>
        <fixed_ip6_list type="list" identifier="29">
          <list type="string" size="0"/>
        </fixed_ip6_list>
        <vn_uuid type="string" identifier="37">0bd684e8-b989-4c57-90a1-fabe8cc9d7ba</vn_uuid>
        <tx_vlan type="u16" identifier="38">65535</tx_vlan>
        <rx_vlan type="u16" identifier="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>
      </UveVMInterfaceAgent>
    </data>
  </UveVMInterfaceAgentTrace>
  <SandeshUVECacheResp type="sandesh">
    <returned type="u32" identifier="1">2</returned>
    <period type="i32" identifier="2">0</period>
    <more type="bool" identifier="0">false</more>
  </SandeshUVECacheResp>
</__UveVMInterfaceAgentTrace_list>

To fix this, we need to add retry in the test script.