From: Dimitri Savineau Date: Thu, 9 Jan 2020 19:57:08 +0000 (-0500) Subject: rolling_update: run registry auth before upgrading X-Git-Tag: v4.0.8~14 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=f042ece9aff5d6421d21bf1553211c72fe813aea;p=ceph-ansible.git rolling_update: run registry auth before upgrading There's some tasks using the new container image during the rolling upgrade playbook that needs to execute the registry login first otherwise the nodes won't be able to pull the container image. Unable to find image 'xxx.io/foo/bar:latest' locally Trying to pull repository xxx.io/foo/bar ... /usr/bin/docker-current: Get https://xxx.io/v2/foo/bar/manifests/latest: unauthorized Signed-off-by: Dimitri Savineau (cherry picked from commit 3f344fdefe02c3b597b886cbef8b7456a7db28eb) --- diff --git a/infrastructure-playbooks/rolling_update.yml b/infrastructure-playbooks/rolling_update.yml index d32e15df3..a604459b9 100644 --- a/infrastructure-playbooks/rolling_update.yml +++ b/infrastructure-playbooks/rolling_update.yml @@ -79,6 +79,13 @@ - import_role: name: ceph-infra + - import_role: + name: ceph-container-common + tasks_from: registry + when: + - containerized_deployment | bool + - ceph_docker_registry_auth | bool + - import_role: name: ceph-validate