]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
rolling_update: run registry auth before upgrading
authorDimitri Savineau <dsavinea@redhat.com>
Thu, 9 Jan 2020 19:57:08 +0000 (14:57 -0500)
committerDimitri Savineau <savineau.dimitri@gmail.com>
Fri, 10 Jan 2020 01:16:07 +0000 (20:16 -0500)
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 <dsavinea@redhat.com>
(cherry picked from commit 3f344fdefe02c3b597b886cbef8b7456a7db28eb)

infrastructure-playbooks/rolling_update.yml

index d32e15df3221e0bf106a983af0a0acbac47cd070..a604459b99286dc9b15086e19a9f7d80a6db7dfa 100644 (file)
     - 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