process_lxd_resources converts numa_nodes dictionary to a list

Bug #1910473 reported by Lee Trager
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MAAS
Fix Released
High
Lee Trager
2.7
Fix Committed
High
Lee Trager
2.8
Fix Released
High
Lee Trager
2.9
Fix Released
High
Lee Trager

Bug Description

While testing the NodeDevices code in the CI I ran into a failure on our PPC64 machine. When I investigated I noticed that NUMA nodes are configured as 0, 1, 16, 17. _process_lxd_resources processes the numa nodes as a dictionary but converts them into a list. update_node_network_information, update_node_physical_block_devices, and now update_node_devices process hardware and read the numa_node number from LXD and then access it by indexing numa_nodes. This only works when there are no gaps in the sequence. Keep numa_nodes as a dictionary fixes the issue.

This wasn't caught before because all network cards are on numa_node 1. Only PCIE bridges are used on numa_node 16 and 17.

Related branches

Changed in maas:
milestone: none → next
status: New → Fix Committed
Lee Trager (ltrager)
Changed in maas:
milestone: next → 2.9.x
milestone: 2.9.x → next
Changed in maas:
milestone: next → none
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.