-
Notifications
You must be signed in to change notification settings - Fork 83
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
Reboot hangs for 10 minutes when VM does not have external IP address #483
Comments
@jpalermo thanks for reporting, issue is because agent tries to flush buffered logs to cloud logging on exit, and if there's no network it blocks. Unfortunately cloud logging library blocks indefinitely retrying to flush these logs so we see the hang until systemd timeout (10 mins). Issue was fixed in In the meantime if this is impacting, you can disable the cloud-logging on guest-agent to prevent this from happening again. Setting |
Thanks for the info. We tried to disable cloud logging but ran into the same issue. Maybe we're doing something wrong though. We modified
|
@jpalermo sorry for the late response. The configuration file looks fine. However, the agent needs to be restarted for any changes to take effect. After the initial restart, subsequent restarts should be quick. |
That's the configuration file we're building into the VM image, so it's there from boot up and we still see the problem. |
I missed the fact that Canonical has not picked the changes for We're working with Canonical on releasing new version soon, I'll update here once its available. |
Thanks for the update. We'll just pin back to the previous agent version for now if it starts causing us major problems. |
This is a stock Ubuntu 22.04 image on an e2.micro with no external IP that I ssh-ed onto and then ran
sudo reboot
VMs was using the latest package
20241011.01-0ubuntu1~22.04.0
sudo reboot
hangs for ~10 minutes before the system shuts down.This behavior was not seen on
20240716.00-0ubuntu1~22.04.0
.If you give the VM an ephemeral external IP address, the behavior is not seen.
Here is a syslog fragment with a grep for "google". The reboot happened at 22:20:04 but the guest-agent didn't finish shutting down until 22:30:05.
Full copy of the syslog is attached.
syslog.log
The text was updated successfully, but these errors were encountered: