Comment 1 for bug 1410739

Revision history for this message
Paul Murray (pmurray) wrote :

Seems to be related to this code snippet from _do_build_run_instance() in the compute manager:

            # NOTE(comstud): Deallocate networks if the driver wants
            # us to do so.
            if self.driver.deallocate_networks_on_reschedule(instance):
                self._cleanup_allocated_networks(context, instance,
                        requested_networks)

The default behavior in ComputeDriver is:

    def deallocate_networks_on_reschedule(self, instance):
        """Does the driver want networks deallocated on reschedule?"""
        return False

Only the Ironic driver over rides this method to return True, so I think this means the networks will not be cleaned up for any other virt driver.

Is this the behavior we want by default? I would have thought the default should be True.