live-migration failed due to invalid value of cpu set
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
In Progress
|
Undecided
|
Eli Qiao |
Bug Description
Traceback (most recent call last):
File "/usr/local/
timer()
File "/usr/local/
cb(*args, **kw)
File "/usr/local/
waiter.
File "/usr/local/
result = function(*args, **kwargs)
File "/opt/stack/
instance=
File "/usr/local/
six.
File "/opt/stack/
CONF.
File "/usr/local/
result = proxy_call(
File "/usr/local/
rv = execute(f, *args, **kwargs)
File "/usr/local/
six.reraise(c, e, tb)
File "/usr/local/
rv = meth(*args, **kwargs)
File "/usr/lib/
if ret == -1: raise libvirtError ('virDomainMigr
libvirtError: Invalid value '0-15' for 'cpuset.cpus': Invalid argument
Reproduce steps:
there are 2 compute hosts:
hostA: 16 cpu
hostB: 4cpu
1. create an instance test1 (which run on hostA)
2. do live migration on test1 from hostA to hostB
Expected result:
test1 live migrate to hostB
Actual result:
failed due to cpu set invalid.
findings:
workaround is set vcpu_pin_set = "0-3" on hostA's nova.conf default section.
Changed in nova: | |
assignee: | nobody → Eli Qiao (taget-9) |
I experience the same behavior on a system z (arch = s390x) environment.
host A: 2 CPUs (all online)
host B: 4 CPUs (all online)
Launched from image with an "instances_path" which is backed by a shared storage.
The mentioned workaround (in my case vcpu_pin_set = "0-1") works for me too.
The status of the nova code: usage_audit_ log tests between V2 and V2.1"
$ git log --oneline -n10
bf70df2 Merge "neutronv2: only create client once when adding/removing fixed IPs"
ad329b0 Merge "libvirt: remove volume_drivers config param"
563af55 Merge "Cancel all waiting events during compute node shutdown"
cd24e14 Merge "Merge baremetal_nodes func tests between V2 and V2.1"
6c1b8e0 Merge "Share V2 and V2.1 tenant-networks functional tests"
a175a07 Merge "Merge sec grp default rules tests between V2 and V2.1"
983543c Merge "Merge instance_
7e77ee3 Merge "Share V2 and V2.1 hosts functional tests"
300f1fc Merge "Share migrations tests between V2 and V2.1"
9b674fc Merge "Merging instance_actions tests between V2 and V2.1"
A side node: For this platform I had to use this patch https:/ /review. openstack. org/#/c/ 166130/