summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--nova/compute/manager.py11
1 files changed, 0 insertions, 11 deletions
diff --git a/nova/compute/manager.py b/nova/compute/manager.py
index 2f0b0c71c..5f0d522d6 100644
--- a/nova/compute/manager.py
+++ b/nova/compute/manager.py
@@ -303,17 +303,6 @@ class ComputeManager(manager.SchedulerDependentManager):
context, bdm['id'], {'volume_id': vol['id']})
bdm['volume_id'] = vol['id']
- if not ((bdm['snapshot_id'] is None) or
- (bdm['volume_id'] is not None)):
- LOG.error(_('corrupted state of block device mapping '
- 'id: %(id)s snapshot: %(snapshot_id)s '
- 'volume: %(volume_id)s') %
- {'id': bdm['id'],
- 'snapshot_id': bdm['snapshot'],
- 'volume_id': bdm['volume_id']})
- raise exception.ApiError(_('broken block device mapping %d') %
- bdm['id'])
-
if bdm['volume_id'] is not None:
volume_api.check_attach(context,
volume_id=bdm['volume_id'])