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
Fix systemVM template name in metadata file #5598
Conversation
@blueorangutan package |
@vladimirpetrov a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
@Pearl1594 @vladimirpetrov I suppose we'll need to do oss (or non- noredist) packages build, or @GutoVeronezi can you help review/test this? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
code looks good and makes functional sense, but a security update might force us to issue a tiny number for a new template, i.e. 4.16.1.1
Do we cater for such a scenario?
@DaanHoogland It doesn't currently the naming convention considered is systemvm--x.y.z |
Packaging result: ✔️ el7 ✔️ el8 ✔️ debian ✔️ suse15. SL-JID 1598 |
@blueorangutan test |
@Pearl1594 a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
I will do some testing and return with the results. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM based on manual testing, tested with regular and oss build.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
I builded the packages without noredis
, rolled back my lab to 4.15, seeded systemvm-template-4.16 and then upgraded the lab with 4.16. All worked as expected.
Thanks @GutoVeronezi @vladimirpetrov @rhtyd @DaanHoogland, merging |
Trillian test result (tid-2454)
|
Description
This PR fixes the issue observed during upgrades, wherein, when a SystemVM template is already registered prior upgrade, the auto-upgrade path still gets invoked - which it shouldn't. The reason for this behavior is the incorrect name of the systemVM template placed in the metadata.ini file, which is used as an input during the upgrade process to identify the template names, checksums, download path, etc. In case of noredist builds, this would cause unnecessary re-registration; in case of non noredist builds, this could lead to the upgrade failing, as it fails to identify the registered template and invokes the auto-upgrade logic - which would fail(expected) due to the absence of the template files.
For ex, a snippet of the metadata.ini file (for KVM SystemVM template details)
Types of changes
Feature/Enhancement Scale or Bug Severity
Bug Severity
Screenshots (if appropriate):
How Has This Been Tested?
Upgraded the env from 4.15.2 to 4.16, by first registering the systemVM template - upgrade successful & doesn't re-register the template as template is found to be already present.
Pos Fix, the snippet of metadata.ini file looks as follows: