xenial2bionic release upgrade loses DNS: empty resolv.conf
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
resolvconf (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Note: I'm not sure which package better represents this bug, so I used systemd, because /etc/resolv.conf had no "nameserver 127.0.0.53" entry after the upgrade.
I did a plain standard lxd deploy of xenial, using the default images. Upgraded it to the latest xenial packages, and then issued a release upgrade to bionic.
At the end of the upgrade process, rebooted, and when the system came back up, /etc/resolv.conf had no nameserver entries:
root@xenial2bio
# 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
# 127.0.0.53 is the systemd-resolved stub resolver.
# run "systemd-resolve --status" to see details about the actual nameservers.
That was its whole content. Before the upgrade, in xenial, it had:
root@xenial2bio
# 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.0.100.1
search lxd
systemd-resolve in the system after the upgrade to bionic was working just fine:
root@xenial2bio
Global
DNS Servers: 10.0.100.1
DNS Domain: lxd
DNSSEC NTA: 10.in-addr.arpa
Link 34 (eth0)
Current Scopes: none
LLMNR setting: yes
MulticastDNS setting: no
DNSSEC setting: no
DNSSEC supported: no
ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: systemd 237-3ubuntu7
ProcVersionSign
Uname: Linux 4.15.0-13-generic x86_64
ApportVersion: 2.20.9-0ubuntu4
Architecture: amd64
Date: Wed Apr 11 17:31:08 2018
MachineType: LENOVO 20HRCTO1WW
ProcEnviron:
TERM=xterm-
PATH=(custom, no user)
LANG=en_US.UTF-8
SHELL=/bin/bash
ProcKernelCmdLine: BOOT_IMAGE=
SourcePackage: systemd
UpgradeStatus: Upgraded to bionic on 2018-04-11 (0 days ago)
dmi.bios.date: 11/09/2017
dmi.bios.vendor: LENOVO
dmi.bios.version: N1MET41W (1.26 )
dmi.board.
dmi.board.name: 20HRCTO1WW
dmi.board.vendor: LENOVO
dmi.board.version: SDK0J40709 WIN
dmi.chassis.
dmi.chassis.type: 10
dmi.chassis.vendor: LENOVO
dmi.chassis.
dmi.modalias: dmi:bvnLENOVO:
dmi.product.family: ThinkPad X1 Carbon 5th
dmi.product.name: 20HRCTO1WW
dmi.product.
dmi.sys.vendor: LENOVO
affects: | systemd (Ubuntu) → resolvconf (Ubuntu) |
Changed in resolvconf (Ubuntu): | |
status: | New → Fix Committed |
tags: | added: id-5acd885138c94c5bb1f96431 |
Contents of /var/log of the upgraded container.