container images in k8s validation should come from rocks.canonical.com

Bug #1903213 reported by David Coronel
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Charmed Kubernetes Testing
Fix Released
High
Kevin W Monroe

Bug Description

The k8s validation suite we use in charmed kubernetes includes a hello-world test that pulls a container image from gcr.io/google-samples/node-hello:1.0:

https://github.com/charmed-kubernetes/jenkins/blob/master/jobs/integration/test_service_endpoints.py#L36

This is a request to pull the container image from rocks.canonical.com instead so that a charmed kubernetes deployment doesn't have a dependency on the gcr.io container registry.

This was caught when I deployed charmed kubernetes in an environment where we allowed rocks.canonical.com and docker hub. Everything deployed fine but the validation failed when it tried to use that hello world image from gcr.io.

Details from hello world pod:

  Type Reason Age From Message
  ---- ------ ---- ---- -------
  Normal Scheduled 5m29s default-scheduler Successfully assigned default/hello-world-fccd5c8f-xj7kg to <hostname>
  Normal Pulling 3m56s (x4 over 5m28s) kubelet Pulling image "gcr.io/google-samples/node-hello:1.0"
  Warning Failed 3m56s (x4 over 5m28s) kubelet Failed to pull image "gcr.io/google-samples/node-hello:1.0": rpc error: code = Unknown desc = failed to pull and unpack image "gcr.io/google-samples/node-hello:1.0": failed to copy: httpReaderSeeker: failed open: failed to do request: Get https://storage.googleapis.com/artifacts.google-samples.appspot.com/containers/images/sha256:7b40647e93b7de2fbeb95076bb5a56f6024c3c4217b8e810d36b8f10c535e239: EOF
  Warning Failed 3m56s (x4 over 5m28s) kubelet Error: ErrImagePull
  Warning Failed 3m44s (x6 over 5m27s) kubelet Error: ImagePullBackOff
  Normal BackOff 18s (x21 over 5m27s) kubelet Back-off pulling image "gcr.io/google-samples/node-hello:1.0"

Changed in charmed-kubernetes-testing:
assignee: nobody → Kevin W Monroe (kwmonroe)
status: New → Triaged
Revision history for this message
Kevin W Monroe (kwmonroe) wrote :
Changed in charmed-kubernetes-testing:
status: Triaged → In Progress
Revision history for this message
Kevin W Monroe (kwmonroe) wrote :

I adjusted all generic image definitions to use the rocks equivalent. PR for review:

https://github.com/charmed-kubernetes/jenkins/pull/656

Changed in charmed-kubernetes-testing:
importance: Undecided → High
summary: - hello-world container image in k8s validation should come from
- rocks.canonical.com
+ container images in k8s validation should come from rocks.canonical.com
Changed in charmed-kubernetes-testing:
status: In Progress → Fix Committed
George Kraft (cynerva)
Changed in charmed-kubernetes-testing:
milestone: none → 1.20
Changed in charmed-kubernetes-testing:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.