This should be done after monasca is registered
in keystone which happens when devstack.yml is
run with ansible. Temporarily marking this as a
manual workaround in README until
https://review.openstack.org/248332 merges, which
handles this correctly since monasca is setup
using devstack.

Change-Id: I9f685027560ed807aca4e0e8d263f0a0a6de412d
This commit is contained in:
Rohit Jaiswal 2015-12-08 16:52:36 -08:00
parent 4b572024da
commit 4fc245f77d
2 changed files with 9 additions and 4 deletions

View File

@ -44,3 +44,12 @@ You can do this running the following command from the monasca-vagrant folder:
`source env.sh`
##Setting monasca-user role to ceilometer user
Ceilometer user needs the monasca-user role in the service tenant for Ceilometer
to authenticate with the Monasca API.
keystone user-role-add --user <ID of ceilometer user> --tenant <ID of service tenant>
--role <ID of monasca-user role>
IDs can be retrieved by using keystone user-list, tenant-list and role-list.

View File

@ -206,10 +206,6 @@ function _ceilometer_create_accounts {
# Ceilometer needs ResellerAdmin role to access Swift account stats.
get_or_add_user_project_role "ResellerAdmin" "ceilometer" $SERVICE_TENANT_NAME
fi
# Ceilometer needs monasca-user role to access Monasca API.
get_or_add_user_project_role "monasca-user" "ceilometer" $SERVICE_TENANT_NAME
fi
}