ceph access using curl

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

 



I'm having pilot error with getting the path correct using curl.

Bucket listing using "radosgw-admin bucket list" works as does the swift API.

Can someone point out my (obvious) error?

 

Bucket list works:

root@controller21:/home/ceph/my-cluster#  radosgw-admin bucket list         

2013-10-04 11:28:13.144065 7fe5f26fe780  0 WARNING: cannot read region map

[

    "xxx"]

 

Swift API to Ceph works

        swift -V 1.0 -A http://ictp-R2C4-Controller21.ict.englab.netapp.com/auth -U rados:swift -K "xxx"  stat

           Account: v1

        Containers: 1

           Objects: 1

             Bytes: 604

              Vary: Accept-Encoding

            Server: Apache/2.2.22 (Ubuntu)

        X-Account-Bytes-Used-Actual: 4096

        Content-Type: text/plain; charset=utf-8

        root@controller21:/home/ceph/my-cluster# swift -V 1.0 -A http://ictp-R2C4-Controller21.ict.englab.netapp.com/auth -U rados:swift -K "77iJvemrxWvYk47HW7pxsL+eHdA53AtLl2T0OyuG"  list

        xxx

 

However I can’t get the correct http path. Variations of auth/v1.0, auth/v1 … don’t work either:

        root@controller21:/home/ceph/my-cluster# curl -v -H 'X-Storage-User: rados:swift' -H 'X-Storage-Pass: xxx'  http://ictp-R2C4-Controller21.ict.englab.netapp.com/auth

        * About to connect() to ictp-R2C4-Controller21.ict.englab.netapp.com port 80 (#0)

        *   Trying 10.113.193.189... connected

        > GET /auth HTTP/1.1

        > User-Agent: curl/7.22.0 (x86_64-pc-linux-gnu) libcurl/7.22.0 OpenSSL/1.0.1 zlib/1.2.3.4 libidn/1.23 librtmp/2.3

        > Host: ictp-R2C4-Controller21.ict.englab.netapp.com

        > Accept: */*

        > X-Storage-User: rados:swift

        > X-Storage-Pass: 77iJvemrxWvYk47HW7pxsL+eHdA53AtLl2T0OyuG

        >

        < HTTP/1.1 403 Forbidden

        < Date: Fri, 04 Oct 2013 18:30:01 GMT

        < Server: Apache/2.2.22 (Ubuntu)

        < Accept-Ranges: bytes

        < Content-Length: 23

        < Content-Type: application/json

        <

        * Connection #0 to host ictp-R2C4-Controller21.ict.englab.netapp.com left intact

        * Closing connection #0

        {"Code":"AccessDenied"}root@controller21:/home/ceph/my-cluster#

 

Thanks,

Tim

_______________________________________________
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