summaryrefslogtreecommitdiff
path: root/nova/virt
diff options
context:
space:
mode:
authorArtom Lifshitz <alifshit@redhat.com>2022-10-28 18:09:35 -0400
committerArtom Lifshitz <alifshit@redhat.com>2023-04-25 18:46:02 -0400
commit04ebae9dc01ebd24552b5aacd1a0f8b129013a9e (patch)
tree777e3837a46a591c5857ee4c860709a76356c241 /nova/virt
parent63d6ecd99b7dec06cf0cf8358b43b0d8fa607504 (diff)
downloadnova-04ebae9dc01ebd24552b5aacd1a0f8b129013a9e.tar.gz
Save cell socket correctly when updating host NUMA topology
Previously, in numa_usage_from_instance_numa(), any new NUMACell objects we created did not have the `socket` attribute. In some cases this was persisted all the way down to the database. Fix this by copying `socket` from the old_cell. Change-Id: I9ed3c31ccd3220b02d951fc6dbc5ea049a240a68 Closes-Bug: 1995153
Diffstat (limited to 'nova/virt')
-rw-r--r--nova/virt/hardware.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/nova/virt/hardware.py b/nova/virt/hardware.py
index c8f8bb2481..292536735a 100644
--- a/nova/virt/hardware.py
+++ b/nova/virt/hardware.py
@@ -2583,6 +2583,7 @@ def numa_usage_from_instance_numa(host_topology, instance_topology,
cpuset=host_cell.cpuset,
pcpuset=host_cell.pcpuset,
memory=host_cell.memory,
+ socket=host_cell.socket,
cpu_usage=0,
memory_usage=0,
mempages=host_cell.mempages,