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.
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 deallocate_ networks_ on_reschedule( instance) :
self. _cleanup_ allocated_ networks( context, instance,
requested_ networks)
# us to do so.
if self.driver.
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.