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: image cache volume provisioning #10281

Merged
merged 1 commit into from
Feb 4, 2025

Conversation

smira
Copy link
Member

@smira smira commented Feb 3, 2025

There is a logic failure in the ImageCacheConfig controller that allReady was always false (now should be fixed).

The real issue was that IMAGECACHE being in the SystemDisk wave, and not being provisioned until EPHEMERAL is not provisioned, which blocks booting with Image Cache on and without an ISO, by just providing an empty IMAGECACHE disk volume. There isn't much use in this scenario, but still good to make it fixed.

@smira smira force-pushed the fix/image-cache-volume branch from 6bcd1b2 to 7c46eba Compare February 3, 2025 16:55
There is a logic failure in the `ImageCacheConfig` controller that
`allReady` was always `false` (now should be fixed).

The real issue was that `IMAGECACHE` being in the `SystemDisk` wave, and
not being provisioned until `EPHEMERAL` is not provisioned, which blocks
booting with Image Cache on and without an ISO, by just providing an
empty `IMAGECACHE` disk volume. There isn't much use in this scenario,
but still good to make it fixed.

Signed-off-by: Andrey Smirnov <[email protected]>
@smira smira force-pushed the fix/image-cache-volume branch from 7c46eba to 5e28c8e Compare February 3, 2025 18:38
@@ -490,7 +490,7 @@ uki-certs: talosctl ## Generate test certificates for SecureBoot/PCR Signing
.PHONY: cache-create
cache-create: installer imager ## Generate image cache.
@docker run --entrypoint /usr/local/bin/e2e.test registry.k8s.io/conformance:$(KUBECTL_VERSION) --list-images | \
$(TALOSCTL_EXECUTABLE) images integration --installer-tag=$(IMAGE_TAG) --registry-and-user=$(REGISTRY_AND_USERNAME) | \
$(TALOSCTL_EXECUTABLE) images integration --installer-tag=$(IMAGE_TAG)-amd64-secureboot --registry-and-user=$(REGISTRY_AND_USERNAME) | \
Copy link
Member

Choose a reason for hiding this comment

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

I guess unrelated to this, but to make the default secureboot installer?

Copy link
Member Author

Choose a reason for hiding this comment

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

it is in fact related, the change you did to make ISO sd-boot broke image-cache, as it needs to cache a different installer image

Copy link
Member Author

Choose a reason for hiding this comment

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

so I think we should figure out a plan vs. the installer and start using UKIfied installer everywhere now, but it doesn't have to be the this PR

@smira
Copy link
Member Author

smira commented Feb 4, 2025

/m

@talos-bot talos-bot merged commit 5e28c8e into siderolabs:main Feb 4, 2025
51 checks passed
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.

4 participants