Fixup 4125: Debug agents when requests time out (#4132)
This commit is contained in:
parent
5e260fe23a
commit
d790ec96d8
1 changed files with 3 additions and 7 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue