Skip to content

Refactor configuration SystemVMDefaultHypervisor#8934

Merged
harikrishna-patnala merged 2 commits into
apache:4.22from
scclouds:Refactor_config_SystemVMDefaultHypervisor
Jan 27, 2026
Merged

Refactor configuration SystemVMDefaultHypervisor#8934
harikrishna-patnala merged 2 commits into
apache:4.22from
scclouds:Refactor_config_SystemVMDefaultHypervisor

Conversation

@GaOrtiga

Copy link
Copy Markdown
Collaborator

Description

The configuration SystemVMDefaultHypervisor is not dynamic, it is necessary to restart the management server after each alteration to its value. Besides, its input is a String, which forces the user to type in the name of the chosen hypervisor, being subject to typos.

This configuration was refactored, allowing its value to be altered in runtime; besides, its input was converted to a select, in order to facilitate the process of choosing the new value.

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

How Has This Been Tested?

I changed the values of the configurations and verified that the default hypervisors for new system vms changed accordingly

@GaOrtiga GaOrtiga changed the title refactor configuration SystemVMDefaultHypervisor Refactor configuration SystemVMDefaultHypervisor Apr 17, 2024
@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]: ✔️ el7 ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 9306

@DaanHoogland

Copy link
Copy Markdown
Contributor

@blueorangutan test

@blueorangutan

Copy link
Copy Markdown

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

@blueorangutan

Copy link
Copy Markdown

[SF] Trillian test result (tid-9929)
Environment: kvm-centos7 (x2), Advanced Networking with Mgmt server 7
Total time taken: 47242 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr8934-t9929-kvm-centos7.zip
Smoke tests completed. 127 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_events_resource Error 300.66 test_events_resource.py
test_01_events_resource Error 300.67 test_events_resource.py
test_04_deploy_vm_for_other_user_and_test_vm_operations Failure 92.05 test_network_permissions.py
ContextSuite context=TestNetworkPermissions>:teardown Error 1.45 test_network_permissions.py

@BryanMLima BryanMLima closed this Jun 12, 2024
@BryanMLima BryanMLima reopened this Jun 12, 2024
@BryanMLima

Copy link
Copy Markdown
Contributor

@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

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

codecov Bot commented Jun 12, 2024

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 50.00000% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 17.59%. Comparing base (f958896) to head (29843c8).
⚠️ Report is 536 commits behind head on 4.22.

Files with missing lines Patch % Lines
...n/java/com/cloud/resource/ResourceManagerImpl.java 0.00% 2 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               4.22    #8934      +/-   ##
============================================
+ Coverage     16.57%   17.59%   +1.01%     
- Complexity    13986    15599    +1613     
============================================
  Files          5746     5910     +164     
  Lines        510859   529730   +18871     
  Branches      62140    64718    +2578     
============================================
+ Hits          84696    93216    +8520     
- Misses       416689   426021    +9332     
- Partials       9474    10493    +1019     
Flag Coverage Δ
uitests 3.57% <ø> (-0.34%) ⬇️
unittests 18.66% <50.00%> (+1.19%) ⬆️

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

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

@JoaoJandre

Copy link
Copy Markdown
Contributor

@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

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

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

@GaOrtiga GaOrtiga force-pushed the Refactor_config_SystemVMDefaultHypervisor branch from 9d226fe to 13becce Compare September 12, 2024 17:01
@GaOrtiga

Copy link
Copy Markdown
Collaborator Author

@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

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

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

@DaanHoogland

Copy link
Copy Markdown
Contributor

@GaOrtiga @BryanMLima what is the status of this PR?
@sureshanaparti @weizhouapache , any concerns to be dealt with?

@GaOrtiga

Copy link
Copy Markdown
Collaborator Author

@GaOrtiga @BryanMLima what is the status of this PR? @sureshanaparti @weizhouapache , any concerns to be dealt with?

It is ready for review.

@DaanHoogland

Copy link
Copy Markdown
Contributor

@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

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

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

@blueorangutan

Copy link
Copy Markdown

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

@github-actions

Copy link
Copy Markdown

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

@sureshanaparti sureshanaparti added this to the 4.21.0 milestone Jun 5, 2025
@DaanHoogland

Copy link
Copy Markdown
Contributor

@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

@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

DaanHoogland commented Oct 10, 2025

Copy link
Copy Markdown
Contributor

@GaOrtiga ,can you address this comment:
#8934 (comment) , please?

@blueorangutan

Copy link
Copy Markdown

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

@DaanHoogland

Copy link
Copy Markdown
Contributor

@sureshanaparti @weizhouapache are you ok with this as is?

@DaanHoogland DaanHoogland changed the base branch from main to 4.22 December 2, 2025 07:48
@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-14896)
Environment: kvm-ol8 (x2), zone: Advanced Networking with Mgmt server ol8
Total time taken: 49033 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr8934-t14896-kvm-ol8.zip
Smoke tests completed. 149 look OK, 0 have errors, 0 did not run
Only failed and skipped tests results shown below:

Test Result Time (s) Test File

@DaanHoogland

Copy link
Copy Markdown
Contributor

@sureshanaparti @weizhouapache are your concerns met?

@weizhouapache weizhouapache left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

code lgtm

Comment thread server/src/main/java/com/cloud/resource/ResourceManagerImpl.java Outdated
@sureshanaparti

Copy link
Copy Markdown
Contributor

@sureshanaparti @weizhouapache are your concerns met?

looks good, need some testing with multiple hypervisors env.

@GaOrtiga

Copy link
Copy Markdown
Collaborator Author

@sureshanaparti @weizhouapache are your concerns met?

looks good, need some testing with multiple hypervisors env.

@sureshanaparti I did not test in an env with multiple hypervisors, but I did test changing the value and seeing if the defined hypervisor would be passed during system VM creation (which worked).

@harikrishna-patnala harikrishna-patnala self-assigned this Jan 27, 2026

@harikrishna-patnala harikrishna-patnala left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Tested in my existing environment.

  1. "system.vm.default.hypervisor" value changed from null to "Any"
  2. Did not find any issues in getting up a new system VM
  3. Changed the setting to "KVM" and new system VM came up well

@harikrishna-patnala harikrishna-patnala merged commit 128dbe2 into apache:4.22 Jan 27, 2026
26 checks passed
sandeeplocharla pushed a commit to NetApp/cloudstack that referenced this pull request Feb 6, 2026
* refactor configuration SystemVMDefaultHypervisor

* change variable name

---------

Co-authored-by: Gabriel <gabriel.fernandes@scclouds.com.br>
dhslove pushed a commit to ablecloud-team/ablestack-cloud that referenced this pull request Mar 3, 2026
* refactor configuration SystemVMDefaultHypervisor

* change variable name

---------

Co-authored-by: Gabriel <gabriel.fernandes@scclouds.com.br>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: In Progress

Development

Successfully merging this pull request may close these issues.

9 participants