From a9ea7f6e9c495895ad5f1993687b1ee06e8aa00c Mon Sep 17 00:00:00 2001 From: shangxdy Date: Thu, 14 Sep 2017 18:24:35 +0800 Subject: Fix functest_run script for role of heat_stack_owner When update openstack to ocata and run test in functest, the following error happends: ERROR: Missing required credential: roles ['heat_stack_owner'] It need to add role heat_stack_owner to parser user JIRA: PARSER-156 Change-Id: Ie0417c53c7dbd28efe8d9c4eb3fda23de8e1f841 Signed-off-by: shangxdy --- tests/functest_run.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/functest_run.sh b/tests/functest_run.sh index 5f2e0f9..b866ab9 100755 --- a/tests/functest_run.sh +++ b/tests/functest_run.sh @@ -110,7 +110,9 @@ create_parser_user_and_project() { } || { openstack ${debug} role add ${PARSER_ROLE} --user ${PARSER_USER} \ --project ${PARSER_PROJECT} - echo " Grant user ${PARSER_USER} the role ${PARSER_ROLE} in project ${PARSER_PROJECT} successful." + openstack ${debug} role add heat_stack_owner --user ${PARSER_USER} \ + --project ${PARSER_PROJECT} + echo " Grant user ${PARSER_USER} the role ${PARSER_ROLE} and heat_stack_owner in project ${PARSER_PROJECT} successful." } } -- cgit 1.2.3-korg