-
Bug
-
Resolution: Done-Errata
-
Normal
-
rhel-8.6.0.z
-
nmstate-1.4.6-4.el8_10
-
None
-
Moderate
-
ZStream
-
1
-
rhel-sst-network-management
-
ssg_networking
-
5
-
False
-
-
None
-
NMT - RHEL-9.5 DTM 20
-
Approved Blocker
-
None
What were you trying to do that didn't work?
Disable ipv6 on the default interface, found the dns server/search are cleared
original OCP bug: https://issues.redhat.com/browse/OCPBUGS-31606
Please provide the package NVR for which bug is seen:
OPENSHIFT_VERSION="4.12"
RHEL_VERSION="8.6"
knmstate operator: kubernetes-nmstate-operator.4.12.0-202403241038
nmstate-1.4.5-2.el8_6.x86_64
How reproducible:
always
Steps to reproduce
- apply below nncp, nmstatectl apply disablev6.yaml
interfaces:
- name: ens192
description: disable ipv6
type: ethernet
state: up
ipv6:
enabled: false - check interface ip address, ipv6 is disabled
sh-4.4# ip a show ens192
2: ens192: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
link/ether 00:50:56:bd:bb:26 brd ff:ff:ff:ff:ff:ff
inet 192.168.221.16/24 brd 192.168.221.255 scope global noprefixroute ens192
valid_lft forever preferred_lft forever
sh-4.4# - check /var/run/NetworkManager/resolv.conf,
sh-4.4# cat /var/run/NetworkManager/resolv.conf
Generated by NetworkManager
sh-4.4#
Expected results
ipv6 is disabled, dns configuration has no change, as we didn't update it.
Actual results
ipv6 is disabled correctly, but dns search/server were cleared which is not expected.
Apr 01 13:46:30 qeci-623142-sztdc-compute-0 NetworkManager[1329]: <debug> [1711979190.8700] ++ connection 'update connection' (0x55ad36d4ea20/NMSimpleConnection/"802-3-ethernet" < 0x55ad36d4e2e0/NMSimpleConnection/"802-3-ethernet") [/org/freedesktop/NetworkManager/Settings/1]: Apr 01 13:46:30 qeci-623142-sztdc-compute-0 NetworkManager[1329]: <debug> [1711979190.8700] ++ connection [ 0x55ad36f949a0 < 0x7f888c007cc0 ] Apr 01 13:46:30 qeci-623142-sztdc-compute-0 NetworkManager[1329]: <debug> [1711979190.8701] ++ connection.lldp = 0 Apr 01 13:46:30 qeci-623142-sztdc-compute-0 NetworkManager[1329]: <debug> [1711979190.8701] ++ ipv4 [ 0x55ad36f94a70 < 0x55ad36d1ae00 ] Apr 01 13:46:30 qeci-623142-sztdc-compute-0 NetworkManager[1329]: <debug> [1711979190.8701] ++ ipv4.dhcp-client-id = 'mac' Apr 01 13:46:30 qeci-623142-sztdc-compute-0 NetworkManager[1329]: <debug> [1711979190.8701] ++ ipv4.dns = [] < [\"192.168.221.1\"] Apr 01 13:46:30 qeci-623142-sztdc-compute-0 NetworkManager[1329]: <debug> [1711979190.8702] ++ ipv4.dns-search = [] < [\"qeci-623142.qe.devcluster.openshift.com\"] Apr 01 13:46:30 qeci-623142-sztdc-compute-0 NetworkManager[1329]: <debug> [1711979190.8702] ++ ipv4.routes = ((GPtrArray*) 0x7f888c004360) < ((GPtrArray*) 0x7f888c004280) Apr 01 13:46:30 qeci-623142-sztdc-compute-0 NetworkManager[1329]: <debug> [1711979190.8702] ++ ipv4.gateway < '192.168.221.1' Apr 01 13:46:30 qeci-623142-sztdc-compute-0 NetworkManager[1329]: <debug> [1711979190.8702] ++ ipv6 [ 0x55ad36f94b40 < 0x55ad36d1ad30 ] Apr 01 13:46:30 qeci-623142-sztdc-compute-0 NetworkManager[1329]: <debug> [1711979190.8702] ++ ipv6.dhcp-duid = 'll' Apr 01 13:46:30 qeci-623142-sztdc-compute-0 NetworkManager[1329]: <debug> [1711979190.8703] ++ ipv6.dhcp-iaid = 'mac' Apr 01 13:46:30 qeci-623142-sztdc-compute-0 NetworkManager[1329]: <debug> [1711979190.8703] ++ ipv6.method = 'disabled' < 'ignore' Apr 01 13:46:30 qeci-623142-sztdc-compute-0 NetworkManager[1329]: <debug> [1711979190.8703] ++ user [ 0x55ad36f0af90 < *missing* ] Apr 01 13:46:30 qeci-623142-sztdc-compute-0 NetworkManager[1329]: <debug> [1711979190.8703] ++ user.data = ((GHashTable*) 0x55ad36e3d120)
- blocks
-
OCPBUGS-31606 disable ipv6 on default interface, nncp timeout because missing name servers at 'dns-resolver.running.server'
- Closed
- links to
-
RHBA-2024:134145 Bug fix of nmstate