[docs] Add cross-tenant role using the openstack CLI
Change-Id: Ib827e73c5ee3ff6fb741b936f9a13a83e766eca8
This commit is contained in:
parent
c139b66531
commit
7ad32d6eca
@ -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.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user