Populate the power parameter mac_address during enlistment

Bug #1887436 reported by Nick Niehoff
18
This bug affects 4 people
Affects Status Importance Assigned to Milestone
MAAS
Fix Released
Medium
Lee Trager

Bug Description

When a new machine pxe boots and goes through the provisioning phase MAAS should populate the mac_address field for the machines power-parameters if IPMI is discovered. The mac address can be found with ipmitool using:

ipmitool lan print

Related branches

Revision history for this message
Lee Trager (ltrager) wrote :

When a MAC address is given MAAS issues an arp request to find the IP to use as the power address[1]. Any given power address is then ignored. Using ARP to map a MAC address with an IP isn't considered as reliable as just using the IP. As MAAS uses the power address to determine which rack controller to issue power commands from having both can cause power failures as well.

Do you have a use case for using ARP over an IP address or is this more of a cosmetic thing?

[1] https://git.launchpad.net/maas/tree/src/provisioningserver/drivers/power/ipmi.py#n313

Changed in maas:
status: New → Incomplete
Revision history for this message
Lee Trager (ltrager) wrote :

Just realized I misread the code a bit. If both a MAC address and power address are set the MAC address will be ignored, not the power address. So we could fill in this information but it won't be used.

Revision history for this message
Nick Niehoff (nniehoff) wrote :

The use case for this we receive a new machine from a manufacturer (Dell in this case) we inbox the machine, rack, and power on. The machine pulls it's BMC IP from MAAS DHCP and PXE boots through the enlisting cycle. We may do that for a number of machines. The only information we know at this point from Dell is the service tag (serial number), MAC address of the BMC, and its location in the rack. For inventory purposes, we would like to be able to get the MAC and IP of the BMC from the API. We understand MAAS wouldn't use the MAC however it would be useful for our internal requirements.

Nick Niehoff (nniehoff)
summary: - [feature] MAAS should populate the power parameter mac_address during
- enlistment
+ Populate the power parameter mac_address during enlistment
Lee Trager (ltrager)
Changed in maas:
status: Incomplete → Triaged
importance: Undecided → Medium
milestone: none → 2.9.0b1
Revision history for this message
Lee Trager (ltrager) wrote :

We're planning on adding support for IPMI encryption this cycle. I'll try to squeeze this in as part of that work. In the meantime after commissioning runs you should be able to see all MAC addresses associated with the machine.

Lee Trager (ltrager)
Changed in maas:
milestone: 2.9.0b1 → 2.9.0b2
Revision history for this message
khb (khbkhb) wrote :

Please also publish the IP address. For background see support case 292765. Long story short, an entire rack was enlisted and then "accept-all". After that we adjusted the machine configuration to disallow "OS passthru" access to the iDRAC (Dell branded BMC/IPMI controller) which is implemented as a mutant form of usb NIC. From that point onward, we could no longer commission. The workaround was to delete them all, then adjust their configuration and re-enlist. one machine of 20 was inadvertently missed. It should have been trivial to diff the IP list from dhcp-lease-list (before we started the workaround process) as that produced the list of all 20 idracs. After the delete/re-enlist I attempted to dig out the IPMI addresses from "maas $ROLE machines read" but I was as unable to find the IPMI addresses as the mac addresses originally listed in this RFE. Since the GUI displays the IP address, surely that information is already handy ... just not provided (at least I couldn't find any of the 19 ip addresses I had handy in the output of 'maas admin machines read'

Lee Trager (ltrager)
Changed in maas:
milestone: 2.9.0b2 → 2.9.0b3
milestone: 2.9.0b3 → 2.9.0b4
Lee Trager (ltrager)
Changed in maas:
milestone: 2.9.0b4 → 2.9.0b7
Changed in maas:
assignee: nobody → Lee Trager (ltrager)
Lee Trager (ltrager)
Changed in maas:
milestone: 2.9.0b7 → 2.9.0b8
Lee Trager (ltrager)
Changed in maas:
milestone: 2.9.0b8 → 2.9.0rc1
Lee Trager (ltrager)
Changed in maas:
status: Triaged → In Progress
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.

Other bug subscribers

Remote bug watches

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