-
Notifications
You must be signed in to change notification settings - Fork 345
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
Can not run e2e test on a modified cluster #1915
Comments
Hi @STX5, Were you able/are you able to reproduce and capture the logs from the errored container? My guess at this stage is that what you're doing is correct although there is no construct for defining a private registry for the containers used by the e2e test. There is an open pull request #1893 that addresses this. |
If the Sonobuoy e2e pod is using a private registry, it should be able to pull the images if the instructions are followed - https://sonobuoy.io/docs/v0.19.0/pullsecrets/ but the secret should be in the same ns as the e2e pod. PR #1893 addresses the issue when the containers spawned by the e2e process are using a private registry, as they will be created in different namespaces with no access to secrets. |
@franknstyle ,Thank you for your reply. I captured the logs from the errored container:
The container image was pulled with command It was weird, because I had used Whatever, I switched back to my old Intel MacBook, and pushed another image to try again.
It looked good, but the test was not progressing. I looked at the log in the e2e-job pod:
I think maybe @Divya063 's explanation make a point. The e2e test creates other namespaces, which causes the ImagePullSecret not working. BTW,
|
What steps did you take and what happened:
I try to run sonobuoy in my cluster with this command
and the result is like this
I retrived the result and found that the e2e test failed on pulling image "registry.k8s.io/conformance:v1.18.8".
I assume this means my cluster has trouble accessing the public registry, so I pushed this image to my private registry
then I used
sonobuoy gen
to manually create a yaml file(I have to do so, because my private registry requires ImagePullSecret)then I started the test
$ sonobuoy run --wait --kubeconfig kubeconfig.txt -f test.yaml ... ... PLUGIN STATUS RESULT COUNT PROGRESS e2e failed failed 1 systemd-logs complete passed 4
I tried to inspect the cluster when sonobuoy is running
A close look at the error pod
The image was successfully pulled, but it seems that the container didn't correctly start.
I retrived the result, but no useful error message was logged.
What did you expect to happen:
Maybe more specific error message in the result file
Environment:
kubectl version
):/etc/os-release
):The text was updated successfully, but these errors were encountered: