MaaS API ignores osystem and distro parameters
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Committed
|
Medium
|
Stamatis Katsaounis |
Bug Description
I am trying to call the MAAS API to deploy an OS to a system, but regardless of what I use as the "osystem" and "distro" params, the server appears to ignore them and report that the selected deployment OS is Ubuntu, which of course doesn't support VMFS6.
The API POST request is:
http://{{maas-
The response body is:
{"storage": ["Mount the root '/' filesystem to be able to deploy this node.", "This node cannot be deployed because the selected deployment OS, ubuntu, does not support VMFS6."]}
If I do a GET on api/2.0/
{
"id": 29,
"type": "Uploaded",
"name": "esxi/7.0",
"architecture": "amd64/generic",
"resource_uri": "/MAAS/
"subarches": "generic",
"title": "ESXi 7.0"
}
Other POST requests like op=release have worked fine.
MAAS version: 2.9.2 (9165-g.c3e7848d1)
Related branches
- MAAS Lander: Approve
- Jack Lloyd-Walters: Approve
-
Diff: 84 lines (+9/-10)4 files modifiedsystemtests/tests_per_machine/test_ephemeral_deployment.py (+1/-2)
systemtests/tests_per_machine/test_hardware_sync.py (+2/-4)
systemtests/tests_per_machine/test_machine.py (+5/-3)
systemtests/utils.py (+1/-1)
- Jack Lloyd-Walters: Approve
- MAAS Lander: Approve
-
Diff: 18 lines (+2/-3)1 file modifiedsrc/maasserver/api/machines.py (+2/-3)
Changed in maas: | |
status: | Invalid → Triaged |
assignee: | nobody → Stamatis Katsaounis (skatsaounis) |
Changed in maas: | |
status: | Triaged → In Progress |
Changed in maas: | |
importance: | Undecided → Medium |
milestone: | none → 3.5.0 |
Changed in maas: | |
status: | In Progress → Fix Committed |
I have tried with another non-Ubuntu OS and get the same result.
http://{{maas- url}}/MAAS/ api/2.0/ machines/ 8qtcnf/ ?op=deploy& osystem= centos& distro= centos70
returns the following (noting that it refers to ubuntu as the selected deployment OS):
{
"storage": [
"Mount the root '/' filesystem to be able to deploy this node.",
"This node cannot be deployed because the selected deployment OS, ubuntu, does not support VMFS6."
]
}
If I use a flat storage layout on that machine instead of VMFS6, the deploy call works, but deploys Ubuntu...