Browse Source

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

pull/4131/head
Erwan Miran 5 years ago
committed by Kubernetes Prow Robot
parent
commit
d790ec96d8
1 changed files with 3 additions and 7 deletions
  1. 10
      tests/testcases/040_check-network-adv.yml

10
tests/testcases/040_check-network-adv.yml

@ -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…
Cancel
Save