redfish power driver tweaks

Bug #1860340 reported by Freddy
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MAAS
Fix Released
Medium
Freddy

Bug Description

After adding several Hewlett Packard Enterprise nodes to a 2.6 MaaS installation the following changes were required to the redfish power driver:

- In get_node_id, trim trailing slashes prior to running os.path.basename. HPE nodes returned Members items with a a trailing slash, e.g. '/redfish/v1/Systems/1/'. This resulted in a node id of an empty string.
- remove Action key from Power body. this key isn't in the redfish schema and is rejected with a 400 from HPE ILOs http://redfish.dmtf.org/schemas/v1/ComputerSystem.v1_4_0.yaml#/components/schemas/ComputerSystem
- in power_off, set_pxe_boot after issuing power_off command. this prevents setting pxe boot while server is in POST, which results in a 409 from HPE ILOs.

I've put these fixes together in a merge request, linked below. There are unit tests in the merge and I can confirm these changes have worked across a fleet of Cisco, Dell, and HPE out of band devices. Can someone please review this?

https://code.launchpad.net/~fwieffering/maas/+git/maas/+merge/377714

Related branches

Revision history for this message
Freddy (fwieffering) wrote :

The merge request now passes the maas-lander checks.

Changed in maas:
status: New → In Progress
importance: Undecided → Medium
assignee: nobody → Freddy (fwieffering)
Changed in maas:
milestone: none → next
status: In Progress → Fix Committed
Alberto Donato (ack)
Changed in maas:
milestone: next → 2.8.0b1
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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