Releasing fails with latest cloud-init on image 20241113
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Committed
|
High
|
Jacopo Rota | ||
3.4 |
Triaged
|
High
|
Unassigned | ||
3.5 |
Fix Committed
|
High
|
Unassigned | ||
cloud-init |
Fix Released
|
Unknown
|
|||
cloud-init (Ubuntu) |
Incomplete
|
Undecided
|
Unassigned |
Bug Description
Hello,
It seems a bug was introduced in the `20241113` Jammy image and now when we release a server with disk erasing, after the wipe-disks script finishes successfully, cloud-init fails and causes the server to go into a release failed state.
Searching the internet, this issue seems to align with what I'm seeing: https:/
See attached logs, where cloud-init fails with `failed stage modules-final`.
I reviewed the cloud-config the server was getting and noticed the following:
```
power_state:
condition: test ! -e /tmp/block-poweroff
delay: now
mode: poweroff
timeout: 3600
```
If my understanding is correct, basically cloud-init finishes running the user script then powers off. After sending the power off signal, it starts the modules-final section which then is cancelled by the shutdown.
Related branches
- Jacopo Rota: Approve
-
Diff: 258 lines (+130/-9)5 files modifiedsrc/metadataserver/api.py (+10/-5)
src/metadataserver/api_twisted.py (+26/-0)
src/metadataserver/tests/test_api.py (+2/-3)
src/metadataserver/tests/test_api_twisted.py (+84/-1)
src/provisioningserver/events.py (+8/-0)
- MAAS Lander: Approve
- Stamatis Katsaounis: Approve
-
Diff: 258 lines (+130/-9)5 files modifiedsrc/metadataserver/api.py (+10/-5)
src/metadataserver/api_twisted.py (+26/-0)
src/metadataserver/tests/test_api.py (+2/-3)
src/metadataserver/tests/test_api_twisted.py (+84/-1)
src/provisioningserver/events.py (+8/-0)
Changed in cloud-init: | |
status: | Unknown → New |
Changed in cloud-init: | |
status: | New → Fix Released |
tags: | added: bug-council |
Changed in maas: | |
status: | Invalid → Triaged |
importance: | Undecided → High |
milestone: | none → 3.6.0 |
Changed in maas: | |
assignee: | nobody → Jacopo Rota (r00ta) |
status: | Triaged → In Progress |
Changed in maas: | |
status: | In Progress → Fix Committed |
since this is a bug in cloud init I'm marking this as invalid