Bug 1456355
Summary: | Volume created from snapshot can not be migrated/retyped to different backend after snapshot got deleted | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat OpenStack | Reporter: | Martin Schuppert <mschuppe> | ||||
Component: | openstack-cinder | Assignee: | Eric Harney <eharney> | ||||
Status: | CLOSED ERRATA | QA Contact: | Tzach Shefi <tshefi> | ||||
Severity: | medium | Docs Contact: | |||||
Priority: | unspecified | ||||||
Version: | 10.0 (Newton) | CC: | dhill, eharney, justinas.balciunas, lkuchlan, pgrist, rcernin, srevivo | ||||
Target Milestone: | z4 | Keywords: | Triaged, ZStream | ||||
Target Release: | 10.0 (Newton) | Flags: | lkuchlan:
automate_bug+
|
||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | |||||||
Fixed In Version: | openstack-cinder-9.1.4-5.el7ost | Doc Type: | If docs needed, set a value | ||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2017-09-06 17:16: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: | |||||||
Attachments: |
|
Description
Martin Schuppert
2017-05-29 08:17:39 UTC
I've reproduced this issue on RDO Newton w/ openstack-cinder-9.1.4-1.el7.noarch. Verified on: Openstack-cinder-9.1.4-6.el7ost.noarch Retype of a volume, created from a deleted snapshot, was successfully completed. Details steps below: 1. Uploaded Cirros image # openstack image create cirros --container-format bare --disk-format qcow2 --file cirros-0.3.5-x86_64-disk.img 2. Created lvm volume from image, used image only to have data not to test boot flag. #cinder create --volume-type tripleo_iscsi --name lvm 1 --image cirros #cinder list ... | 1b0f021d-c9d7-4399-ab10-4adb585f71a7 | available | lvm | 1 | tripleo_iscsi | true | | 3. Created snapshot of lvm volume # cinder snapshot-create lvm --name lvm_snap # cinder snapshot-list ... | feba3829-803c-436c-875b-d0a6df7879b7 | 1b0f021d-c9d7-4399-ab10-4adb585f71a7 | available | lvm_snap | 1 | 4. Create new volume from snap # cinder create 1 --snapshot-id feba3829-803c-436c-875b-d0a6df7879b7 --name lvm2_vol_from_snap Review both volumes which are available. $ cinder list +--------------------------------------+-----------+--------------------+------+---------------+----------+-------------+ | ID | Status | Name | Size | Volume Type | Bootable | Attached to | +--------------------------------------+-----------+--------------------+------+---------------+----------+-------------+ | 0155ffe8-c48f-419d-a2bd-944e7852091f | available | lvm2_vol_from_snap | 1 | tripleo_iscsi | true | | | 1b0f021d-c9d7-4399-ab10-4adb585f71a7 | available | lvm | 1 | tripleo_iscsi | true | | +--------------------------------------+-----------+--------------------+------+---------------+----------+-------------+ 5. Delete cinder volume: #cinder snapshot-delete feba3829-803c-436c-875b-d0a6df7879b7 #cinder snapshot-list +----+-----------+--------+------+------+ | ID | Volume ID | Status | Name | Size | +----+-----------+--------+------+------+ +----+-----------+--------+------+------+ 6. Migrate volume (created from the now delete snap) from lvm Triple0_iscsi to NFS1 nfs backend. # cinder retype lvm2_vol_from_snap nfs1 --migration-policy on-demand # cinder list +--------------------------------------+-----------+--------------------+------+---------------+----------+-------------+ | ID | Status | Name | Size | Volume Type | Bootable | Attached to | +--------------------------------------+-----------+--------------------+------+---------------+----------+-------------+ | 0155ffe8-c48f-419d-a2bd-944e7852091f | retyping | lvm2_vol_from_snap | 1 | tripleo_iscsi | true | | | 1b0f021d-c9d7-4399-ab10-4adb585f71a7 | available | lvm | 1 | tripleo_iscsi | true | | | 47565313-b04b-4dd4-ba40-5812be160b12 | available | lvm2_vol_from_snap | 1 | nfs1 | true | | +--------------------------------------+-----------+--------------------+------+---------------+----------+-------------+ Once migration finished, cinder list shows migration was completed successfully as expected. # cinder list +--------------------------------------+-----------+--------------------+------+---------------+----------+-------------+ | ID | Status | Name | Size | Volume Type | Bootable | Attached to | +--------------------------------------+-----------+--------------------+------+---------------+----------+-------------+ | 0155ffe8-c48f-419d-a2bd-944e7852091f | available | lvm2_vol_from_snap | 1 | nfs1 | true | | | 1b0f021d-c9d7-4399-ab10-4adb585f71a7 | available | lvm | 1 | tripleo_iscsi | true | | +--------------------------------------+-----------+--------------------+------+---------------+----------+-------------+ Created attachment 1312968 [details]
Cinder verification logs
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://access.redhat.com/errata/RHBA-2017:2660 *** Bug 1834929 has been marked as a duplicate of this bug. *** |