From 354894e2e9ca887d04a18d2843cd0492d9981e4a Mon Sep 17 00:00:00 2001 From: Mark Goddard Date: Tue, 4 Sep 2018 15:17:14 +0100 Subject: [PATCH] Add check.yml for prometheus and vitrage Without this, kolla-ansible check fails with the following error: Unable to retrieve file contents Could not find or access '/path/to/kolla-ansible/ansible/check.yml'"} Also adds the check command to the CI tests, to ensure that it does not break again. Change-Id: I9fc2f9999f55cb742ac3ac38579dcf26524a9fc7 Closes-Bug: #1790653 --- ansible/roles/prometheus/tasks/check.yml | 1 + ansible/roles/vitrage/tasks/check.yml | 1 + tools/setup_gate.sh | 3 +++ 3 files changed, 5 insertions(+) create mode 100644 ansible/roles/prometheus/tasks/check.yml create mode 100644 ansible/roles/vitrage/tasks/check.yml diff --git a/ansible/roles/prometheus/tasks/check.yml b/ansible/roles/prometheus/tasks/check.yml new file mode 100644 index 0000000000..ed97d539c0 --- /dev/null +++ b/ansible/roles/prometheus/tasks/check.yml @@ -0,0 +1 @@ +--- diff --git a/ansible/roles/vitrage/tasks/check.yml b/ansible/roles/vitrage/tasks/check.yml new file mode 100644 index 0000000000..ed97d539c0 --- /dev/null +++ b/ansible/roles/vitrage/tasks/check.yml @@ -0,0 +1 @@ +--- diff --git a/tools/setup_gate.sh b/tools/setup_gate.sh index d5c4c30c65..bdb0ec6e4f 100755 --- a/tools/setup_gate.sh +++ b/tools/setup_gate.sh @@ -151,6 +151,7 @@ function test_openstack { # service in CI tools/kolla-ansible -i ${RAW_INVENTORY} -vvv deploy > /tmp/logs/ansible/deploy tools/kolla-ansible -i ${RAW_INVENTORY} -vvv post-deploy > /tmp/logs/ansible/post-deploy + tools/kolla-ansible -i ${RAW_INVENTORY} -vvv check > /tmp/logs/ansible/check-deploy # Test OpenStack Environment # TODO: use kolla-ansible check when it's ready @@ -160,8 +161,10 @@ function test_openstack { # TODO(jeffrey4l): make some configure file change and # trigger a real reconfigure tools/kolla-ansible -i ${RAW_INVENTORY} -vvv reconfigure > /tmp/logs/ansible/reconfigure + tools/kolla-ansible -i ${RAW_INVENTORY} -vvv check > /tmp/logs/ansible/check-reconfigure # TODO(jeffrey4l): need run a real upgrade tools/kolla-ansible -i ${RAW_INVENTORY} -vvv upgrade > /tmp/logs/ansible/upgrade + tools/kolla-ansible -i ${RAW_INVENTORY} -vvv check > /tmp/logs/ansible/check-upgrade # run prechecks again tools/kolla-ansible -i ${RAW_INVENTORY} -vvv prechecks > /tmp/logs/ansible/prechecks2