juju bootstrap of a manual cloud erases dns configuration from machine

Bug #1905324 reported by Camille Rodriguez
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Juju

Bug Description

Setup :
With terraform, I created vms in Azure. Them, I ssh into one of them and bootstrap a manual cloud.

The problem is that juju wipes the dns configuration in systemd-resolve. Before the bootstrap action, my systemd-resolve status shows a list of 4 dns servers, as well as a DNS domain. After launching the bootstrap, that information is removed from systemd-resolve and the bootstrap hangs at "Running machine configuration script...".

While it was hanging there, I confirmed in another terminal that the dns info was gone and that my vm was not able to resolve anythin anymore. A simple sudo apt update returns resolution errors.

To work around this, while the bootstrap was hanging, I set the dns back to its original value with systemd-resolve --set-dns="xx.xx.xx.x" --set-domain="my.domain.com" --interface="eth0" . This allowed the bootstrap to
continue normally.

I can confirm that this happens with juju 2.8.6/stable and 2.8.5 on bionic vms (ubuntu-18.04.5-latest in azure)

Tags: cpe-onsite
tags: added: cpe-onsite
description: updated
description: updated
Revision history for this message
Ian Booth (wallyworld) wrote :

juju doesn't directly change the systemd-resolve configuration as far as I am aware.

It does use an upstream library github.com/coreos/go-systemd to create/update service config for the juju agents and mongo.

More investigation needed to understand what is messing with the systemd resolve config.

Changed in juju:
milestone: none → 2.8.8
importance: Undecided → High
status: New → Triaged
Changed in juju:
milestone: 2.8.8 → 2.8.9
Changed in juju:
milestone: 2.8.9 → 2.8.10
Changed in juju:
milestone: 2.8.10 → 2.8.11
Revision history for this message
John A Meinel (jameinel) wrote :

downgrading this from Field High as there was a workaround and this hasn't come up again from anyone in the last 6 months.

Changed in juju:
importance: High → Medium
milestone: 2.8.11 → none
importance: Medium → High
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.