From 82b247d1a483f9f2208734244701363e90abaad7 Mon Sep 17 00:00:00 2001 From: Matthew Mosesohn Date: Fri, 17 Feb 2017 19:06:52 +0300 Subject: [PATCH] Adapt advanced network checker for scale Skip nodes not in ansible play (via --limit) --- tests/testcases/040_check-network-adv.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/testcases/040_check-network-adv.yml b/tests/testcases/040_check-network-adv.yml index 667707046..90a5eba7b 100644 --- a/tests/testcases/040_check-network-adv.yml +++ b/tests/testcases/040_check-network-adv.yml @@ -35,7 +35,7 @@ run_once: true delegate_to: "{{groups['kube-master'][0]}}" register: nca_pod - until: "{{ nca_pod.stdout_lines|length }} >= {{ groups['kube-node']|length * 2 }}" + until: "{{ nca_pod.stdout_lines|length }} >= {{ groups['kube-node']|intersect(play_hosts)|length * 2 }}" retries: 3 delay: 10 @@ -48,7 +48,7 @@ delay: "{{ agent_report_interval }}" until: "{{ agents.content|length > 0 and agents.content[0] == '{' and - agents.content|from_json|length >= groups['kube-node']|length * 2 }}" + agents.content|from_json|length >= groups['kube-node']|intersect(play_hosts)|length * 2 }}" failed_when: false no_log: true