From 6446c98b0669a74bbd45539f9a19e3e7d1115fe9 Mon Sep 17 00:00:00 2001 From: Dimitri Savineau Date: Mon, 16 Jan 2017 13:08:12 -0500 Subject: [PATCH] Tempest: ensure heat_stack_owner is present The orchestration role used in tempest configuration should be create before running tempest. Change-Id: I129831c5821e60493f649b2ce71256cf82b1f197 --- roles/validate-tempest/templates/configure-tempest.sh.j2 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/roles/validate-tempest/templates/configure-tempest.sh.j2 b/roles/validate-tempest/templates/configure-tempest.sh.j2 index bddbaf721..2e92fccee 100644 --- a/roles/validate-tempest/templates/configure-tempest.sh.j2 +++ b/roles/validate-tempest/templates/configure-tempest.sh.j2 @@ -50,6 +50,10 @@ source {{ working_dir }}/stackrc public_net_id=$(neutron net-show {{ undercloud_public_net_name }} -f value -c id) {% endif %} +## * Ensure heat_stack_owner role is present +## :: +openstack role show heat_stack_owner > /dev/null || openstack role create heat_stack_owner + ## * Generate a tempest configuration ## ::