-
Bug
-
Resolution: Unresolved
-
Normal
-
None
-
rhel-9.8
-
None
-
Yes
-
None
-
rhel-net-mgmt
-
3
-
False
-
False
-
-
None
-
None
-
-
None
-
None
-
Unspecified
-
Unspecified
-
Unspecified
-
None
What were you trying to do that didn't work?
When configuring ipv6 link local dns on a disconnected (nmcli dev show) interface, even there is an ipv6 address on the interface, nmstate always raises "NmstateError: InvalidArgument: Interface veth0 has IPv6 disabled, hence cannot hold desired IPv6 link local DNS server fe80::deef:1%veth0"
This action works well in nmstate-2.2.48, nmstate can apply DNS successfully and take control the interface
What is the impact of this issue to you?
Cannot simply apply ipv6 link local DNS setting only, without setting target interface "state: up" in the desired state
Please provide the package NVR for which the bug is seen:
nmstate-2.2.50-1.el9.x86_64
NetworkManager-1.54.0-1.el9.x86_64
How reproducible is this bug?:
100%
Steps to reproduce
ip link add veth1 type veth peer veth1_ep ip link set veth1 up ip link set veth1_ep up sleep 1 nmcli dev set veth1 managed yes if ! ip -6 addr show veth1 | grep veth1; then echo 0 > /proc/sys/net/ipv6/conf/veth1/disable_ipv6 echo 0 > /proc/sys/net/ipv6/conf/veth1/addr_gen_mode fi # confirm veth1 has ipv6 address and is disconnected in NM ip -6 addr show veth1 nmcli dev echo ' dns-resolver: config: search: - redhat.com - usersys.redhat.com server: - 10.72.17.5 - 8.8.8.8 - ae86:3200:baba::1 - fe80::deef:1%veth0 ' | nmstatectl apply
Expected results
The DNS configured
Actual results
NmstateError: InvalidArgument: Interface veth0 has IPv6 disabled, hence cannot hold desired IPv6 link local DNS server fe80::deef:1%veth0
If veth0 is already connected in NM, or append
interfaces: - name: veth0 state: up
into the desired state, the apply works