From eac1e479b7f2337c25b8dafb13f152e892c5360f Mon Sep 17 00:00:00 2001 From: Mark Goddard Date: Tue, 6 Aug 2019 19:03:05 +0100 Subject: [PATCH] CI: Sanity check that nodepool.private_ipv4 is assigned During the MariaDB testing we saw a number of cases where this IP address was not assigned to one or more hosts, which caused various issues later on. Change-Id: I61b54483e4553b926e9ddc0a8848b2daa6bc49f1 --- tests/pre.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/pre.yml b/tests/pre.yml index cbad56d190..1894a8d023 100644 --- a/tests/pre.yml +++ b/tests/pre.yml @@ -3,6 +3,14 @@ vars: logs_dir: "/tmp/logs" tasks: + # We have had cases where the nodepool private IP address is not assigned, + # which causes hard to diagnose errors later on. Catch it early. + - name: Assert that the nodepool private IPv4 address is assigned + assert: + that: nodepool.private_ipv4 in ansible_all_ipv4_addresses + fail_msg: >- + The nodepool private IP address {{ nodepool.private_ipv4 }} is not assigned + - name: Install dbus for debian system apt: name=dbus when: