Systemd circular dependency
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| azure-proxy-agent (Ubuntu) |
Fix Released
|
Undecided
|
Gauthier Jolly | ||
| Jammy |
Fix Committed
|
Undecided
|
Gauthier Jolly | ||
| Noble |
Fix Committed
|
Undecided
|
Gauthier Jolly | ||
| Plucky |
Fix Committed
|
Undecided
|
Gauthier Jolly | ||
Bug Description
[ Impact ]
* A systemd dependency cycle causes either cloud-init or the azure-proxy-agent service to be disabled automatically to resolve the conflict.
* On VM images, this behavior causes a catastrophic failure as cloud-init is responsible for setting up networking, users, and sshd.
[ Test Plan ]
* As described in this SRU exception: https:/
* The Microsoft team responsible for this agent will also use their own tests to verify the new version.
[ Where problems could occur ]
* Setting DefaultDependen
[ Original Description ]
The agent sets Before=
On Ubuntu 22.04 and Ubuntu 24.04. This causing cloud-init to be disabled (thus provisioning to fail) if the azure-proxy-agent is pre-installed on a VM image:
Sep 03 16:27:16 ubuntu systemd[1]: sysinit.target: Found ordering cycle on cloud-init.
Sep 03 16:27:16 ubuntu systemd[1]: sysinit.target: Found dependency on systemd-
Sep 03 16:27:16 ubuntu systemd[1]: sysinit.target: Found dependency on systemd-
Sep 03 16:27:16 ubuntu systemd[1]: sysinit.target: Found dependency on network-
Sep 03 16:27:16 ubuntu systemd[1]: sysinit.target: Found dependency on azure-proxy-
Sep 03 16:27:16 ubuntu systemd[1]: sysinit.target: Found dependency on basic.target/start
Sep 03 16:27:16 ubuntu systemd[1]: sysinit.target: Found dependency on sysinit.
Sep 03 16:27:16 ubuntu systemd[1]: sysinit.target: Job cloud-init.
| Changed in azure-proxy-agent (Ubuntu Jammy): | |
| status: | New → In Progress |
| Changed in azure-proxy-agent (Ubuntu Noble): | |
| status: | New → In Progress |
| Changed in azure-proxy-agent (Ubuntu Plucky): | |
| status: | New → In Progress |
| Changed in azure-proxy-agent (Ubuntu Jammy): | |
| assignee: | nobody → Gauthier Jolly (gjolly) |
| Changed in azure-proxy-agent (Ubuntu Noble): | |
| assignee: | nobody → Gauthier Jolly (gjolly) |
| Changed in azure-proxy-agent (Ubuntu Plucky): | |
| assignee: | nobody → Gauthier Jolly (gjolly) |
| Changed in azure-proxy-agent (Ubuntu): | |
| assignee: | nobody → Gauthier Jolly (gjolly) |
| description: | updated |

This bug was fixed in the package azure-proxy-agent - 1.0.30-0ubuntu5
---------------
azure-proxy-agent (1.0.30-0ubuntu5) questing; urgency=medium
* d/p/fix- systemd- deps-cycle. patch: fix dependency cycle in the unit file. cies=no to remove the dependency on basic.target
Use DefaultDependen
(LP: #2122345).
-- Gauthier Jolly <email address hidden> Mon, 08 Sep 2025 10:26:17 +0200