Comment 0 for bug 894172

Revision history for this message
Nachi Ueno(Instance3) (ueno-nachi+instance2) wrote :

nova.compute.manager has unreachable path

https://github.com/openstack/nova/blob/master/nova/compute/manager.py#L306
if not ((bdm['snapshot_id'] is None) or
          (bdm['volume_id'] is not None)):

is equivalent to this:
  if ((bdm['snapshot_id'] is not None) and
      (bdm['volume_id'] is None)):

bdm['volume_id'] is always set L304 if bdm['snapshot_id'] is not None and bdm['volume_id'] is None
https://github.com/openstack/nova/blob/master/nova/compute/manager.py#L304