From: Vincent Hou Date: Mon, 14 Dec 2015 06:08:54 +0000 (-0800) Subject: Volume migration: add 'name_id' as valid skippable field X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=35ed0dd1fa2345a32c02a82026c16190086dd0de;p=openstack-build%2Fcinder-build.git Volume migration: add 'name_id' as valid skippable field 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 --- diff --git a/cinder/volume/manager.py b/cinder/volume/manager.py index d63e2360c..7b89a578d 100644 --- a/cinder/volume/manager.py +++ b/cinder/volume/manager.py @@ -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,