-
Bug
-
Resolution: Unresolved
-
Undefined
-
None
-
rhel-10.1
-
None
-
None
-
None
-
rhel-net-mgmt
-
None
-
False
-
False
-
-
None
-
None
-
-
None
-
None
-
Unspecified
-
Unspecified
-
Unspecified
-
None
There is a failure in the nmstate test suite
=================================== FAILURES ===================================
__________________ test_static_ipv6_route_not_covert_auto_ip ___________________
dhcpcli_up_with_dynamic_ip = {'interfaces': [{'accept-all-mac-addresses': False, 'ethtool': {'feature':
{'highdma': True, 'rx-checksum': True, 'rx-...': 24, 'valid-life-time': '172798sec'}
], 'auto-dns': True, 'auto-gateway': True, 'auto-route-table-id': 0, ...}, ...}]}
@pytest.mark.tier1
def test_static_ipv6_route_not_covert_auto_ip(dhcpcli_up_with_dynamic_ip):
iface_state = dhcpcli_up_with_dynamic_ip[Interface.KEY][0]
(pre_dhcpv4_addrs, pre_dhcpv6_addrs) = get_dhcp_addr(iface_state)
state_yml = """---
routes:
config:
destination: ::/0
next-hop-interface: dhcpcli
next-hop-address: fe80::1
"""
desired_state = yaml.load(state_yml, Loader=yaml.SafeLoader)
apply_with_description(
"set the default route to fe80::1 on dhcpcli",
desired_state,
)
assert _poll(_has_dhcpv4_addr)
assert _poll(_has_dhcpv6_addr)
current_state = statelib.show_only((DHCP_CLI_NIC,))
(new_dhcpv4_addrs, new_dhcpv6_addrs) = get_dhcp_addr(
current_state[Interface.KEY][0]
)
assert pre_dhcpv4_addrs == new_dhcpv4_addrs
> assert pre_dhcpv6_addrs == new_dhcpv6_addrs
E AssertionError: assert ['2001:db8:1::ac0'] == []
E Left contains one more item: '2001:db8:1::ac0'
E Full diff:
E - []
E + ['2001:db8:1::ac0']
Full log attached.
platform linux – Python 3.12.11, pytest-7.4.3, pluggy-1.3.0 – /usr/bin/python3
cachedir: .pytest_cache
RPMs: NetworkManager-1.54.0-1.el10 NetworkManager-libreswan-1.2.27-4.el10
OS: CentOS Stream 10 (Coughlan)
nmstate: nmstate-2.2.55-0.20251109.2672git4d343091.el10