[Bug 2081124] Re: systemd service dependency loop between cloud-init, NetworkManager and dbus
Chad Smith
2081124 at bugs.launchpad.net
Fri Sep 20 03:16:32 UTC 2024
The differences we are seeing between a working Desktop ubuntu image
with /var/log/installer/media-info 202408271 are that cloud-init
published 24.2 via SRU to the newer Noble image
In that SRU was a shift to when cloud-init-hotplugd.socket and cloud-
init-hotplugd.service units are ordered[1]
The change added:
- After=cloud-config.target to cloud-init-hotplugd.socket to allow starting hotplugd.socket earlier
and
- After=cloud-init.target to cloud-init-hotplugd.service to avoid attempting udev NIC hotplug events while cloud-init is still configuring the base instance.
We'll need further investigation tomorrow to determine the ordering cycles we are seeingin Desktop images w/ NetworkManager-wait-online.service here, and why on first boot the systemd unit being deleted is dbus.service yet in ephemeral environment (before first boot) it happens to be cloud-init-hotplugd.service.
[1] https://github.com/canonical/cloud-init/pull/5058
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to livecd-rootfs in Ubuntu.
https://bugs.launchpad.net/bugs/2081124
Title:
systemd service dependency loop between cloud-init, NetworkManager and
dbus
Status in OEM Priority Project:
New
Status in cloud-init package in Ubuntu:
New
Status in livecd-rootfs package in Ubuntu:
New
Bug description:
We got errors that some services like snapd and NetworkManager is not
started when running cloud-init or desktop, excerpt from journal
below:
Sep 13 12:37:41 localhost.localdomain systemd[1]: cloud-init.service: Found ordering cycle on NetworkManager-wait-online.service/start
Sep 13 12:37:41 localhost.localdomain systemd[1]: cloud-init.service: Found dependency on basic.target/start
Sep 13 12:37:41 localhost.localdomain systemd[1]: cloud-init.service: Found dependency on sockets.target/start
Sep 13 12:37:41 localhost.localdomain systemd[1]: cloud-init.service: Found dependency on cloud-init-hotplugd.socket/start
Sep 13 12:37:41 localhost.localdomain systemd[1]: cloud-init.service: Found dependency on cloud-config.target/start
Sep 13 12:37:41 localhost.localdomain systemd[1]: cloud-init.service: Found dependency on cloud-init.service/start
Sep 13 12:37:41 localhost.localdomain systemd[1]: cloud-init.service: Job NetworkManager-wait-online.service/start deleted to break ordering cycle starting with cloud-init.service/start
Sep 13 12:37:41 localhost.localdomain systemd[1]: NetworkManager.service: Found ordering cycle on dbus.service/start
Sep 13 12:37:41 localhost.localdomain systemd[1]: NetworkManager.service: Found dependency on basic.target/start
Sep 13 12:37:41 localhost.localdomain systemd[1]: NetworkManager.service: Found dependency on sockets.target/start
Sep 13 12:37:41 localhost.localdomain systemd[1]: NetworkManager.service: Found dependency on cloud-init-hotplugd.socket/start
Sep 13 12:37:41 localhost.localdomain systemd[1]: NetworkManager.service: Found dependency on cloud-config.target/start
Sep 13 12:37:41 localhost.localdomain systemd[1]: NetworkManager.service: Found dependency on cloud-init.service/start
Sep 13 12:37:41 localhost.localdomain systemd[1]: NetworkManager.service: Found dependency on NetworkManager.service/start
Sep 13 12:37:41 localhost.localdomain systemd[1]: NetworkManager.service: Job dbus.service/start deleted to break ordering cycle starting with NetworkManager.service/start
Related logs and service files are attached in sosreport.
Internal reference: NANTOU-473
To manage notifications about this bug go to:
https://bugs.launchpad.net/oem-priority/+bug/2081124/+subscriptions
More information about the foundations-bugs
mailing list