Link subnet on new machine
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
High
|
Björn Tillenius |
Bug Description
I am using MAAS 3.2 at the moment and I am trying to add existing (already provisioned) machines to migrate to MAAS step by step.
I am adding existing machines with using "deployed: true" and "comission: false" via the API. So far so good. Next time I wanna re-install that specific machine I will do this task by using MAAS instead of using our old provisioning system.
So a will release that machine, the machine goes into the state "New" after this, which is fine. Since the machine wasn't commissioned via MAAS until that point I will now add the subnet to the primary interface.
In the UI that works fine during the state "New" but doing the same task via API I receive the error "409 Conflict (Cannot link subnet interface because the machine is not Ready, Allocated, or Broken.)".
I found the specific line on https:/
Does the UI not using the same API endpoints or why is it working?
Regards
Alexander
Related branches
- MAAS Lander: Approve
- Alberto Donato: Approve
-
Diff: 35 lines (+4/-2)2 files modifiedsrc/maasserver/api/interfaces.py (+3/-2)
src/maasserver/api/tests/test_interfaces.py (+1/-0)
tags: | removed: bug-council |
Changed in maas: | |
assignee: | nobody → Björn Tillenius (bjornt) |
status: | Triaged → In Progress |
Changed in maas: | |
status: | In Progress → Fix Committed |
Changed in maas: | |
milestone: | 3.3.0 → 3.3.0-beta3 |
Changed in maas: | |
status: | Fix Committed → Fix Released |
Tested that patch on my instance, "works on my machine".