Skip to content

linstor: enable discard for Linstor storage pools#9770

Merged
yadvr merged 2 commits intoapache:4.19from
LINBIT:linstor-4.18-enable-discard
Oct 17, 2024
Merged

linstor: enable discard for Linstor storage pools#9770
yadvr merged 2 commits intoapache:4.19from
LINBIT:linstor-4.18-enable-discard

Conversation

@rp-
Copy link
Copy Markdown
Contributor

@rp- rp- commented Oct 4, 2024

Description

This PR enables qemu discard support for Linstor storage pools

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
  • test (unit or integration test code)

Feature/Enhancement Scale or Bug Severity

Feature/Enhancement Scale

  • Major
  • Minor

Bug Severity

  • BLOCKER
  • Critical
  • Major
  • Minor
  • Trivial

Screenshots (if appropriate):

How Has This Been Tested?

Tested in a Linstor cluster

How did you try to break this feature and the system with this change?

All Linstor storage backends support discard, so it can be safely enabled.
Copy link
Copy Markdown
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.

lgtm

@sureshanaparti
Copy link
Copy Markdown
Contributor

@blueorangutan package

@blueorangutan
Copy link
Copy Markdown

@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
Copy Markdown

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

Copy link
Copy Markdown
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

@sureshanaparti
Copy link
Copy Markdown
Contributor

@blueorangutan test

@blueorangutan
Copy link
Copy Markdown

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

@blueorangutan
Copy link
Copy Markdown

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

Test Result Time (s) Test File
test_01_list_sec_storage_vm Error 0.01 test_ssvm.py
test_02_list_cpvm_vm Error 0.01 test_ssvm.py
test_03_ssvm_internals Error 0.01 test_ssvm.py
test_04_cpvm_internals Error 0.01 test_ssvm.py
test_05_stop_ssvm Error 0.01 test_ssvm.py
test_06_stop_cpvm Error 0.01 test_ssvm.py
test_07_reboot_ssvm Error 0.01 test_ssvm.py
test_08_reboot_cpvm Error 0.01 test_ssvm.py
test_09_reboot_ssvm_forced Error 0.01 test_ssvm.py
test_10_reboot_cpvm_forced Error 0.01 test_ssvm.py
test_11_destroy_ssvm Error 0.01 test_ssvm.py
test_12_destroy_cpvm Error 0.01 test_ssvm.py
test_13_ss_nfs_version_on_ssvm Error 0.01 test_ssvm.py
test_static_role_account_acls Error 0.01 test_staticroles.py
ContextSuite context=TestVMWareStoragePolicies>:setup Error 0.00 test_storage_policy.py
all_test_templates Skipped --- test_templates.py
all_test_update_security_group Skipped --- test_update_security_group.py
all_test_usage_events Skipped --- test_usage_events.py
all_test_usage Skipped --- test_usage.py
all_test_vm_autoscaling Skipped --- test_vm_autoscaling.py
all_test_vm_deployment_planner Skipped --- test_vm_deployment_planner.py
all_test_vm_life_cycle Skipped --- test_vm_life_cycle.py
all_test_vm_lifecycle_unmanage_import Skipped --- test_vm_lifecycle_unmanage_import.py
all_test_vm_snapshot_kvm Skipped --- test_vm_snapshot_kvm.py
all_test_vm_snapshots Skipped --- test_vm_snapshots.py
all_test_volumes Skipped --- test_volumes.py
all_test_vpc_ipv6 Skipped --- test_vpc_ipv6.py
all_test_vpc_redundant Skipped --- test_vpc_redundant.py
all_test_vpc_router_nics Skipped --- test_vpc_router_nics.py
all_test_vpc_vpn Skipped --- test_vpc_vpn.py
all_test_host_maintenance Skipped --- test_host_maintenance.py
all_test_hostha_kvm Skipped --- test_hostha_kvm.py

@sureshanaparti
Copy link
Copy Markdown
Contributor

@blueorangutan package

@blueorangutan
Copy link
Copy Markdown

@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
Copy Markdown

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

@DaanHoogland
Copy link
Copy Markdown
Contributor

@blueorangutan test

@blueorangutan
Copy link
Copy Markdown

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

@blueorangutan
Copy link
Copy Markdown

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

Test Result Time (s) Test File
ContextSuite context=TestISOUsage>:setup Error 0.00 test_usage.py
test_01_migrate_VM_and_root_volume Error 80.14 test_vm_life_cycle.py
test_02_migrate_VM_with_two_data_disks Error 52.78 test_vm_life_cycle.py
test_08_migrate_vm Error 47.10 test_vm_life_cycle.py

@codecov
Copy link
Copy Markdown

codecov bot commented Oct 11, 2024

Codecov Report

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

Project coverage is 12.27%. Comparing base (bb820f7) to head (ea50ba6).
Report is 759 commits behind head on 4.19.

Files with missing lines Patch % Lines
...ervisor/kvm/resource/LibvirtComputingResource.java 0.00% 4 Missing ⚠️
...ud/hypervisor/kvm/storage/KVMStorageProcessor.java 0.00% 2 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               4.19    #9770      +/-   ##
============================================
- Coverage     12.27%   12.27%   -0.01%     
  Complexity     9333     9333              
============================================
  Files          4699     4699              
  Lines        414691   414697       +6     
  Branches      50917    51558     +641     
============================================
  Hits          50887    50887              
- Misses       357480   357486       +6     
  Partials       6324     6324              
Flag Coverage Δ
unittests 12.27% <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.

@yadvr yadvr changed the base branch from 4.18 to 4.19 October 17, 2024 09:19
@yadvr yadvr added this to the 4.19.2.0 milestone Oct 17, 2024
@yadvr yadvr merged commit 7fbd0a9 into apache:4.19 Oct 17, 2024
@rp- rp- deleted the linstor-4.18-enable-discard branch October 17, 2024 09:54
dhslove pushed a commit to ablecloud-team/ablestack-cloud that referenced this pull request Oct 24, 2024
* linstor: enable discard for Linstor storage pools

All Linstor storage backends support discard, so it can be safely enabled.

* linstor: enable discard for Linstor storage pools CHANGELOG.md
rp- added a commit to LINBIT/cloudstack that referenced this pull request Feb 24, 2026
* linstor: enable discard for Linstor storage pools

All Linstor storage backends support discard, so it can be safely enabled.

* linstor: enable discard for Linstor storage pools CHANGELOG.md
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.

5 participants