-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Improve message "Network is unavailable. Please contact administrator" #11981
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
base: main
Are you sure you want to change the base?
Conversation
DaanHoogland
left a comment
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.
clgtm
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #11981 +/- ##
=========================================
Coverage 17.55% 17.55%
- Complexity 15543 15545 +2
=========================================
Files 5910 5910
Lines 529334 529334
Branches 64654 64654
=========================================
+ Hits 92944 92945 +1
+ Misses 425933 425932 -1
Partials 10457 10457
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
engine/orchestration/src/main/java/com/cloud/vm/VirtualMachineManagerImpl.java
Outdated
Show resolved
Hide resolved
|
not sure if this makes sense, but type breaks as it expects a throwable. |
DaanHoogland
left a comment
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.
clgtm
This trivial change provide more details for root administrators during troubleshooting. See discussion apache#11980
nvazquez
left a comment
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.
Thanks @daviftorres - just a comment from my review
| } catch (final ResourceUnavailableException e) { | ||
| if (e.getScope() != null && e.getScope().equals(VirtualRouter.class)){ | ||
| throw new CloudRuntimeException("Network is unavailable. Please contact administrator", e).add(VirtualMachine.class, vmUuid); | ||
| throw new CloudRuntimeException("The Guest Network is unavailable. Please contact administrator: " + e.getMessage()).add(VirtualMachine.class, vmUuid); |
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.
Hi @daviftorres, can you add a check for the caliing user role and display the exception message only if its a ROOT administrator? For other roles I think the exception message should not be displayed
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.
Hey @nvazquez , I agree with your a point of view. But I do not know how to do such a thing. My sincere apologies but I can barely read a few lines of Java :-/
Description
This trivial change provide more details for root administrators during troubleshooting.
See discussion #11980
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?