-
Notifications
You must be signed in to change notification settings - Fork 1.2k
api,server,extensions: allow updating extension resource map details #11303
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
api,server,extensions: allow updating extension resource map details #11303
Conversation
This PR makes changes for allowing updating details for an extension resource mapping. Currently, extensions only support Cluster to be registered therefore changes has been added to updateCluster functionality. Signed-off-by: Abhishek Kumar <[email protected]>
|
@blueorangutan package |
|
@shwstppr 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 Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #11303 +/- ##
=========================================
Coverage 16.99% 17.00%
- Complexity 14715 14722 +7
=========================================
Files 5832 5832
Lines 517561 517618 +57
Branches 62982 62995 +13
=========================================
+ Hits 87975 87997 +22
- Misses 419651 419682 +31
- Partials 9935 9939 +4
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:
|
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.
Pull Request Overview
This PR enables updating extension resource mapping details for clusters through the updateCluster API. The enhancement allows modifying external configuration details for clusters that are registered with extensions, similar to functionality already available in other parts of the system.
Key changes include:
- Added external details parameter support to the updateCluster API command
- Enhanced the UI to display and edit extension resource mapping details for external hypervisor clusters
- Implemented backend logic to compare and update extension resource map details
Reviewed Changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| api/src/main/java/org/apache/cloudstack/api/command/admin/cluster/UpdateClusterCmd.java | Added externalDetails parameter to support updating extension resource mapping details |
| server/src/main/java/com/cloud/resource/ResourceManagerImpl.java | Integrated extension resource map detail validation and update logic into cluster update flow |
| framework/extensions/src/main/java/org/apache/cloudstack/framework/extensions/manager/ExtensionsManager.java | Added interface methods for checking and updating extension resource map details |
| framework/extensions/src/main/java/org/apache/cloudstack/framework/extensions/manager/ExtensionsManagerImpl.java | Implemented methods to compare existing details with new ones and perform updates |
| framework/extensions/src/test/java/org/apache/cloudstack/framework/extensions/manager/ExtensionsManagerImplTest.java | Added comprehensive unit tests for the new extension resource map detail update functionality |
| ui/src/views/infra/ClusterUpdate.vue | Added UI form field to edit external details for clusters with external hypervisor type and extension ID |
| ui/src/views/extension/ExternalConfigurationDetails.vue | Fixed condition to properly check for extension ID before loading configuration details |
api/src/main/java/org/apache/cloudstack/api/command/admin/cluster/UpdateClusterCmd.java
Show resolved
Hide resolved
.../src/main/java/org/apache/cloudstack/framework/extensions/manager/ExtensionsManagerImpl.java
Show resolved
Hide resolved
.../src/main/java/org/apache/cloudstack/framework/extensions/manager/ExtensionsManagerImpl.java
Show resolved
Hide resolved
harikrishna-patnala
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.
code LGTM
|
Packaging result [SF]: ✖️ el8 ✖️ el9 ✔️ debian ✖️ suse15. SL-JID 14412 |
|
@blueorangutan package |
|
@sureshanaparti 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. |
Signed-off-by: Abhishek Kumar <[email protected]>
|
Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 14417 |
kiranchavala
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.
|
@blueorangutan test |
|
@sureshanaparti a [SL] Trillian-Jenkins test job (ol8 mgmt + kvm-ol8) has been kicked to run smoke tests |
|
[SF] Trillian test result (tid-13940)
|
…pache#11303) * api,server,extensions: allow updating extension resource map details This PR makes changes for allowing updating details for an extension resource mapping. Currently, extensions only support Cluster to be registered therefore changes has been added to updateCluster functionality. Signed-off-by: Abhishek Kumar <[email protected]>


Description
This PR makes changes to allow updating details for an extension resource mapping, as other places where external metadata is added already allow updation. Currently, extensions only support Cluster to be registered therefore, changes have been added to updateCluster functionality.
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?