[Openstack] virt driver interface and exceptions
Mark Washenberger
mark.washenberger at rackspace.com
Sun Dec 4 15:30:52 UTC 2011
Team,
I was poking around in nova/virt/driver.py and found this comment:
def destroy(self, instance, network_info, block_device_info=None,
cleanup=True):
"""Destroy (shutdown and delete) the specified instance.
If the instance is not found (for example if networking failed), this
function should still succeed. It's probably a good idea to log a
warning in that case.
...
It looks like maybe this is the only function in the interface that is not supposed to return exceptions.
If anyone recalls the story behind this restriction, could you talk about it a bit? I just want to understand the reasoning behind this choice.
Thanks!
Mark Washenberger
Rackspace Hosting
Software Developer
mark.washenberger at rackspace.com
More information about the Openstack
mailing list