From 955609356a1586b3b39892bd8433de7d75cb05f3 Mon Sep 17 00:00:00 2001 From: Rabi Mishra Date: Mon, 1 Feb 2016 13:20:18 +0530 Subject: [PATCH] Add heat_stack_owner role required by tempest Create specific heat_stack_owner role to be used by tempest tests, rather than using _member_ which is not automatically created in keystone v3. Change-Id: Iff13a47e360b628bc48a8cb897d9368af49db01b Partial-Bug: #1539692 --- lib/tempest | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/tempest b/lib/tempest index fd98c948f2..1678c4f225 100644 --- a/lib/tempest +++ b/lib/tempest @@ -383,6 +383,11 @@ function configure_tempest { # Orchestration Tests if is_service_enabled heat; then + # Though this is not needed by heat, some tempest tests explicitly + # try to set this role. Removing them from the tempest tests breaks + # some non-devstack CIs. + get_or_create_role "heat_stack_owner" + if [[ ! -z "$HEAT_CFN_IMAGE_URL" ]]; then iniset $TEMPEST_CONFIG orchestration image_ref $(basename "${HEAT_CFN_IMAGE_URL%.*}") fi @@ -396,7 +401,7 @@ function configure_tempest { iniset $TEMPEST_CONFIG orchestration instance_type "m1.heat" fi iniset $TEMPEST_CONFIG orchestration build_timeout 900 - iniset $TEMPEST_CONFIG orchestration stack_owner_role "_member_" + iniset $TEMPEST_CONFIG orchestration stack_owner_role "heat_stack_owner" fi # Scenario