Skip to content

Update System VM template Guest OS version #11291

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

Draft
wants to merge 1 commit into
base: 4.20
Choose a base branch
from

Conversation

sureshanaparti
Copy link
Contributor

Description

This PR updates System VM template Guest OS version, to Debian GNU/Linux 12 (64-bit).

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?

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

Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR updates the System VM template Guest OS version from older Debian/Linux versions to Debian GNU/Linux 12 (64-bit) across all hypervisor types. This is a bug fix to ensure system VMs use the correct and updated guest OS configuration.

Key Changes:

  • Updated guest OS ID mapping for all hypervisors to use Debian 12 (LINUX_12_ID = 363)
  • Added dynamic guest OS lookup functionality to resolve the actual guest OS ID at runtime
  • Replaced hardcoded legacy Linux IDs with the new Debian 12 configuration

@sureshanaparti sureshanaparti force-pushed the systemvm-template-version-update branch from 31185a5 to f6b506b Compare July 24, 2025 18:38
@sureshanaparti
Copy link
Contributor Author

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

Comment on lines -337 to -338
put(Hypervisor.HypervisorType.XenServer, OTHER_LINUX_ID);
put(Hypervisor.HypervisorType.VMware, OTHER_LINUX_ID);
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think it matters, but historically, we've used Other Linux (64-bits) for the XS and Vmware. https://docs.cloudstack.apache.org/en/4.15.1.0/upgrading/upgrade/upgrade-4.14.html#update-system-vm-templates

Copy link

codecov bot commented Jul 24, 2025

Codecov Report

Attention: Patch coverage is 38.09524% with 13 lines in your changes missing coverage. Please review.

Project coverage is 16.15%. Comparing base (eeb4d55) to head (f6b506b).

Files with missing lines Patch % Lines
...om/cloud/upgrade/SystemVmTemplateRegistration.java 38.09% 13 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               4.20   #11291      +/-   ##
============================================
- Coverage     16.15%   16.15%   -0.01%     
- Complexity    13272    13274       +2     
============================================
  Files          5656     5656              
  Lines        497814   497827      +13     
  Branches      60380    60381       +1     
============================================
  Hits          80435    80435              
- Misses       408428   408440      +12     
- Partials       8951     8952       +1     
Flag Coverage Δ
uitests 4.00% <ø> (ø)
unittests 17.00% <38.09%> (-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.

@blueorangutan
Copy link

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

Comment on lines +602 to +614
public void updateSystemVmTemplateGuestOsId() {
String systemVmGuestOsName = "Debian GNU/Linux 12 (64-bit)";
GuestOSVO guestOS = guestOSDao.findOneByDisplayName(systemVmGuestOsName);
if (guestOS != null) {
LOGGER.debug("Updating SystemVM Template Guest OS [{}] id", systemVmGuestOsName);
SystemVmTemplateRegistration.LINUX_12_ID = Math.toIntExact(guestOS.getId());
hypervisorGuestOsMap.put(Hypervisor.HypervisorType.KVM, LINUX_12_ID);
hypervisorGuestOsMap.put(Hypervisor.HypervisorType.XenServer, LINUX_12_ID);
hypervisorGuestOsMap.put(Hypervisor.HypervisorType.VMware, LINUX_12_ID);
hypervisorGuestOsMap.put(Hypervisor.HypervisorType.Hyperv, LINUX_12_ID);
hypervisorGuestOsMap.put(Hypervisor.HypervisorType.LXC, LINUX_12_ID);
}
}
Copy link
Contributor

Choose a reason for hiding this comment

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

is there any way we can detect? this remains a maintenance issue after this change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy