cloud-init team mailing list archive
-
cloud-init team
-
Mailing list archive
-
Message #00493
major cloud-init breakage in distros using systemd
Hi :
We have filed an upstream ticket
https://github.com/canonical/cloud-init/issues/5930 .
`set_passwords` module, when run earlier from cloud-init network stage
(started by cloud-init.service) would make sshd service restart block
indefinitely. This in turn blocks the cloud-init network stage from starting.
The restart of sshd would be needed if there is a change in sshd config -
the restart would make sure that the config is effective. cloud-init unit file
is configured to start before sshd service (there is a `Before=sshd.service` in
the unit file). This cyclic dependency causes a deadlock and systemd waits
indefinitely for cloud-init service to start while cloud-init waits for sshd
to start.
This issue affects most distros using systemd.
At the bare minimum, e7d8328a0219b2b6 ("perf(set_passwords): Run
module in Network stage (#5395)") needs to be reverted from all
releases that have this change (24.2, 24.3 and 24.4). Please look into
this asap. CentOS, Fedora and RHEL will all be affected if they rebase
cloud-init to a version 24.2 and later.
Follow ups