Moving a disk between projects
-
Make sure that the OpenStack client is installed, and authenticate in the project.
-
Log in to the project from which you need to move the disk.
-
Detach the disk you want to move from the VM.
-
View the list of disks:
openstack volume list --long -
Make sure the disk is detached from the VM (
Status:available). -
Copy the disk ID.
-
Create a disk transfer request:
openstack volume transfer request create <DISK_ID> -
Copy the authorization key
auth_keyand the request IDid. -
View the list of disks and make sure the status of the disk being transferred has changed to
awaiting-transfer:openstack volume list -
Log in to the project to which you need to move the disk.
-
Accept the disk transfer request by specifying the authorization key
auth_keyand the IDid:openstack volume transfer request accept --auth-key <AUTH_KEY> <REQUEST_ID> -
Make sure the disk has appeared in the project:
openstack volume show <DISK_ID>
Additional commands for working with disk transfer requests
-
View the list of transfer requests:
openstack volume transfer request list -
Delete a transfer request:
openstack volume transfer request delete <REQUEST_ID>