-
Notifications
You must be signed in to change notification settings - Fork 908
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failure to launch 22.04 LXD container with cloud-init 23.3.3 #4676
Comments
Also happens with cloud-init 23.3.1.
Oddly that the same script was working perfectly a few days ago.... |
It seems to be a timing issue between the |
Running |
During `cloud-init status`, we check systemctl to ensure the status we're reporting is accurate. However, we can get an error from systemctl if dbus isn't ready yet. This commit will either ignore the error if we can assume that cloud-init is still running, or retry for a few seconds before giving up and keeping cloud-init's originally detected status. Fixes canonicalGH-4676
During `cloud-init status`, we check systemctl to ensure the status we're reporting is accurate. However, we can get an error from systemctl if dbus isn't ready yet. This commit will either ignore the error if we can assume that cloud-init is still running, or retry for a few seconds before giving up and keeping cloud-init's originally detected status. Fixes canonicalGH-4676
During `cloud-init status`, we check systemctl to ensure the status we're reporting is accurate. However, we can get an error from systemctl if dbus isn't ready yet. This commit will either ignore the error if we can assume that cloud-init is still running, or retry for a few seconds before giving up and keeping cloud-init's originally detected status. Fixes canonicalGH-4676
fix: Handle systemctl commands when dbus not ready During `cloud-init status`, we check systemctl to ensure the status we're reporting is accurate. However, we can get an error from systemctl if dbus isn't ready yet. This commit will either ignore the error if we can assume that cloud-init is still running, or retry until we get a proper response from systemctl. Fixes canonicalGH-4676
fix: Handle systemctl commands when dbus not ready During `cloud-init status`, we check systemctl to ensure the status we're reporting is accurate. However, we can get an error from systemctl if dbus isn't ready yet. This commit will either ignore the error if we can assume that cloud-init is still running, or retry until we get a proper response from systemctl. Fixes GH-4676
Bug report
During MAAS daily system-tests, we launch a 22.04 LXD container where we install MAAS and perform our tests. Starting from midnight yesterday, the container is failing to launch due to an error on this function: https://github.com/canonical/cloud-init/blob/main/cloudinit/cmd/status.py#L288-L295
Steps to reproduce the problem
Environment details
cloud-init logs
If we get a shell to the container after the error we receive the following result when running the command manually:
The text was updated successfully, but these errors were encountered: