[2.4, bionic] /etc/resolv.conf not configured correctly in Bionic, leads to no DNS resolution
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cloud-init |
Fix Released
|
Medium
|
Ryan Harper |
Bug Description
When deploying Bionic, /etc/resolv.conf is not configured correctly, which leads to no DNS resolution. In the output below, you will see that netplan config is correctly to the 10.90.90.1 nameserver, but in resolv.conf that's a local address.
Resolv.conf should really be configured to use the provided DNS server(s). That said, despite that fact, DNS resolution doesn't work with the local address.
Bionic
------
ubuntu@node01:~$ cat /etc/netplan/
# This file is generated from information provided by
# the datasource. Changes to it will not persist across an instance.
# To disable cloud-init's network configuration capabilities, write a file
# /etc/cloud/
# network: {config: disabled}
network:
version: 2
ethernets:
enp0s25:
match:
mtu: 1500
- 10.90.90.1
- maaslab
- maas
bridges:
br0:
- 10.90.90.3/24
- enp0s25
ubuntu@node01:~$ cat /etc/resolv.conf
# This file is managed by man:systemd-
#
# 127.0.0.53 is the systemd-resolved stub resolver.
# run "systemd-resolve --status" to see details about the actual nameservers.
nameserver 127.0.0.53
search maaslab maas
ubuntu@node01:~$ ping google.com
ping: google.com: Temporary failure in name resolution
[...]
ubuntu@node01:~$ sudo vim /etc/resolv.conf
ubuntu@node01:~$ cat /etc/resolv.conf
# This file is managed by man:systemd-
#
# 127.0.0.53 is the systemd-resolved stub resolver.
# run "systemd-resolve --status" to see details about the actual nameservers.
nameserver 10.90.90.1
search maaslab maas
ubuntu@node01:~$ ping google.com
PING google.com (172.217.0.174) 56(84) bytes of data.
64 bytes from mia09s16-
64 bytes from mia09s16-
=======
Xenial
=======
ubuntu@node05:~$ cat /etc/network/
# This file is generated from information provided by
# the datasource. Changes to it will not persist across an instance.
# To disable cloud-init's network configuration capabilities, write a file
# /etc/cloud/
# network: {config: disabled}
auto lo
iface lo inet loopback
dns-nameservers 10.90.90.1
dns-search maaslab maas
auto enp0s25
iface enp0s25 inet static
address 10.90.90.162/24
gateway 10.90.90.1
mtu 1500
ubuntu@node05:~$ cat /etc/resolv.conf
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 10.90.90.1
search maaslab maas
Related bugs:
* bug 1774540: bionic: DNS search domains lost from cloud-init to netplan
Related branches
- Chad Smith: Abstain
- Server Team CI bot: Approve (continuous-integration)
- Scott Moser: Approve
-
Diff: 174 lines (+21/-79)2 files modifiedcloudinit/net/netplan.py (+9/-16)
tests/unittests/test_net.py (+12/-63)
description: | updated |
summary: |
- [2.4, bionic] /etc/resolv.conf not configured correctly in Bionic + [2.4, bionic] /etc/resolv.conf not configured correctly in Bionic, leads + to no DNS resolution |
Changed in maas: | |
importance: | Undecided → Low |
status: | Invalid → Triaged |
Changed in maas: | |
importance: | Low → High |
assignee: | nobody → Mike Pontillo (mpontillo) |
milestone: | none → 2.4.0alpha2 |
Changed in maas: | |
status: | Triaged → Won't Fix |
assignee: | Mike Pontillo (mpontillo) → nobody |
milestone: | 2.4.0alpha2 → none |
Changed in maas: | |
importance: | High → Medium |
status: | Won't Fix → Triaged |
importance: | Medium → Low |
milestone: | none → 2.4.x |
no longer affects: | maas |
no longer affects: | nplan (Ubuntu) |
no longer affects: | systemd (Ubuntu) |
Changed in cloud-init: | |
status: | New → Confirmed |
importance: | Undecided → Medium |
assignee: | nobody → Ryan Harper (raharper) |
description: | updated |
This is pretty critical to MAAS as this yield Bionic deployments without DNS resolution.