Bug 1380289
Summary: | [Backport] Block based migration doesn't work for instances that have a volume attached | |||
---|---|---|---|---|
Product: | Red Hat OpenStack | Reporter: | VIKRANT <vaggarwa> | |
Component: | openstack-nova | Assignee: | Sahid Ferdjaoui <sferdjao> | |
Status: | CLOSED ERRATA | QA Contact: | Gabriel Szasz <gszasz> | |
Severity: | high | Docs Contact: | ||
Priority: | high | |||
Version: | 7.0 (Kilo) | CC: | ahoness, awaugama, berrange, dasmith, dcadzow, ealcaniz, eglynn, gszasz, jraju, kchamart, mfuruta, molasaga, mschuppe, nalmond, nkrishna, pablo.iranzo, sbauza, sferdjao, sgordon, srevivo, vaggarwa, vromanso | |
Target Milestone: | async | Keywords: | FeatureBackport, ZStream | |
Target Release: | 7.0 (Kilo) | |||
Hardware: | All | |||
OS: | Linux | |||
Whiteboard: | ||||
Fixed In Version: | openstack-nova-2015.1.4-20.el7ost | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 1381965 (view as bug list) | Environment: | ||
Last Closed: | 2017-02-15 22:56:50 UTC | Type: | Bug | |
Regression: | --- | Mount Type: | --- | |
Documentation: | --- | CRM: | ||
Verified Versions: | Category: | --- | ||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | ||
Cloudforms Team: | --- | Target Upstream Version: | ||
Embargoed: | ||||
Bug Depends On: | 1381533, 1383415 | |||
Bug Blocks: | 1381612, 1381965, 1498831 |
Description
VIKRANT
2016-09-29 08:27:19 UTC
Ok so I finally tested the backport, you can see my test-case and the packages. In an other time it would be nice if you can have a look at this bug 1357892, it's the same issue related to RHOS6. If you can confirm that the backport is working or not. Thanks in advance. Packages: --------- https://brewweb.engineering.redhat.com/brew/taskinfo?taskID=11858590 Test case: ---------- [root@rhos7a 17.el7ost(keystone_admin)]# nova hypervisor-list +----+-----------------------+-------+---------+ | ID | Hypervisor hostname | State | Status | +----+-----------------------+-------+---------+ | 2 | rhos7a | up | enabled | | 3 | rhos7b | up | enabled | +----+-----------------------+-------+---------+ [root@rhos7a 17.el7ost(keystone_admin)]# nova flavor-create --ephemeral 2 eph1 99 64 1 1 +----+------+-----------+------+-----------+------+-------+-------------+-----------+ | ID | Name | Memory_MB | Disk | Ephemeral | Swap | VCPUs | RXTX_Factor | Is_Public | +----+------+-----------+------+-----------+------+-------+-------------+-----------+ | 99 | eph1 | 64 | 1 | 2 | | 1 | 1.0 | True | +----+------+-----------+------+-----------+------+-------+-------------+-----------+ [root@rhos7a 17.el7ost(keystone_admin)]# nova image-list +--------------------------------------+--------+--------+--------+ | ID | Name | Status | Server | +--------------------------------------+--------+--------+--------+ | c0738ff2-6fbc-4015-8168-0e0b00cc7d89 | cirros | ACTIVE | | +--------------------------------------+--------+--------+--------+ [root@rhos7a 17.el7ost(keystone_admin)]# cinder create 1 --image-id c0738ff2-6fbc-4015-8168-0e0b00cc7d89 +---------------------+--------------------------------------+ | Property | Value | +---------------------+--------------------------------------+ | attachments | [] | | availability_zone | nova | | bootable | false | | created_at | 2016-10-04T10:46:04.012300 | | display_description | None | | display_name | None | | encrypted | False | | id | af664878-c582-41ff-8189-8f81f4be1c3f | | image_id | c0738ff2-6fbc-4015-8168-0e0b00cc7d89 | | metadata | {} | | multiattach | false | | size | 1 | | snapshot_id | None | | source_volid | None | | status | creating | | volume_type | None | +---------------------+--------------------------------------+ [root@rhos7a 17.el7ost(keystone_admin)]# nova boot --flavor 99 --ephemeral size=1 --ephemeral size=1 --block-device source=volume,id=af664878-c582-41ff-8189-8f81f4be1c3f,dest=volume,bootindex=0 --nic net-id=753c360c-7353-4056-a663-d6c98e37e1b6 vm1 [root@rhos7a 17v1.el7ost(keystone_admin)]# nova show vm1 +--------------------------------------+----------------------------------------------------------+ | Property | Value | +--------------------------------------+----------------------------------------------------------+ | OS-DCF:diskConfig | MANUAL | | OS-EXT-AZ:availability_zone | nova | | OS-EXT-SRV-ATTR:host | rhos7b | | OS-EXT-SRV-ATTR:hypervisor_hostname | rhos7b | | OS-EXT-SRV-ATTR:instance_name | instance-00000007 | | OS-EXT-STS:power_state | 1 | | OS-EXT-STS:task_state | - | | OS-EXT-STS:vm_state | active | | OS-SRV-USG:launched_at | 2016-10-04T15:50:42.000000 | | OS-SRV-USG:terminated_at | - | | accessIPv4 | | | accessIPv6 | | | config_drive | | | created | 2016-10-04T15:50:36Z | | flavor | eph1 (99) | | hostId | ba81b50a511482984723618de4bc7f360591605f6e71b2791e00b364 | | id | b333a7a0-a984-4c29-a753-57628e08864b | | image | Attempt to boot from volume - no image supplied | | key_name | - | | metadata | {} | | name | vm1 | | os-extended-volumes:volumes_attached | [{"id": "af664878-c582-41ff-8189-8f81f4be1c3f"}] | | private network | 10.0.0.7 | | progress | 0 | | security_groups | default | | status | ACTIVE | | tenant_id | 6c0dfbfc0db74a3fb5d078105200d188 | | updated | 2016-10-04T15:50:43Z | | user_id | f7a78c50e9834080961b4153e26e3414 | +--------------------------------------+----------------------------------------------------------+ [root@rhos7b 17v1.el7ost]# virsh domblklist instance-00000007 Target Source ------------------------------------------------ vda /dev/disk/by-path/ip-192.168.122.100:3260-iscsi-iqn.2010-10.org.openstack:volume-af664878-c582-41ff-8189-8f81f4be1c3f-lun-0 vdb /var/lib/nova/instances/b333a7a0-a984-4c29-a753-57628e08864b/disk.eph0 vdc /var/lib/nova/instances/b333a7a0-a984-4c29-a753-57628e08864b/disk.eph1 [root@rhos7a 17v1.el7ost(keystone_admin)]# nova show vm1 +--------------------------------------+----------------------------------------------------------+ | Property | Value | +--------------------------------------+----------------------------------------------------------+ | OS-DCF:diskConfig | MANUAL | | OS-EXT-AZ:availability_zone | nova | | OS-EXT-SRV-ATTR:host | rhos7a | | OS-EXT-SRV-ATTR:hypervisor_hostname | rhos7a | | OS-EXT-SRV-ATTR:instance_name | instance-00000007 | | OS-EXT-STS:power_state | 1 | | OS-EXT-STS:task_state | - | | OS-EXT-STS:vm_state | active | | OS-SRV-USG:launched_at | 2016-10-04T15:50:42.000000 | | OS-SRV-USG:terminated_at | - | | accessIPv4 | | | accessIPv6 | | | config_drive | | | created | 2016-10-04T15:50:36Z | | flavor | eph1 (99) | | hostId | e73f7a2bb28368e3039f4c30488129eb78680e76166b19cb4017d4dc | | id | b333a7a0-a984-4c29-a753-57628e08864b | | image | Attempt to boot from volume - no image supplied | | key_name | - | | metadata | {} | | name | vm1 | | os-extended-volumes:volumes_attached | [{"id": "af664878-c582-41ff-8189-8f81f4be1c3f"}] | | private network | 10.0.0.7 | | progress | 0 | | security_groups | default | | status | ACTIVE | | tenant_id | 6c0dfbfc0db74a3fb5d078105200d188 | | updated | 2016-10-04T15:52:07Z | | user_id | f7a78c50e9834080961b4153e26e3414 | +--------------------------------------+----------------------------------------------------------+ [root@rhos7a 17v1.el7ost(keystone_admin)]# virsh domblklist instance-00000007 Target Source ------------------------------------------------ vda /dev/disk/by-path/ip-192.168.122.100:3260-iscsi-iqn.2010-10.org.openstack:volume-af664878-c582-41ff-8189-8f81f4be1c3f-lun-0 vdb /var/lib/nova/instances/b333a7a0-a984-4c29-a753-57628e08864b/disk.eph0 vdc /var/lib/nova/instances/b333a7a0-a984-4c29-a753-57628e08864b/disk.eph1 Forgot to indicate the command use to migrate the instance. [root@rhos7a 17v1.el7ost(keystone_admin)]# nova live-migration --block-migrate vm1 Do we have date to deliver this errata? 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/RHSA-2017-0282.html |