From 4fc245f77d38650b81794c8d54bb0986004beda1 Mon Sep 17 00:00:00 2001 From: Rohit Jaiswal Date: Tue, 8 Dec 2015 16:52:36 -0800 Subject: [PATCH] Reverts patch https://review.openstack.org/254905 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 --- deployer/README.md | 9 +++++++++ deployer/devstack/plugin.sh | 4 ---- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/deployer/README.md b/deployer/README.md index 4d48762..8198c43 100644 --- a/deployer/README.md +++ b/deployer/README.md @@ -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 --tenant +--role + +IDs can be retrieved by using keystone user-list, tenant-list and role-list. diff --git a/deployer/devstack/plugin.sh b/deployer/devstack/plugin.sh index b8808db..a832aa8 100644 --- a/deployer/devstack/plugin.sh +++ b/deployer/devstack/plugin.sh @@ -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 }