Bug 1554772

Summary: [RFE] Migration between Cinder AZs
Product: Red Hat OpenStack Reporter: Gorka Eguileor <geguileo>
Component: openstack-cinderAssignee: Gorka Eguileor <geguileo>
Status: CLOSED ERRATA QA Contact: Avi Avraham <aavraham>
Severity: unspecified Docs Contact: Kim Nylander <knylande>
Priority: unspecified    
Version: 11.0 (Ocata)CC: aavraham, ealcaniz, egafford, Egarciad, eharney, geguileo, juwu, knylande, molasaga, scohen, srevivo, tshefi
Target Milestone: z5Keywords: FutureFeature, Triaged, ZStream
Target Release: 11.0 (Ocata)   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: openstack-cinder-10.0.6-21.el7ost Doc Type: Enhancement
Doc Text:
Cinder volume migration between different availability zones is now supported.
Story Points: ---
Clone Of: 1554768
: 1554784 (view as bug list) Environment:
Last Closed: 2018-05-18 16:48:51 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: 1554784    
Bug Blocks: 1381612, 1420438, 1554768, 1640757    

Comment 5 Tzach Shefi 2018-05-03 15:46:33 UTC
Verified on:
openstack-cinder-10.0.6-24.el7ost.noarch


Add second backend (nfs), config two zones. 

Create a volume on nfs on DC2 

cinder create --display-name nfs-dc2 --volume-type nfs 1 --availability-zone dc2
+--------------------------------+--------------------------------------+
| Property                       | Value                                |
+--------------------------------+--------------------------------------+
| attachments                    | []                                   |
| availability_zone              | dc2 


Migrate the volume to LVM other availability zone dc1
cinder retype 4ca235d3-294c-4087-a347-d260dcfa5844 lvm --migration-policy on-demand


cinder show 4ca235d3-294c-4087-a347-d260dcfa5844
+--------------------------------+---------------------------------------+                                           
| Property                       | Value                                 |                                           
+--------------------------------+---------------------------------------+                                           
| attachments                    | []                                    |                                           
| availability_zone              | dc1                                   |                                           
..                             |
| status                         | available   


As expected volume migration between availability zones dc2->dc1 successfully completed.

Comment 8 errata-xmlrpc 2018-05-18 16:48:51 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://access.redhat.com/errata/RHBA-2018:1611