summaryrefslogtreecommitdiffstats
path: root/roles/openshift_hosted/tasks/wait_for_pod.yml
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2018-01-02 17:31:33 -0800
committerGitHub <noreply@github.com>2018-01-02 17:31:33 -0800
commit3fda828a7ec8a234c309d99cd885f110c570bea2 (patch)
tree97af52eb6b7f78d241e11ebcf8f5d2db49bdedc6 /roles/openshift_hosted/tasks/wait_for_pod.yml
parentb1be9cd5d7573dc9d18ca27915bb383f8591117b (diff)
parent28b254886bf17251e973bfdad4dd4c89e26187fc (diff)
downloadopenshift-3fda828a7ec8a234c309d99cd885f110c570bea2.tar.gz
openshift-3fda828a7ec8a234c309d99cd885f110c570bea2.tar.bz2
openshift-3fda828a7ec8a234c309d99cd885f110c570bea2.tar.xz
openshift-3fda828a7ec8a234c309d99cd885f110c570bea2.zip
Merge pull request #6557 from mgugino-upstream-stage/delay-hosted-wait
Automatic merge from submit-queue. Move wait_for_pods to it's own play openshift_hosted Currently, both registry and router pods need to be polled for successful deployment. Somtimes this can take up to a minute. This commit attempts to deploy both pods before polling either. This should reduce the average wait time for polling pods by 50% as time spent polling the first will also allow the second pod to continue it's own deployment.
Diffstat (limited to 'roles/openshift_hosted/tasks/wait_for_pod.yml')
-rw-r--r--roles/openshift_hosted/tasks/wait_for_pod.yml6
1 files changed, 3 insertions, 3 deletions
diff --git a/roles/openshift_hosted/tasks/wait_for_pod.yml b/roles/openshift_hosted/tasks/wait_for_pod.yml
index f4b9939cc..a14b0febc 100644
--- a/roles/openshift_hosted/tasks/wait_for_pod.yml
+++ b/roles/openshift_hosted/tasks/wait_for_pod.yml
@@ -7,7 +7,7 @@
--namespace {{ item.namespace | default('default') }} \
--config {{ openshift_master_config_dir }}/admin.kubeconfig
async: 600
- poll: 15
+ poll: 5
with_items: "{{ l_openshift_hosted_wfp_items }}"
failed_when: false
@@ -28,8 +28,8 @@
-o jsonpath='{ .metadata.annotations.openshift\.io/deployment\.phase }'
register: openshift_hosted_wfp_rc_phase
until: "'Running' not in openshift_hosted_wfp_rc_phase.stdout"
- delay: 15
- retries: 40
+ delay: 5
+ retries: 60
failed_when: "'Failed' in openshift_hosted_wfp_rc_phase.stdout"
with_together:
- "{{ l_openshift_hosted_wfp_items }}"