Skip to content

Comments

systemvmtemplate-register: fix using existing template for new zone#12704

Draft
shwstppr wants to merge 1 commit intoapache:4.22from
shapeblue:fix-readding-systemp-newzone
Draft

systemvmtemplate-register: fix using existing template for new zone#12704
shwstppr wants to merge 1 commit intoapache:4.22from
shapeblue:fix-readding-systemp-newzone

Conversation

@shwstppr
Copy link
Contributor

Description

Fixes #12434

When adding a new zone it won't be always correct to assume that template name returned by router hypervisor template config for the new zone is pointing to the correct template.
Backported from main and updated the code first find a registered template by name. If not present, then find an active template which has the same url path.

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?

Fixes apache#12434

When adding a new zone it won't be always correct to assume that
template name returned by router hypervisor template config for the new
zone is pointing to the correct template.
Backported from `main` and updated the code first find a registered
template by name. If not present, then find an active template which has the same url path.

Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
@shwstppr shwstppr force-pushed the fix-readding-systemp-newzone branch from 5489094 to e02910f Compare February 25, 2026 07:50
@shwstppr shwstppr changed the base branch from main to 4.22 February 25, 2026 07:56
@apache apache deleted a comment from github-actions bot Feb 25, 2026
@shwstppr
Copy link
Contributor Author

@blueorangutan package

@blueorangutan
Copy link

@shwstppr 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 ✔️ el10 ✔️ debian ✔️ suse15. SL-JID 16938

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.

Automatic systemvmtemplate seeding in new zone create duplicates

2 participants