summaryrefslogtreecommitdiffstats
path: root/nova/compute
diff options
context:
space:
mode:
authorVishvananda Ishaya <vishvananda@yahoo.com>2010-10-25 03:11:00 -0700
committerVishvananda Ishaya <vishvananda@yahoo.com>2010-10-25 03:11:00 -0700
commit43a545a8bd8f763eba7741a240c29da447aef61e (patch)
treed99eab3234191bc9431d1c0a23c6bc02263ab2a0 /nova/compute
parentbde0d8d0f0e864d5b5d0f87e55ab23839846f71e (diff)
more bugfixes, flag for local volumes
Diffstat (limited to 'nova/compute')
-rw-r--r--nova/compute/manager.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/nova/compute/manager.py b/nova/compute/manager.py
index 3b3208fea..116bf11cc 100644
--- a/nova/compute/manager.py
+++ b/nova/compute/manager.py
@@ -113,7 +113,7 @@ class ComputeManager(manager.Manager):
instance_ref = self.db.instance_get(context, instance_id)
volumes = instance_ref.get('volumes', []) or []
for volume in volumes:
- self.detach_volume(instance_id, volume['id'])
+ self.detach_volume(context, instance_id, volume['id'])
if instance_ref['state'] == power_state.SHUTOFF:
self.db.instance_destroy(context, instance_id)
raise exception.Error('trying to destroy already destroyed'
@@ -176,6 +176,8 @@ class ComputeManager(manager.Manager):
instance_id,
mountpoint)
except Exception:
+ logging.debug("instance %s: attach failed to %s, removing export",
+ instance_id, mountpoint)
yield self.volume_manager.remove_compute_volume(context,
volume_id)
raise