Skip to content

Conversation

@BartJM
Copy link
Contributor

@BartJM BartJM commented Sep 23, 2024

Description

This PR adds saving systemvm template settings to the user_vm_details table. Allows systemvms to start with details specified in the systemvm template settings.

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?

Change systemvm template settings to add iothreads and io.policy.
Recreate ssvm, cpvm and vr and verified the details are in the db and the vms are running with the change.

Ran on a ubuntu 20.04 manager, 22.04 kvm host testing env and mbx kvm centos8 env.

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

@boring-cyborg
Copy link

boring-cyborg bot commented Sep 23, 2024

Congratulations on your first Pull Request and welcome to the Apache CloudStack community! If you have any issues or are unsure about any anything please check our Contribution Guide (https://github.com/apache/cloudstack/blob/main/CONTRIBUTING.md)
Here are some useful points:

@codecov
Copy link

codecov bot commented Sep 23, 2024

Codecov Report

❌ Patch coverage is 31.42857% with 24 lines in your changes missing coverage. Please review.
✅ Project coverage is 16.14%. Comparing base (f2a6a2f) to head (69d2347).
⚠️ Report is 144 commits behind head on 4.20.

Files with missing lines Patch % Lines
...in/java/com/cloud/vm/dao/UserVmDetailsDaoImpl.java 0.00% 15 Missing ⚠️
...n/java/com/cloud/vm/VirtualMachineManagerImpl.java 0.00% 3 Missing ⚠️
.../src/main/java/com/cloud/vm/UserVmManagerImpl.java 40.00% 3 Missing ⚠️
...n/java/com/cloud/capacity/CapacityManagerImpl.java 0.00% 2 Missing ⚠️
...om/cloud/network/element/VirtualRouterElement.java 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff            @@
##               4.20    #9721   +/-   ##
=========================================
  Coverage     16.13%   16.14%           
- Complexity    13239    13240    +1     
=========================================
  Files          5656     5656           
  Lines        497622   497631    +9     
  Branches      60339    60342    +3     
=========================================
+ Hits          80302    80328   +26     
+ Misses       408370   408357   -13     
+ Partials       8950     8946    -4     
Flag Coverage Δ
uitests 4.00% <ø> (ø)
unittests 16.99% <31.42%> (+<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.

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

not tested yet

@weizhouapache
Copy link
Member

@blueorangutan package

@blueorangutan
Copy link

@weizhouapache 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 11190

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.

nice thanks @BartJM CLGTM

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

@BartJM
Copy link
Contributor Author

BartJM commented Sep 27, 2024

With the new changes also tested the following on mbx centos8 kvm for user vms. All changes were reflected in the database as expected.

  • Create a vm with ssh key,
  • Create password enabled vm with ssh key.
  • Reset ssh key and password.
  • Set iothreads enabled and io.policy to storage_specific.
  • Create a vm with custom offering, change the custom values and change offering to fixed
  • Change vm with fixed offering to custom offering

@blueorangutan
Copy link

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

@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-11565)
Environment: kvm-ol8 (x2), Advanced Networking with Mgmt server ol8
Total time taken: 66133 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr9721-t11565-kvm-ol8.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_03_create_iso_with_checksum_md5 Error 66.48 test_iso.py
ContextSuite context=TestISOUsage>:setup Error 0.00 test_usage.py
test_disable_oobm_ha_state_ineligible Error 288.31 test_hostha_kvm.py
test_hostha_configure_default_driver Error 77.00 test_hostha_kvm.py
test_hostha_enable_ha_when_host_disabled Error 87.68 test_hostha_kvm.py
test_hostha_enable_ha_when_host_disconected Error 156.97 test_hostha_kvm.py
test_hostha_enable_ha_when_host_in_maintenance Error 151.03 test_hostha_kvm.py
test_hostha_kvm_host_degraded Error 76.92 test_hostha_kvm.py
test_hostha_kvm_host_fencing Error 35.70 test_hostha_kvm.py
test_hostha_kvm_host_recovering Error 34.50 test_hostha_kvm.py
test_remove_ha_provider_not_possible Error 37.59 test_hostha_kvm.py

@DaanHoogland
Copy link
Contributor

I cannot relate any of the errors to the code (yet) trying insanity first.

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

@blueorangutan
Copy link

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

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

Test Result Time (s) Test File

@blueorangutan
Copy link

@Pearl1594 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-12732)

@shwstppr
Copy link
Contributor

@blueorangutan package

@blueorangutan
Copy link

@shwstppr 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 13071

@github-actions
Copy link

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

@rohityadavcloud
Copy link
Member

@BartJM pl address merge conflicts

@BartJM BartJM force-pushed the systemvm-save-template-details branch from e331976 to 69d2347 Compare May 22, 2025 15:18
@Pearl1594 Pearl1594 removed this from ACS 4.20.1 Jun 3, 2025
@Pearl1594 Pearl1594 modified the milestones: 4.20.1, 4.20.2 Jun 3, 2025
@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]: ✖️ el8 ✖️ el9 ✖️ debian ✖️ suse15. SL-JID 13627

@blueorangutan
Copy link

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

@weizhouapache
Copy link
Member

@blueorangutan package

@blueorangutan
Copy link

@weizhouapache 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 14856

@weizhouapache
Copy link
Member

@blueorangutan test ubuntu24 kvm-ubuntu24

@blueorangutan
Copy link

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

@blueorangutan
Copy link

[SF] Trillian Build Failed (tid-14213)

@weizhouapache
Copy link
Member

@blueorangutan package

@blueorangutan
Copy link

@weizhouapache 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 14864

@weizhouapache weizhouapache self-assigned this Sep 8, 2025
@weizhouapache
Copy link
Member

@BartJM
I am closing this PR as #10736 has addressed it

cc @DaanHoogland @harikrishna-patnala

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.

10 participants