[Bug 1997124] Re: Netplan/Systemd/Cloud-init/Dbus Race
James Falcon
1997124 at bugs.launchpad.net
Fri Jan 6 19:02:19 UTC 2023
** Changed in: cloud-init
Assignee: (unassigned) => James Falcon (falcojr)
** Changed in: cloud-init
Status: Triaged => In Progress
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to systemd in Ubuntu.
https://bugs.launchpad.net/bugs/1997124
Title:
Netplan/Systemd/Cloud-init/Dbus Race
Status in cloud-init:
In Progress
Status in systemd package in Ubuntu:
Confirmed
Bug description:
Cloud-init is seeing intermittent failures while running `netplan
apply`, which appears to be caused by a missing resource at the time
of call.
The symptom in cloud-init logs looks like:
Running ['netplan', 'apply'] resulted in stderr output: Failed to
connect system bus: No such file or directory
I think that this error[1] is likely caused by cloud-init running
netplan apply too early in boot process (before dbus is active).
Today I stumbled upon this error which was hit in MAAS[2]. We have
also hit it intermittently during tests (we didn't have a reproducer).
Realizing that this may not be a cloud-init error, but possibly a
dependency bug between dbus/systemd we decided to file this bug for
broader visibility to other projects.
I will follow up this initial report with some comments from our
discussion earlier.
[1] https://github.com/canonical/netplan/blob/main/src/dbus.c#L801
[2] https://discourse.maas.io/t/latest-ubuntu-20-04-image-causing-netplan-error/5970
To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-init/+bug/1997124/+subscriptions
More information about the foundations-bugs
mailing list