Uh oh!
There was an error while loading. Please reload this page.
Fix NPE on updating security groups for an instance - #10493
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@## 4.20 #10493 +/- ##
============================================
+ Coverage 15.98% 16.02% +0.03% - Complexity 13086 13123 +37
============================================
Files 5650 5652 +2 Lines 495756 495928 +172 Branches 60018 60051 +33 ============================================
+ Hits 79261 79454 +193 + Misses 407641 407609 -32 - Partials 8854 8865 +11
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:
|
1a1eec2 to
351b012Comparevishesh92
commented
Mar 3, 2025
@blueorangutan package |
blueorangutan
commented
Mar 3, 2025
@vishesh92 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. |
Uh oh!
There was an error while loading. Please reload this page.
blueorangutan
commented
Mar 3, 2025
Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 12641 |
vishesh92
commented
Mar 4, 2025
@blueorangutan test keepEnv |
blueorangutan
commented
Mar 4, 2025
@vishesh92 a [SL] Trillian-Jenkins test job (ol8 mgmt + kvm-ol8) has been kicked to run smoke tests |
blueorangutan
commented
Mar 4, 2025
[SF] Trillian test result (tid-12545)
|
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
harikrishna-patnala
commented
Apr 16, 2025
@blueorangutan package |
blueorangutan
commented
Apr 16, 2025
@harikrishna-patnala 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. |
Uh oh!
There was an error while loading. Please reload this page.
blueorangutan
commented
Apr 16, 2025
Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 13068 |
harikrishna-patnala
left a comment
There was a problem hiding this comment.
Reproduced the issue and also verified the fix, did not observe the NPE after updating SG. LGTM.
harikrishna-patnala
commented
Apr 17, 2025
@blueorangutan test |
blueorangutan
commented
Apr 17, 2025
@harikrishna-patnala a [SL] Trillian-Jenkins test job (ol8 mgmt + kvm-ol8) has been kicked to run smoke tests |
blueorangutan
commented
Apr 17, 2025
[SF] Trillian Build Failed (tid-13026) |
weizhouapache
commented
Apr 17, 2025
@blueorangutan test securityGroups |
blueorangutan
commented
Apr 17, 2025
@weizhouapache a [SL] Trillian-Jenkins test job (ol8 mgmt + kvm-ol8) has been kicked to run smoke tests |
blueorangutan
commented
Apr 18, 2025
[SF] Trillian test result (tid-13031)
|
DaanHoogland
commented
Apr 18, 2025
51 ok 90 errors, I forgot what the baseline was for running with security groups . maybe we should add it to the matrix somehow (and stablise it) |
weizhouapache
commented
Apr 18, 2025
@DaanHoogland let's re-run the tests to see if the results are consistent @blueorangutan test securityGroups |
blueorangutan
commented
Apr 18, 2025
@weizhouapache a [SL] Trillian-Jenkins test job (ol8 mgmt + kvm-ol8) has been kicked to run smoke tests |
blueorangutan
commented
Apr 19, 2025
[SF] Trillian test result (tid-13052)
|
DaanHoogland
commented
Apr 20, 2025
@weizhouapache@vishesh92 51 vs 90 again, seems consistent. |
harikrishna-patnala
commented
Apr 21, 2025
@blueorangutan test |
blueorangutan
commented
Apr 21, 2025
@harikrishna-patnala a [SL] Trillian-Jenkins test job (ol8 mgmt + kvm-ol8) has been kicked to run smoke tests |
blueorangutan
commented
Apr 21, 2025
[SF] Trillian test result (tid-13071)
|
* Fix NPE on updating security groups for an instance * addressed review comments * Method refactoring --------- Co-authored-by: Harikrishna Patnala <harikrishna.patnala@gmail.com>
Description
This PR fixes#10347
Details
This pull request includes changes to the
UserVmManagerImplclass and UI components to improve the handling of security groups for virtual machines. The most important changes include refactoring the security group update logic and adding UI support for security groups.Backend changes:
server/src/main/java/com/cloud/vm/UserVmManagerImpl.java: Refactored the security group update logic by removing redundant code and encapsulating the update logic in a newupdateSecurityGroupmethod. This improves code readability and maintainability. [1][2][3]UI changes:
ui/src/views/compute/EditVM.vue: Modified the security group enablement check to fall back on a Vuex store getter if the zone response does not provide the information. This ensures that the UI correctly reflects the security group support status.ui/src/views/compute/InstanceTab.vue: Added a new state variableshowUpdateSecurityGroupsModalto manage the visibility of the security group update modal in the instance tab. This prepares the UI for future enhancements to support security group updates directly from the instance tab.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?