Skip to content

Commit

Permalink
server: throw exception if fail to cleanup IP resources when release …
Browse files Browse the repository at this point in the history
…a public IP
  • Loading branch information
weizhouapache committed May 8, 2024
1 parent ea9a0f4 commit 4f0b26b
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

IPAddressVO ip = markIpAsUnavailable(addrId);
Expand Down

0 comments on commit 4f0b26b

Please sign in to comment.