[2.3] API allows "deploying" a machine that's already deployed
Bug #1722406 reported by
Andres Rodriguez
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
Critical
|
Björn Tillenius |
Bug Description
I had a machine that was in "Deployed" and then I attempted to deploy it via the API by mistake:
ubuntu@maas00:~$ sudo maas admin machine deploy rp86gd install_rackd=True
Success.
Machine-readable output follows:
{
"hwe_kernel": "ga-16.04",
"volume_
"special_
"disable_ipv4": false,
"architecture": "amd64/generic",
"boot_disk": {
"used_for": "GPT partitioned with 2 partitions",
[...]
But when I try to release it, there's a power action in progress
Related branches
~bjornt/maas:bug-1722406-already-deployed
Merged
into
maas:master
- MAAS Lander: Needs Fixing
- Andres Rodriguez (community): Approve
- MAAS Lander: Pending (unittests) requested
-
Diff: 200 lines (+37/-15)3 files modifiedsrc/maasserver/api/machines.py (+6/-0)
src/maasserver/api/tests/test_machine.py (+31/-14)
src/maasserver/node_status.py (+0/-1)
Changed in maas: | |
milestone: | none → 2.3.0beta3 |
importance: | Undecided → Critical |
status: | New → Triaged |
Changed in maas: | |
assignee: | nobody → Björn Tillenius (bjornt) |
Changed in maas: | |
status: | Triaged → In Progress |
Changed in maas: | |
status: | In Progress → Fix Committed |
Changed in maas: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.