From 7ad32d6eca1bbf03a03e9c3bbc40db421e1ac7d5 Mon Sep 17 00:00:00 2001 From: Mariusz Karpiarz Date: Fri, 12 Apr 2019 14:09:08 +0100 Subject: [PATCH] [docs] Add cross-tenant role using the openstack CLI Change-Id: Ib827e73c5ee3ff6fb741b936f9a13a83e766eca8 --- docs/MonascaMetrics.md | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/docs/MonascaMetrics.md b/docs/MonascaMetrics.md index 112e28aa..f8c9a662 100644 --- a/docs/MonascaMetrics.md +++ b/docs/MonascaMetrics.md @@ -120,11 +120,8 @@ In the below example, the Agent's Keystone username is "monasca-agent" and the A Example commands to add the Agent user/project to the monitoring-delegate role: - $ keystone role-create --name=monitoring-delegate - $ user_id=`keystone user-list | grep monasca-agent | cut -d'|' -f2` - $ role_id=`keystone role-list | grep monitoring-delegate | cut -d'|' -f2` - $ tenant_id=`keystone tenant-list | grep mini-mon | cut -d'|' -f2` - $ keystone user-role-add --user=${user_id// /} --role=${role_id// /} --tenant_id=${tenant_id// /} + $ openstack role create monitoring-delegate + $ openstack role add --user monasca-agent --project mini-mon monitoring-delegate Once the Agent's user and project are assigned to the `monitoring-delegate` group, the Agent can submit metrics for other tenants.