我为 openstack 安装了 Ceilometer,这是为 ceilometer 创建适当的用户和角色:
SERVICE_TENANT=$(keystone tenant-list | grep service | awk '{print $2}')
ADMIN_ROLE=$(keystone role-list | grep ' admin ' | awk '{print $2}')
SERVICE_PASSWORD=servicepass
CEILOMETER_USER=$(keystone user-create --name=ceilometer \
--pass="$SERVICE_PASSWORD" \
--tenant_id $SERVICE_TENANT \
--email=ceilometer@example.com | awk '/ id / {print $4}')
RESELLER_ROLE=$(keystone role-create --name=ResellerAdmin | awk '/ id / {print $4}')
ADMIN_ROLE=$(keystone role-list | awk '/ admin / {print $2}')
for role in $RESELLER_ROLE $ADMIN_ROLE ; do
keystone user-role-add --tenant_id $SERVICE_TENANT \
--user_id $CEILOMETER_USER --role_id $role
done
当我使用“admin”注册一个用户并单击 /project/instances。我认为为云高仪创建适当的用户和角色时出现错误。有人可以给我一些建议吗?谢谢