maas-cli node new/update power_parameters format for virsh is inconsistent
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Won't Fix
|
Low
|
Unassigned |
Bug Description
ref: https:/
According to the maas docs you can provision a node like so:
new architecture=
and update the configuration like so:
maas-cli maas node update <system_id> \
power_type="ipmi" \
power_
power_
power_
So it stands to reason that you should be able to combine all of that
from "new", and you can.
maas-cli maas nodes new architecture=
*but* if you try add the additional power params to it's logical conclusion, using the example, it won't work.
maas-cli doesn't acknowledge power_user for the virsh power_type. Also from the example, I'm led to believe
that the power driver field should be "power_driver", nope it's just driver.
After some searching, I found the culprit, src/maasserver/
POWER_
[
(
(
(
],
It doesn't line up with the power handling code, which users power_user and power_driver
throughout.
Everything else in power_parameters.py follows the power_ pattern.
POWER_
[
(
),
(
(
(
],
So lets normalize the interface, see attached branch, tested in place.
ubuntu@pluton:~$ maas-cli maas nodes new architecture=
{
"status": 1,
"macaddress
{
}
],
"netboot": true,
"hostname": "fringe",
"power_type": "virsh",
"system_id": "node-eccf979e-
"architecture": "amd64/generic",
"tag_names": [],
"resource_uri": "/MAAS/
}
A check of the web interface confirms that all the values were populated and the VM
is commissioned successfully.
Related branches
- Raphaël Badin (community): Disapprove
-
Diff: 16 lines (+3/-2)1 file modifiedsrc/maasserver/power_parameters.py (+3/-2)
Changed in maas: | |
importance: | Undecided → Low |
status: | New → Triaged |
tags: | added: power |
Changed in maas: | |
status: | Triaged → Won't Fix |