| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
There was a problem hiding this comment.
Note
Copilot was unable to run its full agentic suite in this review.
Fixes DRS skip behavior when the SKIP_DRS VM detail is set but not present in the in-memory VM details map by centralizing skip logic and consulting the DB-backed VM details DAO.
Changes:
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Sorry, something went wrong.
Codecov Report❌ Patch coverage is 52.63158% with 9 lines in your changes missing coverage. Please review. @@ Coverage Diff @@
## 4.20 #12994 +/- ##
============================================
- Coverage 16.26% 16.26% -0.01%
+ Complexity 13433 13432 -1
============================================
Files 5665 5667 +2
Lines 500572 500681 +109
Branches 60792 60792
============================================
- Hits 81417 81415 -2
- Misses 410047 410160 +113
+ Partials 9108 9106 -2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness.
|
Sorry, something went wrong.
There was a problem hiding this comment.
Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Sorry, something went wrong.
|
@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. |
Sorry, something went wrong.
|
Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ el10 ✔️ debian ✔️ suse15. SL-JID 17444 |
Sorry, something went wrong.
|
[SF] Trillian Build Failed (tid-15852) |
Sorry, something went wrong.
|
@sureshanaparti a [SL] Trillian-Jenkins test job (ol8 mgmt + kvm-ol8) has been kicked to run smoke tests |
Sorry, something went wrong.
|
[SF] Trillian test result (tid-15855)
|
Sorry, something went wrong.
There was a problem hiding this comment.
As discussed, if we could add a log message saying we are skipping a vm from drs plan when "generateClusterDrsPlan" api is called it will be beneficial to the admin user when troubleshooting.
Also, please update the doc about the "skipFromDRS" in vmsettings
https://docs.cloudstack.apache.org/en/4.22.0.0/adminguide/clusters.html#cloudstack-drs
Sorry, something went wrong.
…erviceImpl.java Co-authored-by: Suresh Kumar Anaparti <sureshkumar.anaparti@gmail.com>
Created a doc PR here: apache/cloudstack-documentation#653 |
Sorry, something went wrong.
|
@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. |
Sorry, something went wrong.
|
Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ el10 ✔️ debian ✔️ suse15. SL-JID 17932 |
Sorry, something went wrong.
|
@vishesh92 a [SL] Trillian-Jenkins test job (ol8 mgmt + kvm-ol8) has been kicked to run smoke tests |
Sorry, something went wrong.
|
[SF] Trillian test result (tid-16158)
|
Sorry, something went wrong.
|
@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. |
Sorry, something went wrong.
There was a problem hiding this comment.
code lgtm
not tested
Sorry, something went wrong.
|
Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ el10 ✔️ debian ✔️ suse15. SL-JID 18485 |
Sorry, something went wrong.
|
@vishesh92 a [SL] Trillian-Jenkins test job (ol8 mgmt + kvm-ol8) has been kicked to run smoke tests |
Sorry, something went wrong.
|
[SF] Trillian test result (tid-16495)
|
Sorry, something went wrong.
(cherry picked from commit a4b102f)
The DRS work in this branch builds on shouldSkipVMForDRS() and the bulk skip-detail lookup that apache#12994 introduced, and 4.22.1.1 predates it. Taken as the adapted form that reached the 4.22 branch rather than the original commit: apache#12994 was written against UserVmDetailsDao and picked up the VMInstanceDetailsDao rename on the way up through the forward merge, so cherry-picking it directly imports a class that does not exist on any 4.22 ref. Cherry picked from a4b102f as merged into 4.22. Signed-off-by: Brad House <bhouse@nexthop.ai>
| Back | FazBrowse Home | New Git URL |
Description
When a VM has skipFromDRS detail set, it is still not getting skipped. This PR fixes it.
DetailsDoc PR - apache/cloudstack-documentation#653
This pull request refactors how the system determines whether a VM should be skipped for DRS (Distributed Resource Scheduler) operations. The main improvement is centralizing and simplifying the skip logic, now using the `UserVmDetailsDao` to check VM details in the database rather than relying solely on in-memory details. This ensures more accurate and consistent behavior.
Key changes:
Refactoring skip logic for DRS:
Improved VM detail retrieval:
Dependency injection:
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?