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

Save systemvm template details for cpvm, ssvm and vr's. #9721

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

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?

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:

Copy link

codecov bot commented Sep 23, 2024

Codecov Report

Attention: Patch coverage is 5.55556% with 34 lines in your changes missing coverage. Please review.

Project coverage is 15.78%. Comparing base (bf2cede) to head (e331976).

Files with missing lines Patch % Lines
...in/java/com/cloud/vm/dao/UserVmDetailsDaoImpl.java 0.00% 15 Missing ⚠️
...om/cloud/consoleproxy/ConsoleProxyManagerImpl.java 0.00% 4 Missing ⚠️
...n/java/com/cloud/vm/VirtualMachineManagerImpl.java 0.00% 3 Missing ⚠️
...va/com/cloud/network/router/NetworkHelperImpl.java 0.00% 3 Missing ⚠️
.../src/main/java/com/cloud/vm/UserVmManagerImpl.java 40.00% 3 Missing ⚠️
.../secondarystorage/SecondaryStorageManagerImpl.java 0.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             @@
##               main    #9721     +/-   ##
===========================================
  Coverage     15.78%   15.78%             
- Complexity    12550    12552      +2     
===========================================
  Files          5625     5625             
  Lines        491958   491968     +10     
  Branches      60504    61727   +1223     
===========================================
+ Hits          77663    77673     +10     
+ Misses       405836   405834      -2     
- Partials       8459     8461      +2     
Flag Coverage Δ
uitests 4.03% <ø> (ø)
unittests 16.60% <5.55%> (+<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.

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

@DaanHoogland DaanHoogland added this to the 4.20.1.0 milestone Oct 1, 2024
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.

4 participants