mirror of https://github.com/apache/cloudstack.git
CS-15717: fail to delete the network when corresponding network elements fail to be destroyed
This commit is contained in:
parent
9611a017e9
commit
2943dc22d7
|
|
@ -3215,7 +3215,10 @@ public class NetworkManagerImpl implements NetworkManager, NetworkService, Manag
|
|||
s_logger.debug("Sending destroy to " + element);
|
||||
}
|
||||
|
||||
element.destroy(network);
|
||||
if (!element.destroy(network)) {
|
||||
success = false;
|
||||
s_logger.warn("Unable to complete destroy of the network: failed to destroy network element " + element.getName());
|
||||
}
|
||||
} catch (ResourceUnavailableException e) {
|
||||
s_logger.warn("Unable to complete destroy of the network due to element: " + element.getName(), e);
|
||||
success = false;
|
||||
|
|
@ -3225,7 +3228,7 @@ public class NetworkManagerImpl implements NetworkManager, NetworkService, Manag
|
|||
} catch (Exception e) {
|
||||
s_logger.warn("Unable to complete destroy of the network due to element: " + element.getName(), e);
|
||||
success = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue