From 35ed0dd1fa2345a32c02a82026c16190086dd0de Mon Sep 17 00:00:00 2001 From: Vincent Hou Date: Sun, 13 Dec 2015 22:08:54 -0800 Subject: [PATCH] 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 --- cinder/volume/manager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, -- 2.45.2