Bug 1379359 - Multi-Ephemeral instance Live Block Migration fails silently
Summary: Multi-Ephemeral instance Live Block Migration fails silently
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-nova
Version: 5.0 (RHEL 7)
Hardware: All
OS: Linux
medium
medium
Target Milestone: async
: 5.0 (RHEL 7)
Assignee: Sahid Ferdjaoui
QA Contact: Prasanth Anbalagan
URL:
Whiteboard:
Depends On:
Blocks: 1381530 1381533 1381534 1387260 1396251
TreeView+ depends on / blocked
 
Reported: 2016-09-26 13:03 UTC by VIKRANT
Modified: 2020-01-17 15:58 UTC (History)
11 users (show)

Fixed In Version: openstack-nova-2014.1.5-32.el7ost
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1381530 1381533 1381534 1396251 (view as bug list)
Environment:
Last Closed: 2017-01-19 13:30:18 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Launchpad 1628449 0 None None None 2016-09-28 10:24:45 UTC
Red Hat Knowledge Base (Solution) 2658331 0 None None None 2016-09-26 13:04:18 UTC
Red Hat Product Errata RHBA-2017:0151 0 normal SHIPPED_LIVE openstack-nova bug fix advisory 2017-01-19 18:21:12 UTC

Description VIKRANT 2016-09-26 13:03:49 UTC
Description of problem:
Multi-Ephemeral instance Live Block Migration fails silently


Version-Release number of selected component (if applicable):
RHEL OSP 9 (Able to reproduce in test lab)
other version likely impacted.

How reproducible:
Everytime. 

Steps to Reproduce:
1) Created flavor with two ephemeral support.

~~~
[root@allinone9 ~(keystone_admin)]# nova flavor-create 2ephemeral-disks 6 512 1 1 --ephemeral 2
~~~

2) Spawned instance using created flavor.

~~~
[root@allinone9 ~(keystone_admin)]# nova boot --flavor 2ephemeral-disks --image cirros --ephemeral size=1 --ephemeral size=1 internal1
~~~

3) Instance spawned successfully.

~~~
[root@allinone9 ~(keystone_admin)]# nova list --field name,status,host | grep -i internal1
| 08619d2d-e3a2-4f67-a959-33cfbc08d153 | internal1 | ACTIVE | allinone9 |
~~~

4) Verifying that two extra ephemeral disks are connected with instance. 

~~~
[root@allinone9 ~(keystone_admin)]# virsh domblklist 4
Target     Source
------------------------------------------------
vda        /var/lib/nova/instances/08619d2d-e3a2-4f67-a959-33cfbc08d153/disk
vdb        /var/lib/nova/instances/08619d2d-e3a2-4f67-a959-33cfbc08d153/disk.eph0
vdc        /var/lib/nova/instances/08619d2d-e3a2-4f67-a959-33cfbc08d153/disk.eph1
~~~

5) Tried to perform the block migration but it end with same error which you have seen.

[root@allinone9 ~(keystone_admin)]# nova live-migration 08619d2d-e3a2-4f67-a959-33cfbc08d153 compute1-9 --block-migrate

~~~
From : /var/log/nova/nova-compute.log

2016-09-26 08:53:12.033 3958 ERROR nova.compute.manager [req-f24d49f7-4d8e-4683-bcc0-952254764fca b09d7a1af46d42398c79a1dc0da02954 ca23990ed6c846b0b8d588fb5e304aeb - - -] [instance: 08619d2d-e3a2-4f67-a959-33cfbc08d153] Pre live migration failed at compute1-9

2016-09-26 08:53:12.033 3958 ERROR nova.compute.manager [instance: 08619d2d-e3a2-4f67-a959-33cfbc08d153] 
2016-09-26 08:53:12.033 3958 ERROR nova.compute.manager [instance: 08619d2d-e3a2-4f67-a959-33cfbc08d153] FlavorDiskSmallerThanImage: Flavor's disk is too small for requested image. Flavor disk is 1073741824 bytes, image is 2147483648 bytes.
~~~


Actual results:
Migration getting failed.

Expected results:
Migration should get successfully completed. 

Additional info:

Comment 4 Sahid Ferdjaoui 2016-09-28 10:24:46 UTC
It's a valid issue which affects upstream too. I have reported the bug and will push a fix soon. That fix should be backportable.

Can you ensure to correctly set the version used ? In all case we are probably going to backport the fix on all of our supported releases so we will have to create BZ for each release of RHOS.

Comment 20 errata-xmlrpc 2017-01-19 13:30:18 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHBA-2017-0151.html


Note You need to log in before you can comment on or make changes to this bug.