]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
Volume migration: add 'name_id' as valid skippable field
authorVincent Hou <sbhou@cn.ibm.com>
Mon, 14 Dec 2015 06:08:54 +0000 (22:08 -0800)
committerVincent Hou <sbhou@cn.ibm.com>
Mon, 14 Dec 2015 06:08:54 +0000 (22:08 -0800)
New Versioned Objects expect 'name_id' as a valid input, which
is able to change '_name_id' as well, so this patch adds
'name_id' into the fields, which are going to skip for the
creation of the target volume during migration.

Change-Id: I91e3bc05607243aef020f461a467e9ecb956544f
Closes-Bug: #1525781

cinder/volume/manager.py

index d63e2360c89d0a5a061b9abca4516aa29997ec83..7b89a578de9ed27837399db1a6e29bb74f076564 100644 (file)
@@ -1601,7 +1601,7 @@ class VolumeManager(manager.SchedulerDependentManager):
 
         # Create new volume on remote host
 
-        skip = {'id', '_name_id', 'name', 'host', 'status',
+        skip = {'id', '_name_id', 'name_id', 'name', 'host', 'status',
                 'attach_status', 'migration_status', 'volume_type',
                 'consistencygroup', 'volume_attachment'}
         # We don't copy volume_type, consistencygroup and volume_attachment,