summaryrefslogtreecommitdiffstats
path: root/roles/docker
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2017-10-31 09:53:25 -0700
committerGitHub <noreply@github.com>2017-10-31 09:53:25 -0700
commit3e2f7911f08504e7da8344df28f008a81897c329 (patch)
treed69b1c0df70f3ebaf15b5bda85ef03d9896f16a6 /roles/docker
parent826455338b15c82cee16656b90e4689cf1b9a165 (diff)
parentfac20bb529215737014ab47b8e0aeaa64f88c7a6 (diff)
downloadopenshift-3e2f7911f08504e7da8344df28f008a81897c329.tar.gz
openshift-3e2f7911f08504e7da8344df28f008a81897c329.tar.bz2
openshift-3e2f7911f08504e7da8344df28f008a81897c329.tar.xz
openshift-3e2f7911f08504e7da8344df28f008a81897c329.zip
Merge pull request #5932 from mgugino-upstream-stage/retry-docker-creds
Automatic merge from submit-queue. Add retry logic to docker auth credentials This commit enables retry on docker login commands. Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1506931
Diffstat (limited to 'roles/docker')
-rw-r--r--roles/docker/tasks/registry_auth.yml4
1 files changed, 4 insertions, 0 deletions
diff --git a/roles/docker/tasks/registry_auth.yml b/roles/docker/tasks/registry_auth.yml
index 65ed60efa..d05b7f2b8 100644
--- a/roles/docker/tasks/registry_auth.yml
+++ b/roles/docker/tasks/registry_auth.yml
@@ -7,6 +7,10 @@
- name: Create credentials for docker cli registry auth
command: "docker --config={{ docker_cli_auth_config_path }} login -u {{ oreg_auth_user }} -p {{ oreg_auth_password }} {{ oreg_host }}"
+ register: openshift_docker_credentials_create_res
+ retries: 3
+ delay: 5
+ until: openshift_docker_credentials_create_res.rc == 0
when:
- oreg_auth_user is defined
- (not docker_cli_auth_credentials_stat.stat.exists or oreg_auth_credentials_replace) | bool