Live migration to different host returns complete but nothing has happened
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Expired
|
Undecided
|
Unassigned |
Bug Description
I created a server group with anti-affinity policy:
$ os server group create test-group --policy anti-affinity -fvalue -cid
10573804-
Created four servers as members:
$ os server create --flavor $FLAVOR \
Chose one server randomly and tried to live-migrate it to a host hosting another member of the group:
$ os server group show 10573804-
tr -d ' ' | tr , '\n' | \
xargs -n1 -P0 openstack server show -fvalue -cOS-EXT-
HOST1
HOST2
HOST3
HOST4
$ os server show 2edd275c-
HOST1
$os --os-compute-
server migrate --host HOST2 \
Complete
$ os server show 2edd275c-
HOST1
This is fairly misleading since nothing actually happens (rightfully), but the migrate commands doesn't give any indication of that fact.
The environment:
$ dpkg -l | grep nova
ii python-novaclient 2:3.3.1-2ubuntu1 all client library for OpenStack Compute API - Python 2.7
ii python3-novaclient 2:3.3.1-2ubuntu1 all client library for OpenStack Compute API - 3.x
Using QEMU hypervisor with KVM enabled:
$ qemu-system-x86_64 --version
QEMU emulator version 2.11.1(Debian 1:2.11+
Nova versions on the compute:
$ dpkg-query -l | grep nova
ii nova-common 2:17.0.
ii nova-compute 2:17.0.
ii nova-compute-kvm 2:17.0.
ii nova-compute-
ii python-nova 2:17.0.
ii python-novaclient 2:9.1.1-
Changed in nova: | |
status: | New → Incomplete |
What is the actual state of the migration?
This smells more like an openstackclient bug than a nova bug if I'm honest.
$ openstack server migration list --instance 2edd275c- 9f60-4191- a295-aaa0354f27 b2
https:/ /docs.openstack .org/python- openstackclient /latest/ cli/command- objects/ server- migration. html#server- migration- list