cloudstack icon indicating copy to clipboard operation
cloudstack copied to clipboard

Find system VM templates for CKS clusters and SharedFS honouring the preferred architecture

Open nvazquez opened this issue 6 months ago • 20 comments

Description

This PR fixes the selection of system VM templates for CKS clusters honouring the setting system.vm.preferred.architecture

Fixes: #10944

Types of changes

  • [ ] Breaking change (fix or feature that would cause existing functionality to change)
  • [ ] New feature (non-breaking change which adds functionality)
  • [x] 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?

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

nvazquez avatar Jun 02 '25 17:06 nvazquez

Codecov Report

:x: Patch coverage is 24.32432% with 28 lines in your changes missing coverage. Please review. :white_check_mark: Project coverage is 16.16%. Comparing base (823080c) to head (c3b83a4). :warning: Report is 76 commits behind head on 4.20.

Files with missing lines Patch % Lines
...bernetes/cluster/KubernetesClusterManagerImpl.java 11.53% 21 Missing and 2 partials :warning:
...r/actionworkers/KubernetesClusterActionWorker.java 0.00% 2 Missing :warning:
.../java/com/cloud/storage/dao/VMTemplateDaoImpl.java 83.33% 0 Missing and 1 partial :warning:
...KubernetesClusterResourceModifierActionWorker.java 0.00% 1 Missing :warning:
...sharedfs/lifecycle/StorageVmSharedFSLifeCycle.java 50.00% 0 Missing and 1 partial :warning:
Additional details and impacted files
@@             Coverage Diff              @@
##               4.20   #10946      +/-   ##
============================================
+ Coverage     16.14%   16.16%   +0.01%     
- Complexity    13253    13280      +27     
============================================
  Files          5656     5656              
  Lines        497893   497941      +48     
  Branches      60374    60388      +14     
============================================
+ Hits          80405    80489      +84     
+ Misses       408529   408489      -40     
- Partials       8959     8963       +4     
Flag Coverage Δ
uitests 4.00% <ø> (+<0.01%) :arrow_up:
unittests 17.01% <24.32%> (+0.01%) :arrow_up:

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 02 '25 17:06 codecov[bot]

@blueorangutan package

nvazquez avatar Jun 02 '25 17:06 nvazquez

@blueorangutan package

nvazquez avatar Jun 02 '25 17:06 nvazquez

@nvazquez 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 02 '25 17:06 blueorangutan

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

blueorangutan avatar Jun 02 '25 18:06 blueorangutan

@blueorangutan package

nvazquez avatar Jun 02 '25 19:06 nvazquez

@nvazquez 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 02 '25 19:06 blueorangutan

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

blueorangutan avatar Jun 02 '25 19:06 blueorangutan

@blueorangutan package

nvazquez avatar Jun 02 '25 19:06 nvazquez

@nvazquez 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 02 '25 19:06 blueorangutan

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

blueorangutan avatar Jun 02 '25 20:06 blueorangutan

@blueorangutan test

nvazquez avatar Jun 02 '25 20:06 nvazquez

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

blueorangutan avatar Jun 02 '25 20:06 blueorangutan

[SF] Trillian test result (tid-13453) Environment: kvm-ol8 (x2), Advanced Networking with Mgmt server ol8 Total time taken: 55304 seconds Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr10946-t13453-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 avatar Jun 03 '25 12:06 blueorangutan

@nvazquez can you address the outstanding questions & remarks?

rohityadavcloud avatar Jun 10 '25 05:06 rohityadavcloud

Thanks @harikrishna-patnala @rohityadavcloud - I have addressed your comments, can you please re-review? @rohityadavcloud I've added check to compare suitable hosts for the cluster deployment against the selected template arch, so if a host doesn't match the template arch then it will be not considered

@blueorangutan package

nvazquez avatar Jun 17 '25 11:06 nvazquez

@nvazquez 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 17 '25 11:06 blueorangutan

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

blueorangutan avatar Jun 17 '25 12:06 blueorangutan

@rohityadavcloud @harikrishna-patnala wouldn't it be better to filter out the templates that do not match the CKS ISO architecture instead of sorting them by the prefered arch setting? Anyways, I'm adding the check for CKS ISO arch vs selected template arch and failing with a proper message in case of mismatch

nvazquez avatar Jun 18 '25 13:06 nvazquez

@blueorangutan package

nvazquez avatar Jun 18 '25 14:06 nvazquez

@blueorangutan package

nvazquez avatar Jul 11 '25 11:07 nvazquez

@nvazquez 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 Jul 11 '25 11:07 blueorangutan

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

blueorangutan avatar Jul 11 '25 12:07 blueorangutan

@blueorangutan test

DaanHoogland avatar Jul 14 '25 07:07 DaanHoogland

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

blueorangutan avatar Jul 14 '25 08:07 blueorangutan

[SF] Trillian test result (tid-13765) Environment: kvm-ol8 (x2), Advanced Networking with Mgmt server ol8 Total time taken: 57877 seconds Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr10946-t13765-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 avatar Jul 15 '25 00:07 blueorangutan

Thanks for testing @rohityadavcloud - I have pushed a fix to address the comment

@blueorangutan package

nvazquez avatar Jul 30 '25 19:07 nvazquez

@nvazquez 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 Jul 30 '25 19:07 blueorangutan

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

blueorangutan avatar Jul 30 '25 20:07 blueorangutan

@blueorangutan test

nvazquez avatar Jul 30 '25 23:07 nvazquez