There are some cases where None value is set to cpuset_reserved in
InstanceNUMATopology at _numa_fit_instance_cell() function in
hardware.py. However, libvirt driver treat cpuset_reserved value
as an iterate object when it constructs xml configuration.
To avoid a risk to get an error in libvirt driver, this patch adds
a check to see if the value is not None before adding the cpus
for emulator threads.
Reviewed: https:/ /review. openstack. org/539865 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=24d9e06ec68 dfd0ead9bc56ad1 86e7b4e0acd8fb
Committed: https:/
Submitter: Zuul
Branch: master
commit 24d9e06ec68dfd0 ead9bc56ad186e7 b4e0acd8fb
Author: Tetsuro Nakamura <email address hidden>
Date: Thu Feb 1 04:32:41 2018 +0900
add check before adding cpus to cpuset_reserved
There are some cases where None value is set to cpuset_reserved in ATopology at _numa_fit_ instance_ cell() function in
InstanceNUM
hardware.py. However, libvirt driver treat cpuset_reserved value
as an iterate object when it constructs xml configuration.
To avoid a risk to get an error in libvirt driver, this patch adds
a check to see if the value is not None before adding the cpus
for emulator threads.
Change-Id: Iab3d950c4f4138 118ac6a9fd98407 eaadcb24d9e
Closes-Bug: #1746674