-
Notifications
You must be signed in to change notification settings - Fork 881
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
status: treat SubState=running and MainPID=0 as service exited
status: treat SubState=running and MainPID=0 as service exited Avoid cloud-init status --wait blocking indefinitely on systemd status SubState=running and MainPID=0 condition for cloud-init systemd services. When daemons are spawned by a systemd unit in the unified hierarchy, long-lived processes or daemons launched by the systemd unit will be tracked in the cgroup/slice. As long as spawned daemons of processes live, the systemd tooling will report the parent systemd unit as SubState=running instead of SubState=exited. This affected Ubuntu across the 23.04 -> 23.10 release boundary because a long-term patch to ignore cgroup status was dropped at systemd 252.5 which last existed in Ubuntu 23.04 (Lunar). Cloud-init status --wait checks MainPID == 0 when SubState=running as a secondary indicator the the executing process of the boot stage has completed despite any forked daemons. Additionally fix typo in puppet integration test name. Fixes GH-4373
- Loading branch information
1 parent
b669f31
commit f7a2c48
Showing
3 changed files
with
39 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters