-
Notifications
You must be signed in to change notification settings - Fork 694
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
Circular dependency in cloud-init units #1583
Comments
There was an upstream cloud-init fix canonical/cloud-init#5722 mentioned at https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/2081124 |
Thanks for pointing out this upstream fix! I pulled these changes into the cloud-init-hotplugd.socket systemd unit in my VM template, and after about 20 test provisions have not seen this issue occur again. It looks like once this version of cloud-init is pulled into photon, this bug should be resolved. |
This is the year of SRP. That groundwork unleashes many automation benefits. |
By default, in vanilla Photon this issue is not there. I doubt some other systemd unit file hosted in your system is causing this failure. |
Describe the bug
Using photonOS 5 (tested against most recent updates as of today) in VMware vSphere 8, we're seeing a dependency cycle in cloud-init that is causing VMs to randomly fail configuration/customization.
Reproduction steps
Expected behavior
Deployments consistently work. Instead, deployments randomly fail due to systemd detecting dependency cycles related to cloud-init.
Additional context
Logs show detection of circular dependencies, resulting in cloud-init and other services being disabled.
![Screenshot 2025-01-07 at 17 54 20](https://private-user-images.githubusercontent.com/579945/400952694-56957340-9325-4cdb-9d5b-52a885d6d6cb.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkxNzc2NjQsIm5iZiI6MTczOTE3NzM2NCwicGF0aCI6Ii81Nzk5NDUvNDAwOTUyNjk0LTU2OTU3MzQwLTkzMjUtNGNkYi05ZDViLTUyYTg4NWQ2ZDZjYi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjEwJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxMFQwODQ5MjRaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT00NDVlMTc0YzJjZDVmYmEwMWUwMmM2NmY3MTgyM2ZmZGY3OTI2ZTAzYThkZDZjZjMwMGEzZWM4ZWY3MWVhNTE1JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.10T1avrIPcThepmSmNfSCj9Z2ABBdEMbj9tTaLFZhmk)
![Screenshot 2025-01-07 at 17 54 36](https://private-user-images.githubusercontent.com/579945/400952696-8aecee05-d1eb-416b-8fdd-0d833f7bbe29.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkxNzc2NjQsIm5iZiI6MTczOTE3NzM2NCwicGF0aCI6Ii81Nzk5NDUvNDAwOTUyNjk2LThhZWNlZTA1LWQxZWItNDE2Yi04ZmRkLTBkODMzZjdiYmUyOS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjEwJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxMFQwODQ5MjRaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0zZjY3NDE5MzRiNDg5MzE1MDg2MTYxNmEwN2ZkNDliYWFhNjdmYzlmM2Y2YTZhZGE4ZTAzYjMxODNiNjliMmIwJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9._AsYrANkoyFY5yK-s4H6_v3-63uaAg5MvjaSsjZkw7k)
It looks like the dependency cycle is created by sockets.target inherently depending on cloud-init-hotplugd.socket, which then depends on cloud-config.
The text was updated successfully, but these errors were encountered: