New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
server: throw exception if fail to cleanup IP resources when release a public IP #9059
base: 4.19
Are you sure you want to change the base?
server: throw exception if fail to cleanup IP resources when release a public IP #9059
Conversation
@blueorangutan package |
@weizhouapache a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## 4.19 #9059 +/- ##
============================================
- Coverage 14.96% 14.96% -0.01%
+ Complexity 10995 10992 -3
============================================
Files 5373 5373
Lines 469024 469025 +1
Branches 58818 60130 +1312
============================================
- Hits 70197 70186 -11
- Misses 391056 391069 +13
+ Partials 7771 7770 -1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
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); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
does this block any other subsequent calls, & changes behavior?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it does, but I think the process should be stopped here if the error happens.
Packaging result [SF]: ✔️ el7 ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 9576 |
@blueorangutan test matrix |
@weizhouapache a [SL] Trillian-Jenkins matrix job (centos7 mgmt + xenserver71, rocky8 mgmt + vmware67u3, centos7 mgmt + kvmcentos7) has been kicked to run smoke tests |
[SF] Trillian test result (tid-10194)
|
[SF] Trillian test result (tid-10192)
|
[SF] Trillian test result (tid-10193)
|
Description
When reproduced the issue #8967, I got the following error
The errors are ignored, public IP is released successfully in cloudstack, but the IP is still associated to a VR. When associate the IP to another network, it caused an issue similar as #8967.
However, the reporter of #8967 could not find any error like "Failed to release" or "Unable to revoke" in their logs, so the root cause of #8967 could be different.
Types of changes
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
Bug Severity
Screenshots (if appropriate):
How Has This Been Tested?
How did you try to break this feature and the system with this change?