Skip to content
Snippets Groups Projects
Commit d790ec96 authored by Erwan Miran's avatar Erwan Miran Committed by Kubernetes Prow Robot
Browse files

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

parent 5e260fe2
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment