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 ?
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 ?