Skip to content

[202106][sonic-utilities] Update submodule#9602

Closed
stephenxs wants to merge 1 commit intosonic-net:202106from
stephenxs:202106-advance-utilities
Closed

[202106][sonic-utilities] Update submodule#9602
stephenxs wants to merge 1 commit intosonic-net:202106from
stephenxs:202106-advance-utilities

Conversation

@stephenxs
Copy link
Collaborator

Why I did it

642f5083 [Reclaiming buffer][202106] Database migrator for reclaiming buffer (1897)

Signed-off-by: Stephen Sun stephens@nvidia.com

How I did it

How to verify it

Which release branch to backport (provide reason below if selected)

  • 201811
  • 201911
  • 202006
  • 202012
  • 202106

Description for the changelog

A picture of a cute animal (not mandatory but encouraged)

642f5083 [Reclaiming buffer][202106] Database migrator for reclaiming buffer (sonic-net#1897)

Signed-off-by: Stephen Sun <stephens@nvidia.com>
@stephenxs
Copy link
Collaborator Author

/azpw run

@mssonicbld
Copy link
Collaborator

/AzurePipelines run

@azure-pipelines
Copy link

You have several pipelines (over 10) configured to build pull requests in this repository. Specify which pipelines you would like to run by using /azp run [pipelines] command. You can specify multiple pipelines using a comma separated list.

@stephenxs
Copy link
Collaborator Author

/azpw run azure.sonic-buildimage

@mssonicbld
Copy link
Collaborator

/AzurePipelines run azure.sonic-buildimage

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@stephenxs
Copy link
Collaborator Author

failure:

2021-12-21T12:39:11.7902142Z =================================== FAILURES ===================================
2021-12-21T12:39:11.7904132Z __________________________ test_dhcpv6_relay_counter ___________________________
2021-12-21T12:39:11.7904495Z 
2021-12-21T12:39:11.7906663Z ptfhost = <tests.common.devices.ptf.PTFHost object at 0x7fad39720890>
2021-12-21T12:39:11.7909267Z duthosts = [<MultiAsicSonicHost> vlab-01], rand_one_dut_hostname = 'vlab-01'
2021-12-21T12:39:11.7912772Z dut_dhcp_relay_data = [{'client_iface': {'alias': u'fortyGigE0/4', 'name': u'Ethernet4', 'port_idx': 1}, 'downlink_vlan_iface': {'addr': u'f...054:ff:fe4b:fe63', 'uplink_interfaces': ['PortChannel104', 'PortChannel103', 'PortChannel102', 'PortChannel101'], ...}]
2021-12-21T12:39:11.7913648Z 
2021-12-21T12:39:11.7914312Z     def test_dhcpv6_relay_counter(ptfhost, duthosts, rand_one_dut_hostname, dut_dhcp_relay_data):
2021-12-21T12:39:11.7915533Z         """ Test DHCPv6 Counter """
2021-12-21T12:39:11.7919199Z         duthost = duthosts[rand_one_dut_hostname]
2021-12-21T12:39:11.7919833Z     
2021-12-21T12:39:11.7921398Z         messages = ["Solicit", "Advertise", "Request", "Confirm", "Renew", "Rebind", "Reply", "Release", "Decline", "Relay-Forward", "Relay-Reply"]
2021-12-21T12:39:11.7922275Z     
2021-12-21T12:39:11.7923243Z         for dhcp_relay in dut_dhcp_relay_data:
2021-12-21T12:39:11.7923651Z     
2021-12-21T12:39:11.7923961Z             for message in messages:
2021-12-21T12:39:11.7924816Z                 cmd = 'sonic-db-cli STATE_DB hmset "DHCPv6_COUNTER_TABLE|{}" {} 0'.format(dhcp_relay['downlink_vlan_iface']['name'], message)
2021-12-21T12:39:11.7925284Z                 duthost.shell(cmd)
2021-12-21T12:39:11.7925544Z     
2021-12-21T12:39:11.7925812Z             # Send the DHCP relay traffic on the PTF host
2021-12-21T12:39:11.7926217Z             ptf_runner(ptfhost,
2021-12-21T12:39:11.7926702Z                        "ptftests",
2021-12-21T12:39:11.7927340Z                        "dhcpv6_counter_test.DHCPCounterTest",
2021-12-21T12:39:11.7928025Z                        platform_dir="ptftests",
2021-12-21T12:39:11.7928437Z                        params={"hostname": duthost.hostname,
2021-12-21T12:39:11.7929304Z                                "client_port_index": dhcp_relay['client_iface']['port_idx'],
2021-12-21T12:39:11.7930721Z                                "leaf_port_indices": repr(dhcp_relay['uplink_port_indices']),
2021-12-21T12:39:11.7931921Z                                "num_dhcp_servers": len(dhcp_relay['downlink_vlan_iface']['dhcpv6_server_addrs']),
2021-12-21T12:39:11.7932706Z                                "server_ip": str(dhcp_relay['downlink_vlan_iface']['dhcpv6_server_addrs'][0]),
2021-12-21T12:39:11.7933441Z                                "relay_iface_ip": str(dhcp_relay['downlink_vlan_iface']['addr']),
2021-12-21T12:39:11.7937385Z                                "relay_iface_mac": str(dhcp_relay['downlink_vlan_iface']['mac']),
2021-12-21T12:39:11.7939401Z                                "relay_link_local": str(dhcp_relay['uplink_interface_link_local']),
2021-12-21T12:39:11.7940846Z                                "vlan_ip": str(dhcp_relay['downlink_vlan_iface']['addr'])},
2021-12-21T12:39:11.7941765Z                        log_file="/tmp/dhcpv6_relay_test.DHCPCounterTest.log")
2021-12-21T12:39:11.7942254Z     
2021-12-21T12:39:11.7942719Z             for message in messages:
2021-12-21T12:39:11.7944055Z                 get_message = 'sonic-db-cli STATE_DB hget "DHCPv6_COUNTER_TABLE|{}" {}'.format(dhcp_relay['downlink_vlan_iface']['name'], message)
2021-12-21T12:39:11.7945416Z                 message_count = duthost.shell(get_message)['stdout']
2021-12-21T12:39:11.7946226Z >               assert int(message_count) > 0, "Missing {} count".format(message)
2021-12-21T12:39:11.7946959Z E               AssertionError: Missing Solicit count
2021-12-21T12:39:11.7947315Z 
2021-12-21T12:39:11.7948331Z cmd        = 'sonic-db-cli STATE_DB hmset "DHCPv6_COUNTER_TABLE|Vlan1000" Relay-Reply 0'
2021-12-21T12:39:11.7950113Z dhcp_relay = {'client_iface': {'alias': u'fortyGigE0/4', 'name': u'Ethernet4', 'port_idx': 1}, 'downlink_vlan_iface': {'addr': 
u'fc...5054:ff:fe4b:fe63', 'uplink_interfaces': ['PortChannel104', 'PortChannel103', 'PortChannel102', 'PortChannel101'], ...}
2021-12-21T12:39:11.7952545Z dut_dhcp_relay_data = [{'client_iface': {'alias': u'fortyGigE0/4', 'name': u'Ethernet4', 'port_idx': 1}, 'downlink_vlan_iface': {'addr': u'f...054:ff:fe4b:fe63', 'uplink_interfaces': ['PortChannel104', 'PortChannel103', 'PortChannel102', 'PortChannel101'], ...}]
2021-12-21T12:39:11.7953481Z duthost    = <MultiAsicSonicHost> vlab-01
2021-12-21T12:39:11.7954093Z duthosts   = [<MultiAsicSonicHost> vlab-01]
2021-12-21T12:39:11.7954643Z get_message = 'sonic-db-cli STATE_DB hget "DHCPv6_COUNTER_TABLE|Vlan1000" Solicit'
2021-12-21T12:39:11.7955111Z message    = 'Solicit'
2021-12-21T12:39:11.7955475Z message_count = u'0'
2021-12-21T12:39:11.7956009Z messages   = ['Solicit', 'Advertise', 'Request', 'Confirm', 'Renew', 'Rebind', ...]
2021-12-21T12:39:11.7956411Z ptfhost    = <tests.common.devices.ptf.PTFHost object at 0x7fad39720890>
2021-12-21T12:39:11.7956893Z rand_one_dut_hostname = 'vlab-01'
2021-12-21T12:39:11.7957034Z 
2021-12-21T12:39:11.7957298Z dhcp_relay/test_dhcpv6_relay.py:162: AssertionError

@kellyyeh
Looks like we need to backport #9283 to 202106 as well? Can you please do that?
Thanks

@stephenxs
Copy link
Collaborator Author

Submodule has already been updated to the latest one so close this PR.

@stephenxs stephenxs closed this Dec 23, 2021
@stephenxs stephenxs deleted the 202106-advance-utilities branch December 23, 2021 00:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants