Management of radosgw
Hi,
Recently I am testing radosgw and there are some questions that came up in my mind.
I observed that radosgw stores the records of user accounts or metadata of files in MDS.
But it seems that radosgw stores them in the form of pieces which I cannot get a readable information by typing a command.
I am curious that is there a way I can manage the records of radosgw? For example, if I want to know how many users are there in radosgw and the detail information of each user(ID, access key, secret key). Or if I want to know a user about the information of directories or files he created.
Are there some commands that I can use to see the information that I want to see?
Thank in advance!
ps: please correct me if I said something wrong about radosgw.
Signature · 2 lines
Best Regards, Sylar Shen
Hi,
Quoted 5 lines · Sylar Shen
Hi,
Recently I am testing radosgw and there are some questions that came up in my mind.
I observed that radosgw stores the records of user accounts or metadata of files in MDS.
The radosgw does not use the MDS at all, the MDS is only used for the Ceph POSIX filesystem.
Quoted 2 lines
But it seems that radosgw stores them in the form of pieces which I cannot get a readable information by typing a command.
Indeed, user information is stored in the .rgw, .users and .users.email pools.
Quoted 7 lines
I am curious that is there a way I can manage the records of radosgw? For example, if I want to know how many users are there in radosgw and the detail information of each
user(ID, access key, secret key). Or if I want to know a user about the information of directories or files he created.
Are there some commands that I can use to see the information that I want to see?
For now the "radosgw_admin" is the tool for the job, it still lacks some functionality, but it's a work-in-progress.
But what you could do for example:
root@gateway:~# rados -p .users ls EQCZHQ0KW2GPG8HKCS82 EQCZHQ0KW2GPG8HKCS82.buckets root@gateway:~# radosgw_admin user info --uid=EQCZHQ0KW2GPG8HKCS82 RADOS S3 Gateway: rados->read ofs=0 len=16384 RADOS S3 Gateway: rados->read r=128 User ID: EQCZHQ0KW2GPG8HKCS82 Secret Key: dA0WHJIIKANaft7qBqL1GfPKAufgx49czYtzggLH Display Name: Wido den Hollander OpenStack User: <undefined> OpenStack Key: <undefined> root@gateway:~#
If you have suggestions for the radosgw, please add them to the issue tracker as a feature request: http://tracker.newdream.net/projects/ceph
Thank you,
Wido
Quoted 2 lines
Thank in advance!
ps: please correct me if I said something wrong about radosgw.