kubernetes: Missing gcr.io/authenticated-image-pulling/windows-nanoserver:v3 image for E2E tests
Which jobs are failing?
capz-windows-containerd-master
Which tests are failing?
[sig-node] Container Runtime blackbox test when running a container with a new image should be able to pull from private registry with secret [NodeConformance]
Since when has it been failing?
Since https://github.com/kubernetes/kubernetes/pull/113900 merged.
Testgrid link
https://testgrid.k8s.io/sig-windows-signal#capz-windows-containerd-master
Reason for failure (if possible)
A recent PR [1] updated the image versions we use for E2E tests. However, the windows-nanoserver image is meant to be in a private authenticated registry: gcr.io/authenticated-image-pulling/windows-nanoserver, which requires credentials to pull images from it. This image is required by the [sig-node] Container Runtime blackbox test when running a container with a new image should be able to pull from private registry with secret [NodeConformance] test for Windows. The v3 image does not exist, there’s no automatic promotion process for that registry. Previously, it was built and pushed manually.
Because of this, the https://testgrid.k8s.io/sig-windows-signal#capz-windows-containerd-master jobs have started to fail.
[1] https://github.com/kubernetes/kubernetes/pull/113900
Anything else we need to know?
Related PR: https://github.com/kubernetes/kubernetes/pull/113923
The issue can be resolved if the image is built and pushed to the gcr.io/authenticated-image-pulling/ registry.
This can be done by running:
cd kubernetes/test/images
make REGISTRY=gcr.io/authenticated-image-pulling WHAT=windows-nanoserver all-push
Relevant SIG(s)
/sig windows /sig testing
About this issue
- Original URL
- State: open
- Created 4 years ago
- Comments: 33 (32 by maintainers)
… Also I’m planning to finally take some vacation over the next weeks (incl tomorrow) as 1.31 is out and the CI migration is done … I don’t know if anyone else will respond to these, I cc-ed a few other googlers who may be able to respond internally (?) but by far the preferable outcome is finally cutting this dependency.
Maybe we just don’t even need these tests? I would hope the CRI implementations are testing this, we could probably get pretty far with their tests + a kubelet node_e2e test with a local mock to ensure we pass down secrets through the API and not run cluster e2e tests for this.
we can shut this down. My understanding was that this test would use credential providers to access the repo’s like https://github.com/kubernetes/kops/pull/15974. We started that with https://github.com/kubernetes-sigs/windows-testing/pull/460 but had to revert it because it broke a subset of tests. Tracking updates in https://github.com/kubernetes-sigs/windows-testing/issues/446
+1 I am not sure there is a ton of value other than maybe testing the credential providers now?
Thanks, Ben. Let’s see what @marosset @jsturtevant think?
ClusterIPs are reachable from the host network namespace (either a hostNetwork pod or a non-containerized process). That’s required by the e2e tests.
(Of course it wouldn’t be reachable before kube-proxy started, but that would be true for nodeports too so that’s no different.)
Sorry for conflating those, I got the sense network leads generally considered this a misfeature so it might not be the best plan to make the tests leverage it.
The e2e test may indirectly cover winkernel proxier, but the test is actually “kubernetes can supply image pull credentials to CRI and pull an image that isn’t publicly readable without authentication”. So we need the node container runtime to be able to reach a registry endpoint that requires some known credentials and pull that image.
This node test has been using a GCR registry created in the google.com organization and a fixed exported service account key to access it.
What I’d like is some approach that allows us to avoid hosting a public endpoint for this, so SIG k8s infra doesn’t have to keep up an endpoint with magic permanent fixed creds, and we can stop depending on the endpoint that isn’t controlled by the Kubernetes project.