Open dflynn-Nokia opened 2 years ago
It looks like this has been fixed in the following PR.
Azure/sonic-mgmt#4963
I will verify this fix and close this Issue when completed.
Hello @wangxin
I ran on T0-physical topology , am facing issue kindly suggest any solution .
def check_transceiver_basic(dut, asic_index, interfaces, xcvr_skip_list):
"""
@summary: Check whether all the specified interface are in TRANSCEIVER_INFO redis DB.
@param dut: The AnsibleHost object of DUT. For interacting with DUT.
@param interfaces: List of interfaces that need to be checked.
"""
logging.info("Check whether transceiver information of all ports are in redis")
cmd = "redis-cli -n 6 keys TRANSCEIVER_INFO*"
asichost = dut.asic_instance(asic_index)
docker_cmd = asichost.get_docker_cmd(cmd, "database")
xcvr_info = dut.command(docker_cmd)
parsed_xcvr_info = parse_transceiver_info(xcvr_info["stdout_lines"])
for intf in interfaces:
if intf not in xcvr_skip_list[dut.hostname]:
assert intf in parsed_xcvr_info, "TRANSCEIVER INFO of %s is not found in DB" % intf
E AssertionError: TRANSCEIVER INFO of Ethernet28 is not found in DB
asic_index = None
asichost = <SonicAsic 0>
cmd = 'redis-cli -n 6 keys TRANSCEIVER_INFO'
docker_cmd = 'redis-cli -n 6 keys TRANSCEIVER_INFO'
dut =
common/platform/transceiver_utils.py:70: AssertionError
Description
The following failure is seen when executing the test_xcvr_info_in_db.py platform test case on the Nokia marvell-armhf platform
I believe this is due to the fact that sonic-mgmt PR# 4816 introduced an expectation that all platforms will have migrated from using hardware_rev to vendor_rev. This is not the case for the Nokia marvell-armhf platform currently based on the Sonic 202012 release.
Steps to reproduce the issue:
Describe the results you received: See Assert above.
Describe the results you expected: Test case pass
Additional information you deem important: