"Power types" websocket api doesn't match "add chassis" api

Bug #1876855 reported by Caleb Ellis
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
MAAS
Fix Released
High
Dougal Matthews

Bug Description

According to the general.power_types websocket api, the following power types are possible for add chassis:
apc, dli, hmc, lxd, moonshot, mscm, msftocs, nova, recs_box, redfish, rsd, sm15k, ucsm, virsh, vmware

According to the add chassis http api, these are possible:
mscm, msftocs, powerkvm, recs_box, seamicro15k, ucsm, virsh, vmware

They should be aligned so in the UI we can render he power types + power parameters dynamically.

Things to note: powerkvm is missing from general.power_types and SeaMicro 15000 is returned from the websocket as sm15k but the add chassis api expects seamicro15k.

Related branches

tags: removed: blocking-ui
Alberto Donato (ack)
Changed in maas:
importance: Undecided → High
status: New → Triaged
Changed in maas:
assignee: nobody → Dougal Matthews (d0ugal)
Revision history for this message
Björn Tillenius (bjornt) wrote :

Looking at the code, maasserver.models.bmc.BMC.scope_power_parameters makes use of the chassis parameter to indicate that the powerdriver can manage multiple nodes.

So all the power driver that current have chassis=True need to keep having it. We probably need another field (e.g. add_chassis) to indicate that a power driver can probe and enlist the machines it manages.

add_chassis should be False by default, but True for all the ones that the chassis http API accepts (and that should be changed to check the add_chassis attribute rather than having a hard coded list)

Alberto Donato (ack)
Changed in maas:
milestone: 2.8.0b4 → 2.8.0rc1
Dougal Matthews (d0ugal)
Changed in maas:
status: Triaged → In Progress
Alberto Donato (ack)
Changed in maas:
milestone: 2.8.0rc1 → 2.8.0
Alberto Donato (ack)
Changed in maas:
milestone: 2.8.0rc3 → 2.9.0b1
Changed in maas:
status: In Progress → Fix Committed
Lee Trager (ltrager)
Changed in maas:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.