Need a proper message when live migration of an instance with config drive fails
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mirantis OpenStack |
Won't Fix
|
Low
|
MOS Nova | ||
10.0.x |
Won't Fix
|
Low
|
MOS Nova |
Bug Description
In accordance with https:/
The bug reported here has been reproduced on env with 3 controllers, 2 computes (Cinder LVM):
[root@nailgun ~]# shotgun2 short-report
cat /etc/fuel_build_id:
128
cat /etc/fuel_
128
cat /etc/fuel_release:
9.0
cat /etc/fuel_
liberty-9.0
rpm -qa | egrep 'fuel|astute|
fuel-release-
rubygem-
fuel-library9.
fuelmenu-
fuel-agent-
fuel-ui-
fuel-migrate-
nailgun-
fuel-misc-
shotgun-
python-
fuel-bootstrap
fuel-provision
fuel-mirror-
fuel-openstack
fuel-notify-
fuel-setup-
python-
network-
fuel-9.
fuel-utils-
fuel-nailgun-
fuel-ostf-
[root@nailgun ~]#
Steps to reproduce:
1. On every compute node, check that the ‘config_
2. Boot an ephemeral instance with config drive, e.g.:
nova boot --config-drive true --image Ubuntu --key-name <keyname> --flavor m1.small --nic net-id=$(neutron net-list | awk '/admin_
3. Against vm’s console, check that configuration drive is available and contains all data carried to it during instance creation:
sudo -i
mkdir -p /mnt/config
mount /dev/$(lsblk | grep rom | awk '{print $1}') /mnt/config
cd /mnt/config/
/mnt/config/
meta_data.json network_data.json user_data vendor_data.json
4. Initiate block LM of the instance to another compute node:
nova live-migration --block-migrate vm1 <another_compute>
Expected result:
Live-migration is terminated with displaying an error message like 'ERROR (BadRequest): Live migration isn't supported for Config Drive in current libvirt version. (HTTP 400)'
Actual result:
Launched live-migration command doesn't display no error messages, despite live-migration fails in fact:
root@node-1:~# nova live-migration --block-migrate vm1 node-5.
root@node-1:~# nova show vm1 | grep '\( OS-EXT-
| OS-EXT-
| status | ACTIVE |
root@node-1:~# nova instance-
+------
| Action | Request_ID | Message | Start_Time |
+------
| create | req-3166d05d-
| live-migration | req-ce91b564-
+------
root@node-1:~# nova instance-action vm1 req-ce91b564-
+------
| Property | Value |
+------
| action | live-migration |
| events | [{u'event': u'compute_
| | u'finish_time': u'2016-
| | u'result': u'Success', |
| | u'start_time': u'2016-
| | u'traceback': None}, |
| | {u'event': u'compute_
| | u'finish_time': u'2016-
| | u'result': u'Error', |
| | u'start_time': u'2016-
| | u'traceback': u' File "/usr/lib/
| | return function(self, context, *args, **kwargs) |
| | File "/usr/lib/
| | kwargs[
| | File "/usr/lib/
| | self.force_
| | File "/usr/lib/
| | six.reraise(
| | File "/usr/lib/
| | return function(self, context, *args, **kwargs) |
| | File "/usr/lib/
| | migrate_data) |
| | File "/usr/lib/
| | raise exception.
| | '}, |
| | {u'event': u'compute_
| | u'finish_time': u'2016-
| | u'result': u'Success', |
| | u'start_time': u'2016-
| | u'traceback': None}, |
| | {u'event': u'compute_
| | u'finish_time': u'2016-
| | u'result': u'Success', |
| | u'start_time': u'2016-
| | u'traceback': None}, |
| | {u'event': u'compute_
| | u'finish_time': u'2016-
| | u'result': u'Success', |
| | u'start_time': u'2016-
| | u'traceback': None}] |
| instance_uuid | 7150b9ec-
| message | Error |
| project_id | 11e5fbd94b21408
| request_id | req-ce91b564-
| start_time | 2016-03-
| user_id | ff89041386dd47f
+------
root@node-1:~#
Changed in mos: | |
importance: | Undecided → Low |
Moved to 10.0