Attempting to pull missing image from insecure registry fails

Bug #1839649 reported by Joseph Borg
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Containerd Subordinate Charm
Triaged
Medium
Joseph Borg

Bug Description

Accumulating:
    https://github.com/containerd/cri/issues/1201
    https://discourse.jujucharms.com/t/cant-create-pod-with-container-from-a-custom-registry

Containerd via CRI fails to pull from a plain HTTP or plain HTTP with basic auth registry. This seems to be a bug in containerd.

Error:
    Failed to pull image "172.31.55.16:5000/nginx:latest": rpc error: code = Unknown desc = failed to resolve image "172.31.55.16:5000/nginx:latest": no available registry endpoint: failed to do request: Head https://172.31.55.16:5000/v2/nginx/manifests/latest: http: server gave HTTP response to HTTPS client

Joseph Borg (joeborg)
Changed in charm-containerd:
status: New → Triaged
importance: Undecided → High
Revision history for this message
Joseph Borg (joeborg) wrote :
Changed in charm-containerd:
assignee: nobody → Joseph Borg (joeborg)
Revision history for this message
Joseph Borg (joeborg) wrote :

This is still affecting us on 1.3.3.

Revision history for this message
Joseph Borg (joeborg) wrote :

Once this is fixed, we need to look at the docker-registry relation to make sure the URL is set correctly, as well as the username, password and TLS details.

George Kraft (cynerva)
Changed in charm-containerd:
importance: High → Medium
Revision history for this message
Brett Milford (brettmilford) wrote :
Revision history for this message
Joseph Borg (joeborg) wrote :

Hi Brett, the PR you've linked is for a similar, but distinct, issue. We're currently waiting for containerd 1.3.7 to make it into apt as this has been fixed in that version and tested by us.

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.