Skip to content
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

Fix ordering of secondary storages with the algorithm firstfitleastconsumed #8557

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

GaOrtiga
Copy link
Contributor

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)
  • 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
  • Minor
  • Trivial

Copy link

codecov bot commented Jan 24, 2024

Codecov Report

Attention: Patch coverage is 0% with 11 lines in your changes missing coverage. Please review.

Project coverage is 15.81%. Comparing base (7d95952) to head (65e4a7d).

Files with missing lines Patch % Lines
...e/image/manager/ImageStoreProviderManagerImpl.java 0.00% 11 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##               main    #8557     +/-   ##
===========================================
  Coverage     15.81%   15.81%             
  Complexity    12553    12553             
===========================================
  Files          5629     5629             
  Lines        492015   492001     -14     
  Branches      61440    62810   +1370     
===========================================
+ Hits          77813    77822      +9     
+ Misses       405879   405859     -20     
+ Partials       8323     8320      -3     
Flag Coverage Δ
uitests 4.48% <ø> (ø)
unittests 16.60% <0.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@sureshanaparti
Copy link
Contributor

@blueorangutan package

@blueorangutan
Copy link

@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.

@blueorangutan
Copy link

Packaging result [SF]: ✔️ el7 ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 8428

Copy link
Contributor

@DaanHoogland DaanHoogland left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clgtm

Copy link

github-actions bot commented Feb 8, 2024

This pull request has merge conflicts. Dear author, please fix the conflicts and sync your branch with the base branch.

Copy link
Contributor

@GutoVeronezi GutoVeronezi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CLGTM

@rohityadavcloud rohityadavcloud added this to the 20.0.0 milestone Feb 16, 2024
@GaOrtiga
Copy link
Contributor Author

GaOrtiga commented Mar 1, 2024

@blueorangutan package

@blueorangutan
Copy link

@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.

@blueorangutan
Copy link

Packaging result [SF]: ✔️ el7 ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 8833

@DaanHoogland
Copy link
Contributor

@sureshanaparti is this ok now? do we need more testing?

@JoaoJandre
Copy link
Contributor

@blueorangutan package

@blueorangutan
Copy link

@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.

@blueorangutan
Copy link

Packaging result [SF]: ✔️ el7 ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 9278

@JoaoJandre
Copy link
Contributor

@DaanHoogland @sureshanaparti @rohityadavcloud @shwstppr could we run the CI here?

@DaanHoogland
Copy link
Contributor

ping @sureshanaparti

@BryanMLima
Copy link
Contributor

@sureshanaparti could you trigger the CI here?
cc @DaanHoogland

@DaanHoogland
Copy link
Contributor

@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

@DaanHoogland
Copy link
Contributor

@blueorangutan test

@blueorangutan
Copy link

@DaanHoogland a [SL] Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests

@blueorangutan
Copy link

[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

@BryanMLima
Copy link
Contributor

@DaanHoogland @sureshanaparti, could you trigger the CI here?

Copy link

This pull request has merge conflicts. Dear author, please fix the conflicts and sync your branch with the base branch.

@sureshanaparti
Copy link
Contributor

@BryanMLima @GaOrtiga pls resolve the conflicts. thanks.

@JoaoJandre
Copy link
Contributor

@blueorangutan package

@blueorangutan
Copy link

@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.

@blueorangutan
Copy link

Packaging result [SF]: ✔️ el7 ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 10462

@JoaoJandre
Copy link
Contributor

@blueorangutan package

@blueorangutan
Copy link

@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.

@blueorangutan
Copy link

Packaging result [SF]: ✖️ el8 ✖️ el9 ✖️ debian ✖️ suse15. SL-JID 10639

@blueorangutan
Copy link

Packaging result [SF]: ✖️ el8 ✖️ el9 ✖️ debian ✖️ suse15. SL-JID 10657

@JoaoJandre JoaoJandre modified the milestones: 4.20.0.0, 4.21.0.0 Sep 10, 2024
@GaOrtiga GaOrtiga force-pushed the fix_ordering_of_storages_with_firstfitleastconsumed branch from 2032c78 to b521a8f Compare September 18, 2024 19:12
@GaOrtiga GaOrtiga force-pushed the fix_ordering_of_storages_with_firstfitleastconsumed branch from b521a8f to 65e4a7d Compare September 18, 2024 19:13
@GaOrtiga
Copy link
Contributor Author

@blueorangutan package

@blueorangutan
Copy link

@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.

@blueorangutan
Copy link

Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 11147

@DaanHoogland
Copy link
Contributor

@blueorangutan LLtest

@blueorangutan
Copy link

@DaanHoogland a [LL] Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants