Add admin role for masakari user

Masakari API's are allowed to be execute by admin only. So when external
service like masakari-instancemonitor calls masakari-api using masakari
user it does not have admin role associated with it's tenant. So it
returns HTTPForbidden 403 response to masakari-instancemonitor.

Added admin role to service tenant which has masakari user associated
with.

Change-Id: I505ea56bc022aad086f1090ff25b59ec85b70c41
This commit is contained in:
Abhishek Kekane 2016-11-18 15:46:25 +05:30
parent 57dcbf287e
commit 0cec25347c
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,7 @@ function setup_masakari_logging {
function create_masakari_accounts {
if [[ "$ENABLED_SERVICES" =~ "masakari" ]]; then
create_service_user "masakari"
create_service_user "masakari" "admin"
if [[ "$KEYSTONE_CATALOG_BACKEND" = 'sql' ]]; then