From 44651806269f449f81d873353d3291dd72e6360a Mon Sep 17 00:00:00 2001 From: Vishvananda Ishaya Date: Fri, 4 May 2012 12:54:40 -0700 Subject: Remove state altering in live-migration code * Stops live migration from checking volume node because it will not be accessible if volumes are a separate service * Stops state modification of volumes during live migration because the volumes are not migrating * Partially implements blueprint volume-decoupling Change-Id: I07bdbc660ff220e2079e643a002c4c6bb5df6db7 --- nova/compute/manager.py | 4 ---- 1 file changed, 4 deletions(-) (limited to 'nova/compute') diff --git a/nova/compute/manager.py b/nova/compute/manager.py index dca66dd96..aa94448d8 100644 --- a/nova/compute/manager.py +++ b/nova/compute/manager.py @@ -2065,10 +2065,6 @@ class ComputeManager(manager.SchedulerDependentManager): "args": {'instance_id': instance_ref['id'], 'block_migration': block_migration}}) - # Restore volume state - for volume_ref in instance_ref['volumes']: - self.volume_api.update(ctxt, volume_ref, {'status': 'in-use'}) - # No instance booting at source host, but instance dir # must be deleted for preparing next block migration if block_migration: -- cgit