-
Notifications
You must be signed in to change notification settings - Fork 395
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ubuntu 20.04 apt update breaks DNS #429
Comments
Seems like this might be related to DNS resolution issue. On 20.04 machine on Azure:
On a 18.04 machine:
|
After a reboot, the resolv.conf is populated with the search domain and everything works.
|
Just deployed Ubuntu 20.04 LTS Gen 1 and Gen 2 VMs on Azure (single VM deployment that isn't part of a K8S deployment). Ubuntu 20.04 LTS Gen 1 Latest Image:
Ubuntu 20.04 LTS Gen 2 Latest Image:
|
Looking into it a bit further, the DNS entry in resolv.conf is removed after doing a dist-upgrade. Not sure what changed with Ubuntu recently. A reboot after dist-upgrade will re-populate the dns entry and things seems to work fine. |
@kkeshavamurthy are you able to repro the same thing on a simple Azure 20.04 VM not built through image-builder? |
Yup. Same issue on a vanilla Ubuntu 20.04 vm. dist-upgrade messes up resolve.conf |
Confirmed @kkeshavamurthy. Just did a repro and performed
Right now we need to narrow down which package is causing |
@CecileRobertMichon @kkeshavamurthy @anhvoms A normal |
An |
Alright I've managed to isolate what circumstances On Ubuntu, On the latest Ubuntu 20.04 images, @kkeshavamurthy reported that performing an I inspected which packages are upgradable to narrow down the culprit package. Two upgradable packages that were likely culprits were Upgrading Upgrading I deployed an old Ubuntu 18.04 LTS image (with an out-of-date This issue seems constrained to the latest Ubuntu 20.04 Gen 1 and Gen 2 images when // @CecileRobertMichon // @anhvoms |
I've further narrowed down the faulty upgrade. The symptom ( On an older Ubuntu 20.04 LTS Gen 1 VM Image:
On a recent Ubuntu 20.04 LTS Gen 1 VM Image:
Seems like upgrading from // @kkeshavamurthy // @CecileRobertMichon // @anhvoms |
@linuxelf001 Hey Rakesh, has upstream Canonical rolled out a |
Hi @johnsonshi. There is a new image (0.04.202011230) which has systemd (245.4-4ubuntu3.3). For old image, one workaround at this time is to reboot the VM before upgrading the systemd package. If reboot is done, then the DNS search entry is not touched in resolv.conf file. Issue is reported/discussed here - https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1902960. |
The new image seems to be working fine. I was able to build Ubuntu 20.04 VHD without hitting the DNS issue. @CecileRobertMichon +1 to turn CI for Ubuntu 20.04 back on. |
Awesome, @kkeshavamurthy want to open the PR? |
#426 disabled ubuntu 20.04 as it started failing due to apt updates failure. This issue is to track investigating and re-enabling it.
/assign
The text was updated successfully, but these errors were encountered: