-
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
cloud-init SIGTERM error #4404
Comments
From Journalctl, I found that after Cloud-init init-local, systemd triggers a systemd reload (which restarts the computer), but the network still starts up. And after starting the network (systemd-networkd-wait-online.service), systemd starts cloud-init.service, but the system still shuts down all services and reboots. At the end of the reboot process systemd-shutdown[1]: Sending SIGTERM to other processes... In the February release of Ubuntu 22.04 LTS. cloud-init init-local systemd starts a reload (reboot) of the system and also tries to start the network, but does not start the systemd-networkd-wait-online.service. So cloud-init.service is not running and is not receiving any SIGTERMs.
|
@kideg20 thank you for filing this bug and making cloud-init better. I have a couple of concens that I don't think are represented in this bug and I am unable to reproduce this on recent Ubuntu 22.04 Jammy with your provided MIME user-data. apt receiving a SIGTERM during early boot is something this is indicative of a separate process (possibly unattended-upgrades) generating that signal as cloud-init is trying to install/update packages. So, something outside of cloud-init is sending APT this signal, and/or forcing the system to reboot Also, cloud-init doesn't generally trigger a reboot of your system unless either Some questions and requests:
|
marking incomplete until we get a bit more information here or a reproducible procedure. thanks again. |
I am using VMware. And I create a virtual machine through terraform. With terraform i clone ova template with linux_options options:
If The difference between the old and new Ubuntu image are: 1.) On older Ubuntu 22.04 LTS systems, April 2023, networking did not start until the reboot was complete, and Cloud-init did not start until the reboot was complete. Cloud-init started after reboot and everything worked fine after reboot. 2.) in the latest version of Ubuntu (22.04 LTS from 08/28/2023), the network was able to start during the system reboot, and Cloud-init init was able to start before the reboot was completed. At the last stage of the reboot, it sends a SIGTERM to all processes. This causes Cloud-init to receive sigterm. |
@kideg20 thank you for filing this bug and the supplemental details that indicate you are running VMware. This looks conspicuosly like #4188 which was a change in open-vm-tools basically automatically triggers a reboot during provisioning stage after a 30 second timeout which prompted @vitality411 to file an upstream issue vmware/open-vm-tools#684 to track/improve this behavior change where possible. I'm guessing that is where your SIGTERMs are coming from. Does this symptom align with that upstream bug in your case? |
Duplicate of #4188 |
// |
Problem
When I run the
apt-get update,dist-upgrade or install
command for the first time, cloud-init fails with the error 'util.py[DEBUG]: Cloud-init 23.2.2-0ubuntu0~22.04.1 received SIGTERM, exiting...'*after sigterm cloud-init is restarted and continues to run, apt-get works fine.
Componetns
Ubuntu 22.04.3 LTS
jammy-server-cloudimg-amd64.ova https://cloud-images.ubuntu.com/jammy/current/jammy-server-cloudimg-amd64.ova 2023-08-28 22:40
/usr/bin/cloud-init 23.2.2-0ubuntu0~22.04.1
systemd 249 (249.11-0ubuntu3.9)
apt-get update Error :
apt-get install error:
cloud-config:
The text was updated successfully, but these errors were encountered: