]> 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>
Thu, 9 Jan 2020 21:14:33 +0000 (16:14 -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>
infrastructure-playbooks/rolling_update.yml

index 782ab1dab7319652bb52dff267a8ca27db97a961..7c54e530d6f8c1158ad4a98bb6a2eb17517e8078 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