Bug 988443

Summary: [Doc] [RFE] Volume migration
Product: Red Hat OpenStack Reporter: Stephen Gordon <sgordon>
Component: doc-Administration_User_GuideAssignee: Summer Long <slong>
Status: CLOSED CURRENTRELEASE QA Contact: ecs-bugs
Severity: low Docs Contact:
Priority: low    
Version: 4.0CC: alyoung, eharney, hateya, slong, yeylon
Target Milestone: ---Keywords: Documentation, FutureFeature, Triaged
Target Release: 4.0   
Hardware: Unspecified   
OS: Unspecified   
URL: https://blueprints.launchpad.net/cinder/+spec/volume-migration
Whiteboard: upstream_milestone_none upstream_status_implemented upstream_definition_approved
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: 985953 Environment:
Last Closed: 2014-01-06 03:37:20 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:    
Bug Blocks: 1011085    

Description Stephen Gordon 2013-07-25 15:27:51 UTC
+++ This bug was initially created as a clone of Bug #985953 +++

This work will add an admin-only interface to manually invoke volume migration - "I want to move this volume to that specific backend". This is useful for manual tuning and scripting.

This initial version will be the simplest case - a detached volume with no snapshots. A later blueprint will handle cases of attached volumes and volumes with snapshots. Attaching/detaching during migration will not be allowed for now.

https://blueprints.launchpad.net/cinder/+spec/volume-migration

Comment 2 Summer Long 2013-08-13 00:26:36 UTC
Hi Eric, looks like you're the dev for this one. The following provides a lot of how it should work:https://etherpad.openstack.org/havana-cinder-volume-migration

But I can't see what the user needs to do to migrate a volume. Is it just on the command line? Or in the Dashboard? If so, how?

And how to use volume_type or volume_retype?

thanks, Summer

Comment 3 Eric Harney 2013-08-27 21:00:26 UTC
There is a cinder client operation 'migrate' which is being added for this (still pending merge upstream):

$ cinder migrate <volume> <host> --force-host-copy=True|False

https://review.openstack.org/#/c/37685/3/cinderclient/v2/shell.py

Comment 4 Summer Long 2013-09-26 00:44:33 UTC
Upstream doc bug: 
https://bugs.launchpad.net/openstack-manuals/+bug/1201555

Comment 5 Summer Long 2013-10-02 06:21:07 UTC
Eric, that change was merged on Sep.15th, and I have a python-cinderclient that was built on the 20th (python-cinderclient.noarch  1.0.5-2.el6). The problem is that the 'migrate' option isn't showing up. 
So, can you tell me whether this is still the solution? Or is there a newer package I should be using to look at the CLI?
thanks, Summer

Comment 6 Eric Harney 2013-10-02 21:02:50 UTC
(In reply to Summer Long from comment #5)
> Eric, that change was merged on Sep.15th, and I have a python-cinderclient
> that was built on the 20th (python-cinderclient.noarch  1.0.5-2.el6). The
> problem is that the 'migrate' option isn't showing up. 

You will need cinderclient 1.0.6, which has not been released yet.  It should be released upstream within the next few days, and then packaged downstream not too long after that.  Sorry about that.

Comment 7 Summer Long 2013-10-16 06:49:04 UTC
Made change upstream: https://review.openstack.org/52016
Eric, can you please review upstream? many thanks, Summer