You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by "sureshanaparti (via GitHub)" <gi...@apache.org> on 2024/06/24 07:09:24 UTC
Re: [PR] server: throw exception if fail to cleanup IP resources when release a public IP [cloudstack]
sureshanaparti commented on code in PR #9059:
URL: https://github.com/apache/cloudstack/pull/9059#discussion_r1650461762
##########
server/src/main/java/com/cloud/network/IpAddressManagerImpl.java:
##########
@@ -732,8 +732,9 @@ public boolean disassociatePublicIpAddress(long addrId, long userId, Account cal
PublicIpQuarantine publicIpQuarantine = null;
// Cleanup all ip address resources - PF/LB/Static nat rules
if (!cleanupIpResources(addrId, userId, caller)) {
- success = false;
- s_logger.warn("Failed to release resources for ip address id=" + addrId);
+ String msg = String.format("Failed to release resources for ip address id=%s", addrId);
+ s_logger.error(msg);
+ throw new CloudRuntimeException(msg);
Review Comment:
Hi @weizhouapache should these be addressed here, or later in separate PR?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org