openstack team mailing list archive
-
openstack team
-
Mailing list archive
-
Message #21923
Re: [Swift]
On Fri, Mar 15, 2013 at 8:02 AM, Tomáš Šoltys <tomas.soltys@xxxxxxxxx> wrote:
> curl -k -v -H 'X-Storage-User: service:swift' -H 'X-Storage-Pass: 12345678'
> -X 'POST' http://localhost:5000/v2.0/auth
>
> But when for following it works:
>
> curl -k -v -X 'POST' http://localhost:5000/v2.0/tokens -d
> '{"auth":{"passwordCredentials":{"username":"swift", "password":"12345678"},
> "tenantName":"service"}}' -H 'Content-type: application/json' -H 'Accept:
> application/xml'
>
> What am I missing here?
The first one is auth v1 style auth the second one is v2 it seems that
there is a bug in the manual (feel free to raise a bug in
openstack-manuals launchpad project).
To verify an installation with a keystone install (i.e: v2) the swift
-V2.0 command is enough above the curl command is enough.
Chmouel.
References
-
[Swift]
From: Tomáš Šoltys, 2013-03-15