Skip to content

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

@codecov
Copy link

codecov bot commented Jan 24, 2024

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 16.92%. Comparing base (fd24509) to head (5f325a7).
⚠️ Report is 653 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff              @@
##               main    #8557      +/-   ##
============================================
+ Coverage     16.07%   16.92%   +0.85%     
- Complexity    12885    12893       +8     
============================================
  Files          5642     5248     -394     
  Lines        494039   461620   -32419     
  Branches      59912    54182    -5730     
============================================
- Hits          79408    78135    -1273     
+ Misses       405828   374830   -30998     
+ Partials       8803     8655     -148     
Flag Coverage Δ
uitests ?
unittests 16.92% <100.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.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@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

@github-actions
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?

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

@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

@winterhazel
Copy link
Member

@blueorangutan package

@blueorangutan
Copy link

@winterhazel 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 11974

Copy link
Member

@winterhazel winterhazel left a comment

Choose a reason for hiding this comment

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

Looks good, did some tests manually in an environment with two secondary storages (one with 26 GB available and another with 50 GB available) using firstfitleastconsumed. Before the changes, the storage with 26 GB would be listed first. After the patch, the 50 GB storage gets listed first.

@winterhazel
Copy link
Member

@DaanHoogland could we run the CI to proceed with the merge?

Copy link
Contributor

@sureshanaparti sureshanaparti left a comment

Choose a reason for hiding this comment

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

clgtm

@DaanHoogland
Copy link
Contributor

@blueorangutan test

@blueorangutan
Copy link

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

@blueorangutan
Copy link

[SF] Trillian test result (tid-12035)
Environment: kvm-ol8 (x2), Advanced Networking with Mgmt server ol8
Total time taken: 107360 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr8557-t12035-kvm-ol8.zip
Smoke tests completed. 139 look OK, 2 have errors, 0 did not run
Only failed and skipped tests results shown below:

Test Result Time (s) Test File
test_01_invalid_upgrade_kubernetes_cluster Failure 3721.71 test_kubernetes_clusters.py
test_02_upgrade_kubernetes_cluster Failure 3639.49 test_kubernetes_clusters.py
test_03_deploy_and_scale_kubernetes_cluster Failure 3646.34 test_kubernetes_clusters.py
test_04_autoscale_kubernetes_cluster Failure 3641.96 test_kubernetes_clusters.py
test_05_basic_lifecycle_kubernetes_cluster Failure 3652.30 test_kubernetes_clusters.py
test_06_delete_kubernetes_cluster Failure 3637.52 test_kubernetes_clusters.py
test_08_upgrade_kubernetes_ha_cluster Failure 3671.51 test_kubernetes_clusters.py
test_10_vpc_tier_kubernetes_cluster Failure 3698.47 test_kubernetes_clusters.py
test_create_pvlan_network Error 0.10 test_pvlan.py

@winterhazel
Copy link
Member

@DaanHoogland test failures seem unrelated and also failed in other PRs, could we rerun or proceed with the merge?

@DaanHoogland
Copy link
Contributor

@blueorangutan package

@blueorangutan
Copy link

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

@DaanHoogland
Copy link
Contributor

@DaanHoogland test failures seem unrelated and also failed in other PRs, could we rerun or proceed with the merge?

@winterhazel , the kubernetes failures were an issue on main that should be fixed. I'm doing an extra round just to be sure about the pvlan error. I don't think it is related though.

ok?

@blueorangutan
Copy link

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

@DaanHoogland
Copy link
Contributor

@blueorangutan test

@blueorangutan
Copy link

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

@blueorangutan
Copy link

[SF] Trillian Build Failed (tid-12111)

@blueorangutan
Copy link

[SF] Trillian Build Failed (tid-12112)

@blueorangutan
Copy link

[LL]Trillian test result (tid-7055)
Environment: kvm-rocky8 (x2), Advanced Networking with Mgmt server r8
Total time taken: 52493 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr8557-t7055-kvm-rocky8.zip
Smoke tests completed. 138 look OK, 3 have errors, 0 did not run
Only failed and skipped tests results shown below:

Test Result Time (s) Test File
test_11_isolated_network_with_dynamic_routed_mode Error 0.23 test_ipv4_routing.py
test_12_vpc_and_tier_with_dynamic_routed_mode Error 3.27 test_ipv4_routing.py
test_12_vpc_and_tier_with_dynamic_routed_mode Error 3.27 test_ipv4_routing.py
test_02_list_cpvm_vm Failure 0.02 test_ssvm.py
test_04_cpvm_internals Failure 0.02 test_ssvm.py
test_01_redundant_vpc_site2site_vpn Failure 407.42 test_vpc_vpn.py

@JoaoJandre JoaoJandre merged commit 864751d into apache:main Feb 14, 2025
26 checks passed
dhslove pushed a commit to ablecloud-team/ablestack-cloud that referenced this pull request Jun 19, 2025
…onsumed` (apache#8557)

* Fix ordering of secondary storages with the algorithm `firstfitleastconsumed`

* return store without checking all

* Add unit tests

---------

Co-authored-by: Gabriel <[email protected]>
Co-authored-by: Fabricio Duarte <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

No open projects
Status: Done

Development

Successfully merging this pull request may close these issues.

9 participants