cloudstack
cloudstack copied to clipboard
Fix ordering of secondary storages with the algorithm `firstfitleastconsumed`
The algorithm firstfitleastconsumed
orders the secondary storages based on how much free capacity each has and returns the first item of the list that has enough free capacity. However, the ordering of this list is inverted, putting the storages with the least free capacity at the top.
This behaviour has been adjusted, altering the order of the list to guarantee that the secondary storages with the most free capacity get allocated first.
Types of changes
- [ ] Breaking change (fix or feature that would cause existing functionality to change)
- [ ] New feature (non-breaking change which adds functionality)
- [X] Bug fix (non-breaking change which fixes an issue)
- [ ] Enhancement (improves an existing feature and functionality)
- [ ] Cleanup (Code refactoring and cleanup, that may add test cases)
- [ ] build/CI
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
- [ ] Major
- [ ] Minor
Bug Severity
- [ ] BLOCKER
- [ ] Critical
- [ ] Major
- [X] Minor
- [ ] Trivial
Codecov Report
Attention: Patch coverage is 0%
with 11 lines
in your changes missing coverage. Please review.
Project coverage is 15.46%. Comparing base (
3a0c312
) to head (2032c78
). Report is 36 commits behind head on main.
Files | Patch % | Lines |
---|---|---|
...e/image/manager/ImageStoreProviderManagerImpl.java | 0.00% | 11 Missing :warning: |
Additional details and impacted files
@@ Coverage Diff @@
## main #8557 +/- ##
============================================
+ Coverage 15.42% 15.46% +0.03%
- Complexity 11818 11819 +1
============================================
Files 5474 5476 +2
Lines 478602 479855 +1253
Branches 62097 59002 -3095
============================================
+ Hits 73823 74188 +365
- Misses 396649 397511 +862
- Partials 8130 8156 +26
Flag | Coverage Δ | |
---|---|---|
uitests | 4.89% <ø> (+0.70%) |
:arrow_up: |
unittests | 16.18% <0.00%> (+<0.01%) |
:arrow_up: |
Flags with carried forward coverage won't be shown. Click here to find out more.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
@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.
Packaging result [SF]: ✔️ el7 ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 8428
This pull request has merge conflicts. Dear author, please fix the conflicts and sync your branch with the base branch.
@blueorangutan package
@GaOrtiga 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 8833
@sureshanaparti is this ok now? do we need more testing?
@blueorangutan package
@JoaoJandre 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 9278
@DaanHoogland @sureshanaparti @rohityadavcloud @shwstppr could we run the CI here?
ping @sureshanaparti
@sureshanaparti could you trigger the CI here? cc @DaanHoogland
@sureshanaparti could you trigger the CI here? cc @DaanHoogland
sorry @BryanMLima , our lab is a bit tired at the moment. I first wanted to hear from @sureshanaparti if he is alright with the current state of the PR
@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-10013) Environment: kvm-centos7 (x2), Advanced Networking with Mgmt server 7 Total time taken: 50003 seconds Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr8557-t10013-kvm-centos7.zip Smoke tests completed. 126 look OK, 3 have errors, 0 did not run Only failed and skipped tests results shown below:
Test | Result | Time (s) | Test File |
---|---|---|---|
test_01_events_resource | Error |
312.05 | test_events_resource.py |
test_01_events_resource | Error |
312.06 | test_events_resource.py |
test_04_deploy_vm_for_other_user_and_test_vm_operations | Failure |
94.86 | test_network_permissions.py |
ContextSuite context=TestNetworkPermissions>:teardown | Error |
1.50 | test_network_permissions.py |
test_hostha_enable_ha_when_host_disabled | Error |
4.99 | test_hostha_kvm.py |
test_hostha_enable_ha_when_host_in_maintenance | Error |
304.10 | test_hostha_kvm.py |
@DaanHoogland @sureshanaparti, could you trigger the CI here?
This pull request has merge conflicts. Dear author, please fix the conflicts and sync your branch with the base branch.
@BryanMLima @GaOrtiga pls resolve the conflicts. thanks.
@blueorangutan package
@JoaoJandre 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 10462
@blueorangutan package
@JoaoJandre 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]: ✖️ el8 ✖️ el9 ✖️ debian ✖️ suse15. SL-JID 10639
Packaging result [SF]: ✖️ el8 ✖️ el9 ✖️ debian ✖️ suse15. SL-JID 10657