Raise timeout for get netchecker agents

This commit is contained in:
Matthew Mosesohn 2017-02-20 17:09:34 +03:00
parent c4452b102c
commit 1075f0f9d1

View file

@ -44,7 +44,7 @@
run_once: true run_once: true
delegate_to: "{{groups['kube-master'][0]}}" delegate_to: "{{groups['kube-master'][0]}}"
register: agents register: agents
retries: 6 retries: 18
delay: "{{ agent_report_interval }}" delay: "{{ agent_report_interval }}"
until: "{{ agents.content|length > 0 and until: "{{ agents.content|length > 0 and
agents.content[0] == '{' and agents.content[0] == '{' and
@ -55,7 +55,7 @@
- debug: var=agents.content|from_json - debug: var=agents.content|from_json
failed_when: not agents|success and not agents.content=='{}' failed_when: not agents|success and not agents.content=='{}'
run_once: true run_once: true
- name: Check netchecker status - name: Check netchecker status
uri: url=http://localhost:{{netchecker_port}}/api/v1/connectivity_check status_code=200 return_content=yes uri: url=http://localhost:{{netchecker_port}}/api/v1/connectivity_check status_code=200 return_content=yes
delegate_to: "{{groups['kube-master'][0]}}" delegate_to: "{{groups['kube-master'][0]}}"
@ -71,6 +71,7 @@
failed_when: not result|success failed_when: not result|success
run_once: true run_once: true
when: not agents.content=='{}' when: not agents.content=='{}'
delegate_to: "{{groups['kube-master'][0]}}"
- debug: msg="Cannot get reports from agents, consider as PASSING" - debug: msg="Cannot get reports from agents, consider as PASSING"
run_once: true run_once: true