test_qos_sai.py is leaving the DUT with a bunch of config that was not present at the beginning of the script. After the script comes out, we see a lot of difference between golden config and the saved configs:
root@xx-37-lc0:/home/cisco# diff /etc/sonic/config_db0.json /etc/sonic/running_golden_config0.json | wc
803 2077 25781
root@xx-37-lc0:/home/cisco#
This causes the fixture: dutConfig to fail:
Traceback (most recent call last):
File "/data/tests/common/plugins/log_section_start/init.py", line 84, in _fixture_generator_decorator
res = next(it)
File "/data/tests/qos/qos_sai_base.py", line 848, in dutConfig
active_ips = dst_asic.get_active_ip_interfaces(tbinfo)
File "/data/tests/common/devices/sonic_asic.py", line 293, in get_active_ip_interfaces
ip_ifs, tbinfo, self.namespace
File "/data/tests/common/devices/sonic.py", line 2048, in active_ip_interfaces
self.ping_v4(v["peer_ipv4"], count=3, ns_arg=ns_arg)):
File "/data/tests/common/devices/sonic.py", line 2006, in ping_v4
raise Exception("Invalid IPv4 address {}".format(ipv4))
Exception: Invalid IPv4 address N/A
test_qos_sai.py is leaving the DUT with a bunch of config that was not present at the beginning of the script. After the script comes out, we see a lot of difference between golden config and the saved configs: root@xx-37-lc0:/home/cisco# diff /etc/sonic/config_db0.json /etc/sonic/running_golden_config0.json | wc 803 2077 25781 root@xx-37-lc0:/home/cisco#
root@xx-37-lc0:/home/cisco# diff /etc/sonic/config_db1.json /etc/sonic/running_golden_config1.json | wc 632 1614 20457 root@xx-37-lc0:/home/cisco#
Another issue I notice is that the BGP neighbor address for some interfaces is not present after the setup:
This causes the fixture: dutConfig to fail: Traceback (most recent call last): File "/data/tests/common/plugins/log_section_start/init.py", line 84, in _fixture_generator_decorator res = next(it) File "/data/tests/qos/qos_sai_base.py", line 848, in dutConfig active_ips = dst_asic.get_active_ip_interfaces(tbinfo) File "/data/tests/common/devices/sonic_asic.py", line 293, in get_active_ip_interfaces ip_ifs, tbinfo, self.namespace File "/data/tests/common/devices/sonic.py", line 2048, in active_ip_interfaces self.ping_v4(v["peer_ipv4"], count=3, ns_arg=ns_arg)): File "/data/tests/common/devices/sonic.py", line 2006, in ping_v4 raise Exception("Invalid IPv4 address {}".format(ipv4)) Exception: Invalid IPv4 address N/A