Merge pull request #756 from bogdando/skip_netcheck

Consider netcheck passed if agents can't report in time
This commit is contained in:
Antoine Legrand 2016-12-15 14:48:09 +01:00 committed by GitHub
commit 670d977dfb

View file

@ -44,7 +44,7 @@
run_once: true
delegate_to: "{{groups['kube-node'][0]}}"
register: agents
retries: 3
retries: 6
delay: "{{ agent_report_interval }}"
until: "{{ agents.content|length > 0 and
agents.content[0] == '{' and
@ -53,7 +53,7 @@
no_log: true
- debug: var=agents.content|from_json
failed_when: not agents|success
failed_when: not agents|success and not agents.content=='{}'
delegate_to: "{{groups['kube-node'][0]}}"
run_once: true
@ -66,8 +66,14 @@
delay: "{{ agent_report_interval }}"
no_log: true
ignore_errors: true
when: not agents.content=='{}'
- debug: var=result.content|from_json
failed_when: not result|success
delegate_to: "{{groups['kube-node'][0]}}"
run_once: true
when: not agents.content=='{}'
- debug: msg="Cannot get reports from agents, consider as PASSING"
run_once: true
when: agents.content=='{}'