summaryrefslogtreecommitdiffstats
path: root/roles/openshift_logging
diff options
context:
space:
mode:
authorRussell Teague <rteague@redhat.com>2017-02-20 13:01:53 -0500
committerGitHub <noreply@github.com>2017-02-20 13:01:53 -0500
commita0247365e7464627715e53ec1e89af579fda74ac (patch)
treea0365900b1b37800c3da709f64217e4867b08b64 /roles/openshift_logging
parenta40ee317e7727749240eb4475bdfe2eda00bbbcc (diff)
parent875f5104ebd744eb96b356033a9115c7b1182ec0 (diff)
downloadopenshift-a0247365e7464627715e53ec1e89af579fda74ac.tar.gz
openshift-a0247365e7464627715e53ec1e89af579fda74ac.tar.bz2
openshift-a0247365e7464627715e53ec1e89af579fda74ac.tar.xz
openshift-a0247365e7464627715e53ec1e89af579fda74ac.zip
Merge pull request #3422 from mtnbikenc/logging-fix
[openshift_logging] Correct logic test for running pods
Diffstat (limited to 'roles/openshift_logging')
-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