KeyError: 'mac-pxe' from cluster-genesis

Bug #1648443 reported by Samuel Matzek
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
open-power-ref-design
Fix Released
Undecided
Unassigned

Bug Description

While running cluster-genesis the following error was received:

PLAY [container/inv_add_pxe_ports.yml] *****************************************

TASK [command] *****************************************************************
changed: [deployer]

TASK [command] *****************************************************************
fatal: [deployer]: FAILED! => {"changed": true, "cmd": ["/home/deployer/cluster-genesis/deployenv/bin/python", "/home/deployer/cluster-genesis/scripts/python/inv_add_pxe_ports.py", "/home/deployer/cluster-genesis/config.yml", "/home/deployer/cluster-genesis/inventory.yml", "/var/lib/misc/dnsmasq.leases", "info"], "delta": "0:00:02.295341", "end": "2016-12-07 22:54:43.708504", "failed": true, "rc": 1, "start": "2016-12-07 22:54:41.413163", "stderr": "Traceback (most recent call last):\n File \"/home/deployer/cluster-genesis/scripts/python/inv_add_pxe_ports.py\", line 79, in <module>\n dhcp_leases_file, log_level, inv_file, cfg_file)\n File \"/home/deployer/cluster-genesis/scripts/python/inv_add_pxe_ports.py\", line 47, in __init__\n for rack, mac, ip in inv.yield_node_pxe():\n File \"/home/deployer/cluster-genesis/scripts/python/lib/inventory.py\", line 348, in yield_node_pxe\n node[INV_MAC_PXE],\nKeyError: 'mac-pxe'", "stdout": "", "stdout_lines": [], "warnings": []}

In messaging with development it may be related to this:

"From a code perspective, that means that there is one or more PXE port for which the corresponding client MAC address was not returned when querying the management switch.

From the inventory.yml file you can see it affected the controller nodes, PXE ports 2, 4 and/or 6.
"

It contains a code stack with a non-helpful message. If this is a code issue it needs to be fixed, if it is a user error or hardware blip it needs a better error message.

The code should be updated to check for missing MACs and the port(s) and nodes should be called out in a clear error message so the user can check cables, check system states, etc.

Revision history for this message
Jay Carman (jaywcarman) wrote :
Changed in open-power-ref-design:
status: New → 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.