Skip to content
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 semver image of ubuntu #229

Merged
merged 3 commits into from
Mar 18, 2025
Merged

Fix semver image of ubuntu #229

merged 3 commits into from
Mar 18, 2025

Conversation

majst01
Copy link
Contributor

@majst01 majst01 commented Mar 18, 2025

Description

metal-api will now error out if the image version is not semver compatibel. This is the case for all image versions which have numbers with leading zeros like 24.04.

Breaking Change

A change in the semver library that is used by metal-stack and in the Gardener project forces us to rename the identifiers that we typically use for OS images like Ubuntu 24.04. The library now requires stricter semantic versions, not allow leading zeroes in version segments. 

In case you use for example `ubuntu-24.04.20250228` as an ID for an `image` in the metal-api, this needs to become `ubuntu-24.4.20250228`. 

In order to introduce the new identifier-format, before updating to this release of metal-stack, an image has to be created following the new version format. This image then co-exists with the old image format. After this, all machines referencing the old image must be reprovisioned with the new image ID format.

After all the references were migrated to the new image format, the old versions must be removed from the metal-api before upgrading to this release. Please adapt your deployments accordingly.

Unfortunately, there is no other way to migrate this ID in any other way than forking the Gardener project, which we did not want to do. If you encounter bigger issues with this step, please contact us in our Slack channel.

@majst01 majst01 requested a review from a team as a code owner March 18, 2025 07:12
@Gerrit91
Copy link
Contributor

References metal-stack/metal-api#612.

@Gerrit91 Gerrit91 merged commit aae31b8 into master Mar 18, 2025
5 checks passed
@Gerrit91 Gerrit91 deleted the fix-ubuntu-semver branch March 18, 2025 11:42
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.

3 participants