Open
Description
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
- Configure photon OS cloud-init for VMware datasource
- Use vSphere cloud-init based customizations when cloning
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.
It looks like the dependency cycle is created by sockets.target inherently depending on cloud-init-hotplugd.socket, which then depends on cloud-config.