-
Notifications
You must be signed in to change notification settings - Fork 599
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
Conversation
6bcd1b2
to
7c46eba
Compare
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]>
7c46eba
to
5e28c8e
Compare
@@ -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) | \ |
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.
I guess unrelated to this, but to make the default secureboot installer?
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.
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
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.
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
/m |
There is a logic failure in the
ImageCacheConfig
controller thatallReady
was alwaysfalse
(now should be fixed).The real issue was that
IMAGECACHE
being in theSystemDisk
wave, and not being provisioned untilEPHEMERAL
is not provisioned, which blocks booting with Image Cache on and without an ISO, by just providing an emptyIMAGECACHE
disk volume. There isn't much use in this scenario, but still good to make it fixed.