Skip to content

Circular dependency in cloud-init units #1583

Open
@wduncanfraser

Description

@wduncanfraser

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.

Screenshot 2025-01-07 at 17 51 47

Reproduction steps

  1. Configure photon OS cloud-init for VMware datasource
  2. 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.
Screenshot 2025-01-07 at 17 54 20
Screenshot 2025-01-07 at 17 54 36

It looks like the dependency cycle is created by sockets.target inherently depending on cloud-init-hotplugd.socket, which then depends on cloud-config.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions