Issue
What were you trying to do that didn't work?j
If dns server and dns options are both configured, cannot perform rollback when modifying dns options.
The bug is found on rhel 8.8.0.z but should also exist on other rhel 8 rebase/backport.
Please provide the package NVR for which bug is seen:
Verified with:
nmstate-1.4.5-2.el8_8.x86_64
nispor-1.2.10-1.el8.x86_64
NetworkManager-1.40.16-5.el8_8.x86_64
DISTRO=RHEL-8.8.0-updates-20231114.30
How reproducible:
100%
Steps to reproduce
echo '
dns-resolver:
config:
options:
- rotate
- debug
- timeout:5
- attempts:6
- ndots:7
- edns0
- inet6
- ip6-bytestring
- ip6-dotint
- no-aaaa
- no-check-names
- no-ip6-dotint
- no-reload
- no-tld-query
- single-request-reopen
- single-request
- trust-ad
- use-vc
server:
- 10.72.17.5
- 8.8.8.8
' | nmstatectl apply
echo '
dns-resolver:
config:
options:
- rotate
- debug
' | nmstatectl apply --no-commit --timeout 10
nmstatectl show
cat /etc/resolv.conf
Expected results
Rollback to the fisrt applied state after 10 secs
Actual results
[18:39:59@cloud-qe-10 ~]0# nms show | yq .dns-resolver
2023-11-19 18:40:04,147 root
DEBUG
NetworkManager version 1.40.16
2023-11-19 18:40:04,148 root
DEBUG
Async action: Retrieve applied config: ethernet enp11s0 started
2023-11-19 18:40:04,150 root
DEBUG
Async action: Retrieve applied config: ethernet enp11s0 finished
2023-11-19 18:40:04,152 root
DEBUG
Interface ethernet.enp0s29u1u1u5 found. Merging the interface information.
2023-11-19 18:40:04,153 root
DEBUG
Interface ethernet.enp11s0 found. Merging the interface information.
config:
options:
- rotate
- debug
search: []
server:
- 10.72.17.5
- 8.8.8.8
running:
options:
- rotate
- debug
search: []
server:
- 10.72.17.5
- 8.8.8.8
[18:40:04@cloud-qe-10 ~]0# cat /etc/resolv.conf
Generated by NetworkManager
search idmqe.lab.eng.bos.redhat.com
nameserver 10.72.17.5
nameserver 8.8.8.8
options rotate debug