It would be useful to add the ability to export/import volumes from one cinder node to another. This would specifically focus on cases such as a single backend connected to multiple cinder setups. A volume could be exported from cinder-node-a (removed from that cinder install without being deleted) and imported in to cinder-node-b (volume/data is imported and DB is populated appropriately). https://blueprints.launchpad.net/cinder/+spec/add-export-import-volumes
Matched priority to upstream.
Not implemented in Havana.
This is supported for the LVM driver already, in 5.0.
This bug was accidentally moved from POST to MODIFIED via an error in automation, please see mmccune with any questions
Tested using: python-cinderclient-1.9.0-0.20160902095023.e15d8e7.el7ost.noarch python-cinder-9.0.0-0.20160907194411.4057701.el7ost.noarch puppet-cinder-9.2.0-0.20160901081001.f657f9b.el7ost.noarch openstack-cinder-9.0.0-0.20160907194411.4057701.el7ost.noarch Tested according to the following test-plan: https://polarion.engineering.redhat.com/polarion/#/project/RHELOpenStackPlatform/wiki/Cinder/RFE_985477-Export%20_%20Import%20Volumes Verification flow: [stack@undercloud-0 ~]$ cinder create 1 +--------------------------------+--------------------------------------+ | Property | Value | +--------------------------------+--------------------------------------+ | attachments | [] | | availability_zone | nova | | bootable | false | | consistencygroup_id | None | | created_at | 2016-09-29T08:40:08.000000 | | description | None | | encrypted | False | | id | 853f7632-90ef-4811-bbf5-9cdfb20f6cf5 | | metadata | {} | | migration_status | None | | multiattach | False | | name | None | | os-vol-host-attr:host | None | | os-vol-mig-status-attr:migstat | None | | os-vol-mig-status-attr:name_id | None | | os-vol-tenant-attr:tenant_id | 74b9b3d55c484f209b59fb48aef13628 | | replication_status | disabled | | size | 1 | | snapshot_id | None | | source_volid | None | | status | creating | | updated_at | None | | user_id | 21646731d787446f81b45071dd5dc556 | | volume_type | None | +--------------------------------+--------------------------------------+ [stack@undercloud-0 ~]$ cinder show 853f7632-90ef-4811-bbf5-9cdfb20f6cf5 +--------------------------------+---------------------------------------+ | Property | Value | +--------------------------------+---------------------------------------+ | attachments | [] | | availability_zone | nova | | bootable | false | | consistencygroup_id | None | | created_at | 2016-09-29T08:40:08.000000 | | description | None | | encrypted | False | | id | 853f7632-90ef-4811-bbf5-9cdfb20f6cf5 | | metadata | {} | | migration_status | None | | multiattach | False | | name | None | | os-vol-host-attr:host | hostgroup@tripleo_iscsi#tripleo_iscsi | | os-vol-mig-status-attr:migstat | None | | os-vol-mig-status-attr:name_id | None | | os-vol-tenant-attr:tenant_id | 74b9b3d55c484f209b59fb48aef13628 | | replication_status | disabled | | size | 1 | | snapshot_id | None | | source_volid | None | | status | available | | updated_at | 2016-09-29T08:40:11.000000 | | user_id | 21646731d787446f81b45071dd5dc556 | | volume_type | None | +--------------------------------+---------------------------------------+ [stack@undercloud-0 ~]$ cinder unmanage 853f7632-90ef-4811-bbf5-9cdfb20f6cf5 [stack@undercloud-0 ~]$ cinder list +----+--------+------+------+-------------+----------+-------------+ | ID | Status | Name | Size | Volume Type | Bootable | Attached to | +----+--------+------+------+-------------+----------+-------------+ +----+--------+------+------+-------------+----------+-------------+ [stack@undercloud-0 ~]$ cinder manage hostgroup@tripleo_iscsi#tripleo_iscsi volume-853f7632-90ef-4811-bbf5-9cdfb20f6cf5 --name vol1 +--------------------------------+---------------------------------------+ | Property | Value | +--------------------------------+---------------------------------------+ | attachments | [] | | availability_zone | nova | | bootable | false | | consistencygroup_id | None | | created_at | 2016-09-29T08:41:18.000000 | | description | None | | encrypted | False | | id | f36348ad-c48d-4305-84e9-99fc5e164a87 | | metadata | {} | | migration_status | None | | multiattach | False | | name | vol1 | | os-vol-host-attr:host | hostgroup@tripleo_iscsi#tripleo_iscsi | | os-vol-mig-status-attr:migstat | None | | os-vol-mig-status-attr:name_id | None | | os-vol-tenant-attr:tenant_id | 74b9b3d55c484f209b59fb48aef13628 | | replication_status | None | | size | 0 | | snapshot_id | None | | source_volid | None | | status | creating | | updated_at | None | | user_id | 21646731d787446f81b45071dd5dc556 | | volume_type | None | +--------------------------------+---------------------------------------+ [stack@undercloud-0 ~]$ cinder list +--------------------------------------+-----------+------+------+-------------+----------+-------------+ | ID | Status | Name | Size | Volume Type | Bootable | Attached to | +--------------------------------------+-----------+------+------+-------------+----------+-------------+ | f36348ad-c48d-4305-84e9-99fc5e164a87 | available | vol1 | 1 | - | false | | +--------------------------------------+-----------+------+------+-------------+----------+-------------+
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/RHEA-2016-2948.html