Some issues when using admin ops API on radosgw

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi ceph-users,

When I tried to use admin ops API, I have met two issues so far.

1. It seems to succeed in getting its usage info, but why is the body empty and no other entities, like bytes_sent, owner, bucket, etc?

> GET /admin/usage?format=json HTTP/1.1
> Host: <XXX>
> Accept: */*
> Date: Tue, 08 Oct 2013 07:43:54 +0000
> Authorization: AWS <XXX>:<XXX>
>
< HTTP/1.1 200
...
< Content-Type: application/json
<
* Closing connection #0
{"entries":[],"summary":[]}


2. It will fail on getting its user info with 403 status. What is happened there? I don't see any useful info in radosgw.log.

> GET /admin/user?format=json HTTP/1.1
> Host: <XXX>
> Accept: */*
> Date: Tue, 08 Oct 2013 07:51:48 +0000
> Authorization: AWS <XXX>:<XXX>
>
< HTTP/1.1 403
< Date: Tue, 08 Oct 2013 07:51:50 GMT
...
< Content-Type: application/json
<
* Closing connection #0
{"Code":"AccessDenied"}


Below is my radosgw user info:
{ "user_id": "mybucket2",
  "display_name": "mybucket2",
  "email": "",
  "suspended": 0,
  "max_buckets": 1000,
  "auid": 0,
  "subusers": [],
  "keys": [
        { "user": "mybucket2",
          "access_key": "XXX",
          "secret_key": "XXX"}],
  "swift_keys": [],
  "caps": [
        { "type": "usage",
          "perm": "*"},
        { "type": "user",
          "perm": "*"}],
  "op_mask": "read, write, delete",
  "default_placement": "",
  "placement_tags": []}


Thanks very much!

--
Regards,
David
_______________________________________________
ceph-users mailing list
ceph-users@xxxxxxxxxxxxxx
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

[Index of Archives]     [Information on CEPH]     [Linux Filesystem Development]     [Ceph Development]     [Ceph Large]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux