Unable to create bucket using S3 API

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

 



Attached is the request-createbucket-log.txt for the create bucket request and the details of user making the request is in radogwadmin-user.txt

Please advise, what am I doing incorrectly?

I am using Node JS as the "client" for ceph S3 API .. and thus I need to build my requests "manually'.

Your help is greatly appreciated!

Thank You!



ubuntu@ceph-node1:~$ sudo radosgw-admin caps add --uid=radosgwadmin  --caps="caps=*;"
[sudo] password for ubuntu:
2013-10-23 00:10:40.737573 7f8ecb4f6780  0 WARNING: cannot read region map
{ "user_id": "radosgwadmin",
  "display_name": "Rados Gateway Admin",
  "email": "radowgwadmin@xxxxxxx",
  "suspended": 0,
  "max_buckets": 1000,
  "auid": 0,
  "subusers": [],
  "keys": [
        { "user": "radosgwadmin",
          "access_key": "DVZ1DWWEAAA3UOJMV33I",
          "secret_key": "9NxnEeroderVDbJjbZAuc0DemWPAlNckKm44jEGb"}],
  "swift_keys": [],
  "caps": [
        { "type": "buckets",
          "perm": "*"},
        { "type": "caps",
          "perm": "*"},
        { "type": "metadata",
          "perm": "*"},
        { "type": "op-mask",
          "perm": "*"},
        { "type": "usage",
          "perm": "*"},
        { "type": "user",
          "perm": "*"},
        { "type": "user-caps",
          "perm": "*"},
        { "type": "users",
          "perm": "*"},
        { "type": "userx",
          "perm": "*"},
        { "type": "usery",
          "perm": "write"}],
  "op_mask": "read, write, delete",
  "default_placement": "",
  "placement_tags": []}
ubuntu@ceph-node1:~$
2013-10-31 15:35:51.879392 7f3a647c8700  1 ====== starting new request req=0x1a380e0 =====
2013-10-31 15:35:51.879435 7f3a647c8700  2 req 67:0.000044::PUT /bucket1::initializing
2013-10-31 15:35:51.879446 7f3a647c8700 10 meta>> HTTP_X_AMZ_ACL
2013-10-31 15:35:51.879451 7f3a647c8700 10 x>> x-amz-acl:public-read-write
2013-10-31 15:35:51.879461 7f3a647c8700 10 s->object=<NULL> s->bucket=bucket1
2013-10-31 15:35:51.879468 7f3a647c8700 20 FCGI_ROLE=RESPONDER
2013-10-31 15:35:51.879469 7f3a647c8700 20 SCRIPT_URL=/bucket1
2013-10-31 15:35:51.879470 7f3a647c8700 20 SCRIPT_URI=http://ceph-node1/bucket1
2013-10-31 15:35:51.879470 7f3a647c8700 20 HTTP_AUTHORIZATION=AWS DVZ1DHGEKRM3UOJMV37I:s83bJMVCnJbvcK/3yKe6soC/qIg=
2013-10-31 15:35:51.879470 7f3a647c8700 20 HTTP_DATE=Thu, 31 Oct 2013 19:35:56 GMT
2013-10-31 15:35:51.879471 7f3a647c8700 20 HTTP_HOST=ceph-node1
2013-10-31 15:35:51.879471 7f3a647c8700 20 CONTENT_LENGTH=2
2013-10-31 15:35:51.879472 7f3a647c8700 20 HTTP_X_AMZ_ACL=public-read-write
2013-10-31 15:35:51.879472 7f3a647c8700 20 HTTP_CONNECTION=keep-alive
2013-10-31 15:35:51.879472 7f3a647c8700 20 PATH=/usr/local/bin:/usr/bin:/bin
2013-10-31 15:35:51.879473 7f3a647c8700 20 SERVER_SIGNATURE=
2013-10-31 15:35:51.879473 7f3a647c8700 20 SERVER_SOFTWARE=Apache/2.2.22 (Ubuntu)
2013-10-31 15:35:51.879474 7f3a647c8700 20 SERVER_NAME=ceph-node1
2013-10-31 15:35:51.879474 7f3a647c8700 20 SERVER_ADDR=192.168.137.166
2013-10-31 15:35:51.879474 7f3a647c8700 20 SERVER_PORT=80
2013-10-31 15:35:51.879475 7f3a647c8700 20 REMOTE_ADDR=192.168.137.1
2013-10-31 15:35:51.879475 7f3a647c8700 20 DOCUMENT_ROOT=/var/www
2013-10-31 15:35:51.879475 7f3a647c8700 20 SERVER_ADMIN=[no address given]
2013-10-31 15:35:51.879476 7f3a647c8700 20 SCRIPT_FILENAME=/var/www/s3gw.fcgi
2013-10-31 15:35:51.879476 7f3a647c8700 20 REMOTE_PORT=54051
2013-10-31 15:35:51.879476 7f3a647c8700 20 GATEWAY_INTERFACE=CGI/1.1
2013-10-31 15:35:51.879477 7f3a647c8700 20 SERVER_PROTOCOL=HTTP/1.1
2013-10-31 15:35:51.879477 7f3a647c8700 20 REQUEST_METHOD=PUT
2013-10-31 15:35:51.879478 7f3a647c8700 20 QUERY_STRING=page=bucket1&params=
2013-10-31 15:35:51.879478 7f3a647c8700 20 REQUEST_URI=/bucket1
2013-10-31 15:35:51.879478 7f3a647c8700 20 SCRIPT_NAME=/bucket1
2013-10-31 15:35:51.879479 7f3a647c8700  2 req 67:0.000088:s3:PUT /bucket1::getting op
2013-10-31 15:35:51.879482 7f3a647c8700  2 req 67:0.000091:s3:PUT /bucket1:create_bucket:authorizing
2013-10-31 15:35:51.879496 7f3a647c8700 20 get_obj_state: rctx=0x7f3a480065d0 obj=.users:DVZ1DHGEKRM3UOJMV37I state=0x7f3a48001668 s->prefetch_data=0
2013-10-31 15:35:51.879502 7f3a647c8700 10 moving .users+DVZ1DHGEKRM3UOJMV37I to cache LRU end
2013-10-31 15:35:51.879504 7f3a647c8700 10 cache get: name=.users+DVZ1DHGEKRM3UOJMV37I : hit
2013-10-31 15:35:51.879526 7f3a647c8700 20 get_obj_state: s->obj_tag was set empty
2013-10-31 15:35:51.879534 7f3a647c8700 10 moving .users+DVZ1DHGEKRM3UOJMV37I to cache LRU end
2013-10-31 15:35:51.879535 7f3a647c8700 10 cache get: name=.users+DVZ1DHGEKRM3UOJMV37I : hit
2013-10-31 15:35:51.879547 7f3a647c8700 20 get_obj_state: rctx=0x7f3a480065d0 obj=.users.uid:radosgwadmin state=0x7f3a48001da8 s->prefetch_data=0
2013-10-31 15:35:51.879551 7f3a647c8700 10 moving .users.uid+radosgwadmin to cache LRU end
2013-10-31 15:35:51.879552 7f3a647c8700 10 cache get: name=.users.uid+radosgwadmin : hit
2013-10-31 15:35:51.879554 7f3a647c8700 20 get_obj_state: s->obj_tag was set empty
2013-10-31 15:35:51.879556 7f3a647c8700 10 moving .users.uid+radosgwadmin to cache LRU end
2013-10-31 15:35:51.879557 7f3a647c8700 10 cache get: name=.users.uid+radosgwadmin : hit
2013-10-31 15:35:51.879606 7f3a647c8700 10 get_canon_resource(): dest=
2013-10-31 15:35:51.879609 7f3a647c8700 10 auth_hdr:
PUT


Thu, 31 Oct 2013 19:35:56 GMT
x-amz-acl:public-read-write
/bucket1
2013-10-31 15:35:51.879667 7f3a647c8700 15 calculated digest=s83bJMVCnJbvcK/3yKe6soC/qIg=
2013-10-31 15:35:51.879670 7f3a647c8700 15 auth_sign=s83bJMVCnJbvcK/3yKe6soC/qIg=
2013-10-31 15:35:51.879670 7f3a647c8700 15 compare=0
2013-10-31 15:35:51.879672 7f3a647c8700  2 req 67:0.000281:s3:PUT /bucket1:create_bucket:reading permissions
2013-10-31 15:35:51.879675 7f3a647c8700  2 req 67:0.000284:s3:PUT /bucket1:create_bucket:verifying op mask
2013-10-31 15:35:51.879677 7f3a647c8700 20 required_mask= 2 user.op_mask=7
2013-10-31 15:35:51.879677 7f3a647c8700  2 req 67:0.000286:s3:PUT /bucket1:create_bucket:verifying op permissions
2013-10-31 15:35:51.880627 7f3a647c8700  2 req 67:0.001236:s3:PUT /bucket1:create_bucket:verifying op params
2013-10-31 15:35:51.880633 7f3a647c8700  2 req 67:0.001242:s3:PUT /bucket1:create_bucket:executing
2013-10-31 15:35:51.880658 7f3a647c8700 20 create bucket input data={}
2013-10-31 15:35:51.880660 7f3a647c8700  0 failed to parse input: {}
2013-10-31 15:35:51.880699 7f3a647c8700  2 req 67:0.001307:s3:PUT /bucket1:create_bucket:http status=400
2013-10-31 15:35:51.880958 7f3a647c8700  1 ====== req done req=0x1a380e0 http_status=400 ======
_______________________________________________
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]     [Ceph Dev]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux