Skip to content

Conversation

@hsato03
Copy link
Collaborator

@hsato03 hsato03 commented Jan 27, 2025

Description

Currently, ACS provides none, write-back and write-through options as cache mode when creating disk offerings.

This PR adds the option Hypervisor default as an alternative to cache mode. By using this option, the KVM hypervisor will choose the cache mode to be used by the disk.

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

Screenshots (if appropriate):

Disk offering creation

Screenshot from 2025-01-27 12-13-00

Compute offering with compute only disk offering creation

Screenshot from 2025-01-27 12-14-10

How Has This Been Tested?

  1. I created a disk offering and a compute offering with compute only disk offering using the Hypervisor default as cache mode;
  2. I deployed a VM for each offering from step 1;
  3. I verified through virt-manager that the disk of both VMs was using the Hypervisor default cache mode, as in the screenshot below.

Screenshot from 2025-01-27 12-23-58

@hsato03
Copy link
Collaborator Author

hsato03 commented Jan 27, 2025

@blueorangutan package

@blueorangutan
Copy link

@hsato03 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
Copy link

codecov bot commented Jan 27, 2025

Codecov Report

❌ Patch coverage is 10.00000% with 9 lines in your changes missing coverage. Please review.
✅ Project coverage is 17.50%. Comparing base (5a8a1e2) to head (a0c2a9f).
⚠️ Report is 18 commits behind head on main.

Files with missing lines Patch % Lines
...g/apache/cloudstack/storage/to/VolumeObjectTO.java 0.00% 4 Missing ⚠️
...datastore/adapter/ProviderAdapterDiskOffering.java 0.00% 4 Missing ⚠️
...src/main/java/com/cloud/offering/DiskOffering.java 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff            @@
##               main   #10282   +/-   ##
=========================================
  Coverage     17.50%   17.50%           
- Complexity    15427    15428    +1     
=========================================
  Files          5894     5894           
  Lines        526890   526895    +5     
  Branches      64338    64339    +1     
=========================================
+ Hits          92240    92242    +2     
- Misses       424272   424275    +3     
  Partials      10378    10378           
Flag Coverage Δ
uitests 3.60% <ø> (ø)
unittests 18.56% <10.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.

@blueorangutan
Copy link

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

@github-actions
Copy link

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

@github-actions
Copy link

github-actions bot commented Feb 7, 2025

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

@JoaoJandre
Copy link
Contributor

@hsato03 could you solve the conflicts?

@hsato03
Copy link
Collaborator Author

hsato03 commented Feb 14, 2025

@blueorangutan package

@blueorangutan
Copy link

@hsato03 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 12472

@hsato03
Copy link
Collaborator Author

hsato03 commented Sep 26, 2025

@blueorangutan package

@blueorangutan
Copy link

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

looks good @hsato03 , just the github actions fail. please have a look at that.

@blueorangutan
Copy link

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

@hsato03
Copy link
Collaborator Author

hsato03 commented Sep 26, 2025

@blueorangutan package

@blueorangutan
Copy link

@hsato03 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 15192

@blueorangutan
Copy link

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

@github-actions
Copy link

github-actions bot commented Oct 1, 2025

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

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

@DaanHoogland
Copy link
Contributor

@hsato03 , you have conflicts. otherwise ready for merge.

Copy link
Member

@weizhouapache weizhouapache left a comment

Choose a reason for hiding this comment

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

code lgtm

@hsato03
Copy link
Collaborator Author

hsato03 commented Oct 3, 2025

@blueorangutan package

@blueorangutan
Copy link

@hsato03 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 15280

@blueorangutan
Copy link

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

@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-14532)
Environment: kvm-ol8 (x2), zone: Advanced Networking with Mgmt server ol8
Total time taken: 53458 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr10282-t14532-kvm-ol8.zip
Smoke tests completed. 145 look OK, 2 have errors, 0 did not run
Only failed and skipped tests results shown below:

Test Result Time (s) Test File
test_13_retrieve_vr_default_files Error 1.11 test_diagnostics.py
test_14_retrieve_vr_one_file Error 1.10 test_diagnostics.py
test_15_retrieve_ssvm_default_files Error 1.12 test_diagnostics.py
test_16_retrieve_ssvm_single_file Error 1.10 test_diagnostics.py
test_17_retrieve_cpvm_default_files Error 1.11 test_diagnostics.py
test_18_retrieve_cpvm_single_file Error 1.11 test_diagnostics.py
test_01_deployVMInSharedNetwork Failure 523.18 test_network.py

@DaanHoogland
Copy link
Contributor

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

Test Result Time (s) Test File
test_13_retrieve_vr_default_files Error 1.11 test_diagnostics.py
test_14_retrieve_vr_one_file Error 1.10 test_diagnostics.py
test_15_retrieve_ssvm_default_files Error 1.12 test_diagnostics.py
test_16_retrieve_ssvm_single_file Error 1.10 test_diagnostics.py
test_17_retrieve_cpvm_default_files Error 1.11 test_diagnostics.py
test_18_retrieve_cpvm_single_file Error 1.11 test_diagnostics.py
test_01_deployVMInSharedNetwork Failure 523.18 test_network.py

@hsato03 the diagnostics errors are due to shortage on storage that we are suffering but the network error:

======================================================================
FAIL: test_01_deployVMInSharedNetwork (tests.smoke.test_network.TestSharedNetworkWithConfigDrive)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/marvin/tests/smoke/test_network.py", line 2395, in test_01_deployVMInSharedNetwork
    self._umount_config_drive(ssh, mount_path)
  File "/marvin/tests/smoke/test_network.py", line 2317, in _umount_config_drive
    self.assertTrue(len(result) == 0,
AssertionError: False is not true : After umount directory should be empty but contains: ['sudo: unable to resolve host VM-1fe596b2-9212-4030-9966-17bc0dfd312b: Temporary failure in name resolution']

I will re-run.

@blueorangutan
Copy link

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

Test Result Time (s) Test File
ContextSuite context=TestClusterDRS>:setup Error 0.00 test_cluster_drs.py

@DaanHoogland
Copy link
Contributor

errors are intermitted and not related

@DaanHoogland DaanHoogland merged commit cc31705 into apache:main Oct 8, 2025
27 of 28 checks passed
@github-project-automation github-project-automation bot moved this from In Progress to Done in Apache CloudStack 4.22.0 Oct 8, 2025
dhslove pushed a commit to ablecloud-team/ablestack-cloud that referenced this pull request Oct 17, 2025
sandeeplocharla pushed a commit to NetApp/cloudstack that referenced this pull request Oct 21, 2025
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.

6 participants