Fixup 4125: Debug agents when requests time out (#4132)

This commit is contained in:
Erwan Miran 2019-01-28 19:22:43 +01:00 committed by Kubernetes Prow Robot
parent 5e260fe23a
commit d790ec96d8

View file

@ -72,14 +72,10 @@
failed_when: not agents is success and not agents.content=='{}'
run_once: true
when:
- agents.content is defined
- agents.content != ''
- agents.content[0] == '{'
- debug: var=agents
failed_when: not agents is success and not agents.content=='{}'
run_once: true
when:
- agents.content[0] != '{'
- name: Check netchecker status
uri: url=http://{{ ansible_default_ipv4.address }}:{{netchecker_port}}/api/v1/connectivity_check status_code=200 return_content=yes
delegate_to: "{{groups['kube-master'][0]}}"
@ -124,6 +120,7 @@
run_once: true
when:
- not agents.content == '{}'
- result.content != ''
- result.content[0] == '{'
- debug: var=result
@ -131,7 +128,6 @@
run_once: true
when:
- not agents.content == '{}'
- result.content[0] != '{'
- debug: msg="Cannot get reports from agents, consider as PASSING"
run_once: true