File 0001-Cleanup-allocated-networks-after-rescheduling.patch of Package openstack-nova
Index: nova-2014.2.4.dev80/nova/compute/manager.py
===================================================================
--- nova-2014.2.4.dev80.orig/nova/compute/manager.py
+++ nova-2014.2.4.dev80/nova/compute/manager.py
@@ -1742,7 +1742,7 @@ class ComputeManager(manager.Manager):
# If we're here from a reschedule the network may already be allocated.
if strutils.bool_from_string(
instance.system_metadata.get('network_allocated', 'False')):
- return self._get_instance_nw_info(context, instance)
+ self._cleanup_allocated_networks(context, instance, requested_networks)
if not self.is_neutron_security_groups:
security_groups = []