Fix allocation of VMs with multiple clusters#8611
Conversation
|
@BryanMLima |
edbb12a to
901cf2d
Compare
Thanks, I rebased to |
|
@blueorangutan package |
|
@BryanMLima 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 ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## 4.19 #8611 +/- ##
============================================
- Coverage 20.99% 4.38% -16.62%
============================================
Files 4849 361 -4488
Lines 324441 28700 -295741
Branches 45573 5004 -40569
============================================
- Hits 68121 1258 -66863
+ Misses 246563 27303 -219260
+ Partials 9757 139 -9618
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
|
@DaanHoogland a [SL] Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
server/src/main/java/com/cloud/agent/manager/allocator/impl/FirstFitAllocator.java
Outdated
Show resolved
Hide resolved
710c848 to
6676a4b
Compare
yadvr
left a comment
There was a problem hiding this comment.
LGTM - but this need some (manual) testing
|
@blueorangutan package |
|
@BryanMLima 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. |
|
Packaging result [SF]: ✔️ el7 ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 8820 |
|
@blueorangutan test |
|
@DaanHoogland a [SL] Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
|
[SF] Trillian test result (tid-9375)
|
JoaoJandre
left a comment
There was a problem hiding this comment.
CLGTM, didn't test it
|
@blueorangutan package |
|
@BryanMLima 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. |
|
Packaging result [SF]: ✔️ el7 ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 9676 |
borisstoyanov
left a comment
There was a problem hiding this comment.
LGTM, manually checked the changes.
* Fix allocation of VMs with multiple clusters * Readd debug guard
Description
This PR fixes a scenario where if the first cluster verified by ACS does not have any compatible hosts, an exception is thrown, ignoring the verification of possible compatible hosts in other clusters.
Types of changes
Feature/Enhancement Scale or Bug Severity
Bug Severity
Screenshots (if appropriate):
How Has This Been Tested?
Using the environment above, I added the flexible host tag
falseto Host A, and tried to deploy a VM; which would always result on an incompatible host for Cluster 1. Prior to this patch, theCloudRuntimeExceptionis thrown with the messageNo suitable host found for vm [...].and Host B is not verified.After applying this patch, the message
No suitable host found for VM [%s] in %s.is still logged, however, Host B is verified for compatibility and the VM is deployed as expected.How did you try to break this feature and the system with this change?