svf : if pool attribute is specified in volume type during retype along with --migration-policy defaults to cinder generic migration

Bug #2001619 reported by Sathyanarayana R
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cinder
In Progress
Medium
Sathyanarayana R

Bug Description

We are trying to implement volume migration across different backend, making using of cinder retype along with --migration-policy on-demand. The volume manager (/opt/stack/cinder/cinder/volume/manager.py) invokes migrate_volume method for --migration-policy which internally invokes the method _can_use_driver_migration
where it compares the difference in the extra_specs of two volume types. Currently difference is calculated by copying the extra_specs to a list and poping off 'volume_backend_name' and 'RESKEY:availability_zones' keys. But the pool parameter is not considered, which brings the length of list to be greater than 0 and the same result is sent back. A check condition which relies on this result is preventing to enter the driver specific code and defaulting to the method _migrate_volume_generic , which is the default generic migration provided by cinder, which could not be used because of our requirement specific operations.

Changed in cinder:
assignee: nobody → Sathyanarayana R (sathya-narayana)
tags: added: svf
Changed in cinder:
importance: Undecided → Medium
Eric Harney (eharney)
tags: added: drivers
tags: added: retype
removed: drivers
tags: added: drivers
Changed in cinder:
status: New → In Progress
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.