From: Edward Hope-Morley <edward.hope-morley@canonical.com>
To: Yehuda Sadeh <yehuda@inktank.com>
Cc: ceph-devel <ceph-devel@vger.kernel.org>,
John Wilkins <john.wilkins@inktank.com>
Subject: Issue with RGW API
Date: Wed, 19 Jun 2013 16:21:39 +0100 [thread overview]
Message-ID: <51C1CC83.7070206@canoncial.com> (raw)
In-Reply-To: <CABBk=J-UfWB+wTU1GmDbhx8gnB17w3RjOcdymO6x59oz3y-nog@mail.gmail.com>
Yehuda,
Thanks for your reply. Is this not a bit un-Swift like? I came across
this while testing the backup service for Openstack Cinder. Cinder
currently supports backup to Swift so I tested this against Rados
Gateway but it does not work because the it uses the standard
http://<server>/<version>/<account> format.
Also, there is an issue with PUTs where RGW returns a "411 Length
Required" in case the content-length is not specified. Is content-length
mandatory? Swift does not seem to complain. What are your thoughts on this?
(updated the subject since it was wrong)
Ed.
On 19/06/13 16:08, Yehuda Sadeh wrote:
> On Wed, Jun 19, 2013 at 3:03 AM, Edward Hope-Morley
> <opentastic@gmail.com> wrote:
>> Apologies, premature send ;)
>>
>> On 19/06/13 11:00, Edward Hope-Morley wrote:
>>> Hi guys, I'm having the following issue with the RGW swift API:
>>>
>>> The docs at http://ceph.com/docs/next/radosgw/swift/serviceops say that
>>> for a GET request to list account contents I should do (as with Swift):
>>>
>>> GET /{api version}/{account} HTTP/1.1
>>>
>>>
>>> but, if I put the account RGW treats this as a bucket.
>>>
>>> So the following works fine:
>>>
>>> curl -i http://192.168.1.201:80/swift/v1 -X GET -H "X-Auth-Token: $token"
>>>
>>> But this does not:
>> curl -i http://192.168.1.201:80/swift/v1/$account -X GET -H
>> "X-Auth-Token: $token"
>>
>> Am I doing something wrong or is this an anomaly in the RGW API?
>>
> The docs are wrong there, the account is determined by the auth token.
>
> Yehuda
next prev parent reply other threads:[~2013-06-19 15:21 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-04 9:44 RGW and Keystone Chmouel Boudjnah
2013-06-04 15:04 ` Yehuda Sadeh
2013-06-04 16:39 ` Chmouel Boudjnah
2013-06-19 10:00 ` Edward Hope-Morley
2013-06-19 10:03 ` Edward Hope-Morley
2013-06-19 15:08 ` Yehuda Sadeh
2013-06-19 15:21 ` Edward Hope-Morley [this message]
2013-06-19 15:37 ` Issue with RGW API Yehuda Sadeh
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=51C1CC83.7070206@canoncial.com \
--to=edward.hope-morley@canonical.com \
--cc=ceph-devel@vger.kernel.org \
--cc=john.wilkins@inktank.com \
--cc=yehuda@inktank.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.