Ask Your Question
0

How to change ownership (between tenants) of volume?

asked 2013-10-01 03:09:41 -0500

Skarab gravatar image

I need to move two volumes from one tenant to another. Is there anyway to achieve that without messing up with openstack database?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
2

answered 2013-10-01 05:30:59 -0500

Sirushti Murugesan gravatar image

updated 2013-10-01 05:31:35 -0500

Hi, That feature is known as volume-transfer and has been implemented recently in the OpenStack Block Storage(Cinder) service and will be available in the upcoming Havana Release.

In case you're using a custom build which consists of the Cinder Volume-transfer feature, here's how you can change the ownership of the image in CLI, should be similar using REST, but here's the workflow.

Let's assume you want to change ownership of volume from Tenant_A to Tenant_B.

Step 1: Tenant A will initiate an Ownership Transfer which will enable another tenant to take ownership of it.

source openrc Tenant_A Tenant_A
cinder transfer-create <volume_id>

An Authentication Key and a Transfer ID are returned here.

Step 2: Tenant B needs to accept the Transfer using the Transfer ID and The Authentication Key generated above.

source openrc Tenant_B Tenant_B
cinder transfer-accept <transfer_id> <auth_key>

You should now see that volume associated with Tenant_B

Here's the blueprint on Launchpad: Volume Transfer

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2013-10-01 03:09:41 -0500

Seen: 3,592 times

Last updated: Oct 01 '13