Bug 1911241
| Summary: | better deal with ipv6 address in dns config | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 8 | Reporter: | Mingyu Shi <mshi> |
| Component: | nmstate | Assignee: | Fernando F. Mancera <ferferna> |
| Status: | CLOSED ERRATA | QA Contact: | Mingyu Shi <mshi> |
| Severity: | low | Docs Contact: | |
| Priority: | low | ||
| Version: | 8.4 | CC: | ferferna, fge, jiji, jishi, network-qe, till |
| Target Milestone: | rc | Keywords: | Triaged |
| Target Release: | 8.4 | Flags: | pm-rhel:
mirror+
|
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | nmstate-1.1.1-0.1.alpha1.el8 | Doc Type: | No Doc Update |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2022-05-10 13:34:46 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Mingyu Shi
2020-12-28 10:42:28 UTC
Upstream patch: https://github.com/nmstate/nmstate/pull/1693 Tested using nmstate-1.0 branch and nmstate-1.1 branch using yaml
```
---
dns-resolver:
config:
search: []
server:
- "0000:0000:0000:0000:0000:0000:0000:0100"
- 8.8.4.4
interfaces:
- name: eth1
type: ethernet
state: up
ipv4:
address:
- ip: 192.0.2.251
prefix-length: 24
dhcp: false
enabled: true
ipv6:
address:
- ip: 2001:db8:1::1
prefix-length: 64
dhcp: false
enabled: true
autoconf: false
routes:
config:
- destination: 0.0.0.0/0
next-hop-address: 192.0.2.1
next-hop-interface: eth1
- destination: ::/0
next-hop-address: 2001:db8:1::3
next-hop-interface: eth1
```
Verified with versions:
nmstate-1.1.1-0.1.alpha1.el8.noarch
nispor-1.1.1-1.el8.x86_64
NetworkManager-1.34.0-0.2.el8.x86_64
1. DNS with static ipv6:
[18:25:53@hpe-dl380pgen8-02-vm-9 ~]0# nmstatectl set dns6_static.yaml
/tmp/nmstatelog/2021-10-11-18:25:57-859112499.log
Desired state applied:
---
dns-resolver:
config:
server:
- 3000:0000:0000:0000:0000:0000:0000:0000
- 0000:0000:0000:0000:0000:0000:0000:0100
- 0000:0000:000F:0000:0000:0000:0000:0100
- 3001:db8::1:1:1:1:1
- 3001:db8:0:0:0:0:2:1
- 3001:db8::0:1
- '3002:0:0:1:0:0:0:1'
- 3003:dB8:0:0:1:0:0:1
- 3004:db8::1:0:0:1
- 3005:DB8:0:0:1::1
- 0:0:0:0:0:FFFF:192.0.2.1
- ::FFFF:192.0.2.2
- 03:0000:000:00:0::4
routes:
config:
- destination: ::/0
metric: 20550
next-hop-address: 8::9
next-hop-interface: veth0
table-id: 250
interfaces:
- name: veth0
type: ethernet
state: up
ipv6:
enabled: true
address:
- ip: 8::8
prefix-length: 64
/tmp/nmstatelog/2021-10-11-18:25:57-859112499.0.log nmstatectl set dns6_static.yaml return 0
[18:26:00@hpe-dl380pgen8-02-vm-9 ~]0# nmstatectl show | yq3 r - dns-resolver
config:
search: []
server:
- '3000::'
- ::100
- 0:0:f::100
- 3001:db8:0:1:1:1:1:1
- 3001:db8::2:1
- 3001:db8::1
- 3002:0:0:1::1
- 3003:db8::1:0:0:1
- 3004:db8::1:0:0:1
- 3005:db8::1:0:0:1
- ::ffff:192.0.2.1
- ::ffff:192.0.2.2
- 3::4
running:
search:
- hpe2.lab.eng.bos.redhat.com
server:
- '3000::'
- ::100
- 0:0:f::100
- 3001:db8:0:1:1:1:1:1
- 3001:db8::2:1
- 3001:db8::1
- 3002:0:0:1::1
- 3003:db8::1:0:0:1
- 3004:db8::1:0:0:1
- 3005:db8::1:0:0:1
- ::ffff:192.0.2.1
- ::ffff:192.0.2.2
- 3::4
- 10.19.42.41
- 10.11.5.19
- 10.5.30.160
[18:26:21@hpe-dl380pgen8-02-vm-9 ~]0# cat /etc/resolv.conf
# Generated by NetworkManager
search hpe2.lab.eng.bos.redhat.com
nameserver 3000::
nameserver ::100
nameserver 0:0:f::100
# NOTE: the libc resolver may not support more than 3 nameservers.
# The nameservers listed below may not be recognized.
nameserver 3001:db8:0:1:1:1:1:1
nameserver 3001:db8::2:1
nameserver 3001:db8::1
nameserver 3002:0:0:1::1
nameserver 3003:db8::1:0:0:1
nameserver 3004:db8::1:0:0:1
nameserver 3005:db8::1:0:0:1
nameserver 192.0.2.1
nameserver 192.0.2.2
nameserver 3::4
nameserver 10.19.42.41
nameserver 10.11.5.19
nameserver 10.5.30.160
2. DNS with DHCPv6(auto-dns=false):
[18:16:24@hpe-dl380pgen8-02-vm-9 ~]0# nmstatectl set dns6.yaml
/tmp/nmstatelog/2021-10-11-18:16:29-569349971.log
Desired state applied:
---
dns-resolver:
config:
server:
- 3000:0000:0000:0000:0000:0000:0000:0000
- 0000:0000:0000:0000:0000:0000:0000:0100
- 0000:0000:000F:0000:0000:0000:0000:0100
- 3001:db8::1:1:1:1:1
- 3001:db8:0:0:0:0:2:1
- 3001:db8::0:1
- '3002:0:0:1:0:0:0:1'
- 3003:dB8:0:0:1:0:0:1
- 3004:db8::1:0:0:1
- 3005:DB8:0:0:1::1
- 0:0:0:0:0:FFFF:192.0.2.1
- ::FFFF:192.0.2.2
- 03:0000:000:00:0::4
interfaces:
- name: veth0
type: ethernet
state: up
ipv6:
enabled: true
auto-dns: false
dhcp: true
/tmp/nmstatelog/2021-10-11-18:16:29-569349971.0.log nmstatectl set dns6.yaml return 0
[18:16:49@hpe-dl380pgen8-02-vm-9 ~]1# nmstatectl show | yq3 r - dns-resolver
config:
search: []
server:
- '3000::'
- ::100
- 0:0:f::100
- 3001:db8:0:1:1:1:1:1
- 3001:db8::2:1
- 3001:db8::1
- 3002:0:0:1::1
- 3003:db8::1:0:0:1
- 3004:db8::1:0:0:1
- 3005:db8::1:0:0:1
- ::ffff:192.0.2.1
- ::ffff:192.0.2.2
- 3::4
running:
search:
- hpe2.lab.eng.bos.redhat.com
server:
- 10.19.42.41
- 10.11.5.19
- 10.5.30.160
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (nmstate bug fix and enhancement update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHEA-2022:1772 |