Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Should add ceph.client.admin.keyring file to the rgw? #120

Closed
zhaozhiming opened this issue Sep 10, 2014 · 2 comments
Closed

Should add ceph.client.admin.keyring file to the rgw? #120

zhaozhiming opened this issue Sep 10, 2014 · 2 comments

Comments

@zhaozhiming
Copy link

hi,
I use ceph-ansible to install ceph, it's very easy to use and install ceph quickly.
But when I use rgw to create a user, it error as follow:

vagrant@ceph-rgw:~$ sudo radosgw-admin user create --uid=zzm --display-name="zhaozhiming"
2014-09-06 08:41:59.040195 7fefc075f780 -1 monclient(hunting): ERROR: missing keyring, cannot use cephx for authentication
2014-09-06 08:41:59.040258 7fefc075f780  0 librados: client.admin initialization error (2) No such file or directory

And I copy the file ceph.client.admin.keyring from mon vm (in the /etc/ceph folder) to the /etc/ceph/ folder. That slove the problem.

vagrant@ceph-rgw:~$ sudo radosgw-admin user create --uid=zzm1 --display-name="zhaozhiming1"
2014-09-10 03:38:07.229932 7fc4f0775700  0 -- :/1002678 >> 192.168.42.12:6789/0 pipe(0x17f8000 sd=3 :0 s=1 pgs=0 cs=0 l=1 c=0x17f8270).fault
{ "user_id": "zzm1",
  "display_name": "zhaozhiming1",
  "email": "",
  "suspended": 0,
  "max_buckets": 1000,
  "auid": 0,
  "subusers": [],
  "keys": [
        { "user": "zzm1",
          "access_key": "ZGV5G0OFFUNESNRBK55Q",
          "secret_key": "8DSkRch3bnbZHtQqyES9lHH78t7UftLiSdFFzSdP"}],
  "swift_keys": [],
  "caps": [],
  "op_mask": "read, write, delete",
  "default_placement": "",
  "placement_tags": [],
  "bucket_quota": { "enabled": false,
      "max_size_kb": -1,
      "max_objects": -1},
  "user_quota": { "enabled": false,
      "max_size_kb": -1,
      "max_objects": -1},
  "temp_url_keys": []}

Is this a bug? Should add a function to add the ceph.client.admin.keyring to rgw? Thanks.

@leseb
Copy link
Member

leseb commented Sep 11, 2014

well you should this operation with:

--name client.radosgw.gateway

Can you close this issue?

@zhaozhiming
Copy link
Author

ok, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants