cloudstack icon indicating copy to clipboard operation
cloudstack copied to clipboard

Refactor configuration SystemVMDefaultHypervisor

Open GaOrtiga opened this issue 1 year ago • 22 comments

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)
  • [X] Cleanup (Code refactoring and cleanup, that may add test cases)
  • [ ] build/CI

Feature/Enhancement Scale or Bug Severity

Feature/Enhancement Scale

  • [ ] Major
  • [X] 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 avatar Apr 17 '24 18:04 GaOrtiga

@blueorangutan package

sureshanaparti avatar Apr 18 '24 08:04 sureshanaparti

@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 avatar Apr 18 '24 08:04 blueorangutan

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

blueorangutan avatar Apr 18 '24 09:04 blueorangutan

@blueorangutan test

DaanHoogland avatar Apr 19 '24 12:04 DaanHoogland

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

blueorangutan avatar Apr 19 '24 12:04 blueorangutan

[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

blueorangutan avatar Apr 20 '24 08:04 blueorangutan

@blueorangutan package

BryanMLima avatar Jun 12 '24 18:06 BryanMLima

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

blueorangutan avatar Jun 12 '24 18:06 blueorangutan

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 3.90%. Comparing base (f958896) to head (e66f4e9). Report is 17 commits behind head on main.

:exclamation: There is a different number of reports uploaded between BASE (f958896) and HEAD (e66f4e9). Click for more details.

HEAD has 1 upload less than BASE
Flag BASE (f958896) HEAD (e66f4e9)
unittests 1 0
Additional details and impacted files
@@             Coverage Diff              @@
##               main   #8934       +/-   ##
============================================
- Coverage     16.57%   3.90%   -12.67%     
============================================
  Files          5746     416     -5330     
  Lines        510859   33864   -476995     
  Branches      62140    6078    -56062     
============================================
- Hits          84696    1324    -83372     
+ Misses       416689   32382   -384307     
+ Partials       9474     158     -9316     
Flag Coverage Δ
uitests 3.90% <ø> (-0.01%) :arrow_down:
unittests ?

Flags with carried forward coverage won't be shown. Click here to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

:rocket: New features to boost your workflow:
  • :snowflake: Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • :package: JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

codecov[bot] avatar Jun 12 '24 18:06 codecov[bot]

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

blueorangutan avatar Jun 12 '24 19:06 blueorangutan

@blueorangutan package

JoaoJandre avatar Aug 13 '24 19:08 JoaoJandre

@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 avatar Aug 13 '24 19:08 blueorangutan

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

blueorangutan avatar Aug 13 '24 20:08 blueorangutan

@blueorangutan package

GaOrtiga avatar Sep 12 '24 17:09 GaOrtiga

@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 avatar Sep 12 '24 17:09 blueorangutan

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

blueorangutan avatar Sep 12 '24 18:09 blueorangutan

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

DaanHoogland avatar Sep 16 '24 14:09 DaanHoogland

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

It is ready for review.

GaOrtiga avatar Sep 18 '24 18:09 GaOrtiga

@blueorangutan package

DaanHoogland avatar Sep 19 '24 18:09 DaanHoogland

@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 avatar Sep 19 '24 18:09 blueorangutan

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

blueorangutan avatar Sep 19 '24 19:09 blueorangutan

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

blueorangutan avatar Sep 20 '24 08:09 blueorangutan

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

github-actions[bot] avatar Mar 27 '25 17:03 github-actions[bot]

Hi @GaOrtiga Can you check / resolve any conflicts in this PR branch.

sureshanaparti avatar Jun 05 '25 10:06 sureshanaparti

@blueorangutan package

DaanHoogland avatar Oct 10 '25 08:10 DaanHoogland

@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 avatar Oct 10 '25 08:10 blueorangutan

@GaOrtiga ,can you address this comment: https://github.com/apache/cloudstack/pull/8934#discussion_r1766224572 , please?

DaanHoogland avatar Oct 10 '25 09:10 DaanHoogland

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

blueorangutan avatar Oct 10 '25 11:10 blueorangutan