summaryrefslogtreecommitdiffstats
path: root/roles/openshift_logging/tasks
diff options
context:
space:
mode:
authorRussell Teague <rteague@redhat.com>2017-02-20 09:52:19 -0500
committerRussell Teague <rteague@redhat.com>2017-02-20 09:52:19 -0500
commit875f5104ebd744eb96b356033a9115c7b1182ec0 (patch)
tree64711445cbe25f677c551e9e2255af144f9c73d2 /roles/openshift_logging/tasks
parent3ba41f17f7ea7d05a291a59f4d22b31ba159579b (diff)
downloadopenshift-875f5104ebd744eb96b356033a9115c7b1182ec0.tar.gz
openshift-875f5104ebd744eb96b356033a9115c7b1182ec0.tar.bz2
openshift-875f5104ebd744eb96b356033a9115c7b1182ec0.tar.xz
openshift-875f5104ebd744eb96b356033a9115c7b1182ec0.zip
Correct logic test for running pods
Diffstat (limited to 'roles/openshift_logging/tasks')
-rw-r--r--roles/openshift_logging/tasks/upgrade_logging.yaml6
1 files changed, 3 insertions, 3 deletions
diff --git a/roles/openshift_logging/tasks/upgrade_logging.yaml b/roles/openshift_logging/tasks/upgrade_logging.yaml
index 0421cdf58..83867d361 100644
--- a/roles/openshift_logging/tasks/upgrade_logging.yaml
+++ b/roles/openshift_logging/tasks/upgrade_logging.yaml
@@ -26,14 +26,14 @@
loop_control:
loop_var: object
-- name: Wait for pods to stop
+- name: Wait for pods to start
oc_obj:
state: list
- kind: dc
+ kind: pods
selector: "component=es"
namespace: "{{openshift_logging_namespace}}"
register: running_pod
- until: running_pod.results.results.items[?(@.status.phase == "Running")].metadata.name != ''
+ until: running_pod.results.results[0]['items'] | selectattr('status.phase', 'equalto', 'Running') | map(attribute='metadata.name') | list | length != 0
retries: 30
delay: 10