← Back to team overview

openstack team mailing list archive

virt driver interface and exceptions

 

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@xxxxxxxxxxxxx



Follow ups