Revert "Check container health as part of the deploy"

There is a CI blocker LP 1782598 to deal with ASAP.
Then, we can fix this in the scope of
https://review.openstack.org/#/c/584119/

This reverts commit 915c1ebdd79fecb57a0719997a56c34685307431.

Change-Id: I8f03d8a588e58202c3628c72144a232729041c89
This commit is contained in:
Bogdan Dobrelya 2018-07-20 09:12:19 +00:00
parent a9fda38818
commit a4175d42f4

@ -221,29 +221,6 @@
when: outputs.rc is defined
failed_when: outputs.rc != 0
# We wait up to a minute for all the containers to start and output any
# containers that are unheathy. NOTE: the docker ps call always has a
# header so we use tail to skip it.
- name: "Check for unhealthy containers after step {{step}}"
shell: |
counter=0
while [ $(docker ps -f health=starting -f label="managed_by=paunch" -q | wc -l) -gt 0 ] && [ $count -lt 10 ]; do
sleep 6
count=$[count+1]
done
docker ps -f health=unhealthy | tail -n +2
changed_when: false
check_mode: no
register: outputs
failed_when: false
no_log: true
become: true
- name: "Debug output for task which failed: Check for unhealthy containers after step {{step}}"
debug: var=outputs.stdout_lines|default([])|union(outputs.stderr_lines|default([]))
when: outputs.rc is defined
failed_when: outputs.rc != 0 or outputs.stdout_lines|default([]) != []
########################################################
# Bootstrap tasks, only performed on bootstrap_server_id
########################################################