Comment 1 for bug 1587285

Revision history for this message
Prateek Arora (parora) wrote : Re: Unexpected volume-detach happen under a specific condition

Rikimaru San

The case you are talking about looks like unreproducible to me.

The code snippet posted by you

         volume_bdm = self._create_volume_bdm(
             context, instance, device, volume_id, disk_bus=disk_bus,
             device_type=device_type)
+ raise Exception

would raise an exception at that point, which won't be handled as it has no corresponding exception handling code. As such nova wouldn't come further.

Assuming the first exception was not present and only the 2nd one was present, a proper cleanup would be done and the bdm database entry would be destroyed.

Can I please ask you whether you faced such a situation somewhere without the code hack ?