cdk-addons build doesn't log docker pull failures

Bug #1843441 reported by Mike Wilson
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Charmed Kubernetes Testing
Triaged
Low
Kevin W Monroe

Bug Description

When docker pull fails for some reason, the error is not captured and reported. It later shows up as a failure when trying to push the image into rocks.

An example from a failed run:
01:06:05 + docker pull quay.io/cephcsi/rbdplugin:v1.0.0
01:06:05 + grep -qi no matching manifest for
01:06:27 + RAW_IMAGE=quay.io/cephcsi/rbdplugin:v1.0.0
01:06:27 + grep -qi docker.io/
01:06:27 + echo quay.io/cephcsi/rbdplugin:v1.0.0
01:06:27 + grep -qi k8s.gcr.io/
01:06:27 + echo quay.io/cephcsi/rbdplugin:v1.0.0
01:06:27 + grep -qi quay.io/
01:06:27 + echo quay.io/cephcsi/rbdplugin:v1.0.0
01:06:27 + sed -e s|quay.io/||g
01:06:27 + echo quay.io/cephcsi/rbdplugin:v1.0.0
01:06:27 + RAW_IMAGE=cephcsi/rbdplugin:v1.0.0
01:06:27 + break
01:06:27 + grep -qi coredns
01:06:27 + echo cephcsi/rbdplugin:v1.0.0
01:06:27 + grep -qi k8s-dns-kube-dns
01:06:27 + echo cephcsi/rbdplugin:v1.0.0
01:06:27 + echo cephcsi/rbdplugin:v1.0.0
01:06:27 + grep -qi k8s-dns-dnsmasq-nanny
01:06:27 + echo cephcsi/rbdplugin:v1.0.0
01:06:27 + grep -qi k8s-dns-sidecar
01:06:27 + docker tag quay.io/cephcsi/rbdplugin:v1.0.0 upload.rocks.canonical.com:5000/cdk/cephcsi/rbdplugin:v1.0.0
01:06:27 Error response from daemon: No such image: quay.io/cephcsi/rbdplugin:v1.0.0

This makes this type of error difficult to track down. Errors should somehow be captured from https://github.com/charmed-kubernetes/jenkins/blob/master/jobs/build-snaps/build-release-cdk-addons.groovy#L141 and if possible, detected and a retry mechanism put in place to prevent transient network issues from bringing down the build.

Changed in charmed-kubernetes-testing:
assignee: nobody → Kevin W Monroe (kwmonroe)
status: New → Confirmed
importance: Undecided → High
George Kraft (cynerva)
Changed in charmed-kubernetes-testing:
importance: High → Medium
George Kraft (cynerva)
Changed in charmed-kubernetes-testing:
importance: Medium → Low
status: Confirmed → Triaged
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.