Bug 1554784 - [RFE] Migration between Cinder AZs
Summary: [RFE] Migration between Cinder AZs
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-cinder
Version: 10.0 (Newton)
Hardware: All
OS: Linux
medium
unspecified
Target Milestone: z8
: 10.0 (Newton)
Assignee: Gorka Eguileor
QA Contact: Avi Avraham
Kim Nylander
URL:
Whiteboard:
Depends On:
Blocks: 1381612 1420438 1554768 1554772 1640757
TreeView+ depends on / blocked
 
Reported: 2018-03-13 11:31 UTC by Gorka Eguileor
Modified: 2022-08-16 10:09 UTC (History)
13 users (show)

Fixed In Version: openstack-cinder-9.1.4-31.el7ost
Doc Type: Enhancement
Doc Text:
This update provides support for volume migration between different availability zones.
Clone Of: 1554772
Environment:
Last Closed: 2018-05-17 15:49:07 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Launchpad 1747949 0 None None None 2018-03-13 11:31:38 UTC
OpenStack gerrit 541779 0 None MERGED Fix AZ not matching backend after migration 2020-05-12 19:51:54 UTC
Red Hat Issue Tracker OSP-4961 0 None None None 2022-08-16 10:09:26 UTC
Red Hat Product Errata RHBA-2018:1602 0 None None None 2018-05-17 15:50:12 UTC

Comment 6 Tzach Shefi 2018-05-03 09:15:51 UTC
Verified on:
openstack-cinder-9.1.4-33.el7ost.noarch

Add NFS backend to existing lvm, add availability zone dc1 dc2 

enabled_backend =  tripleo_iscsi,nfs

[tripleo_iscsi]
volume_driver=cinder.volume.drivers.lvm.LVMVolumeDriver
volumes_dir=/var/lib/cinder/volumes
iscsi_protocol=iscsi
iscsi_ip_address=172.17.3.10
volume_backend_name=tripleo_iscsi
iscsi_helper=lioadm
backend_availability_zone = dc1

[nfs]
volume_backend_name=nfs
volume_driver=cinder.volume.drivers.nfs.NfsDriver
nfs_shares_config=/etc/cinder/nfs_shares.conf
nfs_snapshot_support=True
nas_secure_file_operations=False
nas_secure_file_permissions=False
backend_availability_zone = dc2

cat /etc/cinder/nfs_shares.conf
10.35.160.111:/export/ins_cinder

systemctl restart openstack-cinder-volume.service

Create types
cinder type-create lvm 
cinder type-create nfs
cinder type-key nfs set volume_backend_name=nfs
cinder type-key lvm set volume_backend_name=tripleo_iscsi
cinder extra-specs-list
  
Create volume on nfs/dc2 
cinder create --display-name nfs-dc2 --volume-type nfs 1 --availability-zone dc2

cinder list
cinder help migrate

Migrate to other zone (nfs to lvm) 
cinder retype 39bdf624-61e0-4229-b2d0-1aecb52b7a96 lvm --migration-policy on-demand

cinder show 39bdf624-61e0-4229-b2d0-1aecb52b7a96
+--------------------------------+---------------------------------------+
| Property                       | Value                                 |
+--------------------------------+---------------------------------------+
| attachments                    | []                                    |
| availability_zone              | dc1    -> before migrate this was dc2 

Working as expected.

Comment 9 errata-xmlrpc 2018-05-17 15:49:07 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:1602


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