码迷,mamicode.com
首页 > 其他好文 > 详细

ceph简单用户管理

时间:2017-08-13 19:21:22      阅读:242      评论:0      收藏:0      [点我收藏+]

标签:http   ucs   get   lis   bpa   lvg   -o   image   信息   

一,列出所有用户:

ceph auth list
installed auth entries:

mds.ceph-node1
    key: AQB/+I5ZFdcwERAAg0eP7SyDg84DZUlvKzBGuA==
    caps: [mds] allow
    caps: [mon] allow profile mds
    caps: [osd] allow rwx
osd.0
    key: AQD49o5ZCatkBBAAZ31OL9xJ78XYI6sPXb9z7A==
    caps: [mon] allow profile osd
    caps: [osd] allow *
osd.1
    key: AQAA945ZOLBPABAAvAWW5fg7JIfc9z0wfX0wkA==
    caps: [mon] allow profile osd
    caps: [osd] allow *
osd.2
    key: AQAG+I5Z4RvZGRAALVGsS6CYk1x6wVhQ2KRuOw==
    caps: [mon] allow profile osd
    caps: [osd] allow *
client.admin
    key: AQCu845ZXt0dExAAatk28a2ILAg4XijF3ax0vg==
    caps: [mds] allow *
    caps: [mon] allow *
    caps: [osd] allow *
client.bootstrap-mds
    key: AQCu845ZIYV0MRAA9e0w3Lo4KDVk6u+IoVfvdQ==
    caps: [mon] allow profile bootstrap-mds
client.bootstrap-mgr
    key: AQCx845ZJD/wIhAAkfaCX7HsXv5yfXgVn7U0hA==
    caps: [mon] allow profile bootstrap-mgr
client.bootstrap-osd
    key: AQCu845ZPmxJHRAAH9QK4uowMrvjsUmf/qGEZg==
    caps: [mon] allow profile bootstrap-osd
client.bootstrap-rgw
    key: AQCu845Z2V0+JxAAVogbhziesxI0K+CksFauIA==
    caps: [mon] allow profile bootstrap-rgw
client.rgw.ceph-node2
    key: AQCh+I5ZWM09OxAAE/dlTQNCy2BaZl3RvZ0aWg==
    caps: [mon] allow rw
    caps: [osd] allow rwx

二,获得指定用户的信息:

ceph auth get client.admin
[client.admin]
    key = AQCu845ZXt0dExAAatk28a2ILAg4XijF3ax0vg==
    caps mds = "allow *"
    caps mon = "allow *"
    caps osd = "allow *"

三,新增用户并输出密钥环(用途应该是加到标准密钥环文件,然后,扩散之后,整个群集可用)

ceph auth get-or-create client.george mon allow r osd allow rw pool=ceph_data -o george.keyring
[client.george]
    key = AQClKJBZFLAhOBAAEyKbPe79NncMe/YucS/sKg==

四,更改用户权限

ceph auth caps client.george mon allow rw osd allow rwx pool=ceph_data

技术分享

ceph简单用户管理

标签:http   ucs   get   lis   bpa   lvg   -o   image   信息   

原文地址:http://www.cnblogs.com/aguncn/p/7354268.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!