cyclic dependencies, cloud-init.target has After=mutli-user.target
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cloud-init |
Invalid
|
Undecided
|
Unassigned |
Bug Description
cloud-init.target is ordered after mutli-user.target as it contains the After=mutli-
> # system configuration tasks have completed. To order a service after cloud-init
> # is done, add the directives as applicable:
> # After=cloud-
Following this advice will result in cyclic dependencies in systemd resolution if these directives are added to a unit which is WantedBy=
This could be resolved by either of the two:
* removing the advice that results in cyclic dependencies
* cloud-init.target depends on basic.target
Additional information
Cloud provider: any
That's why the statement contains the phrase "as applicable". If you have a unit that is "WantedBy= multi-user. target" then by definition, you don't want it running after cloud-init.target, so this advice isn't applicable to your use case. The advice is provided to inform a user how to order something after cloud-init has run, not how avoid all cyclic dependencies. Based on this, I'm going to set this to "Invalid", but if there's a deeper issue here that I'm not understanding, please do comment and set the status back to "New".