← Back to team overview

openstack team mailing list archive

Re: [Swift]

 

What's your purpose for "curl -k -v -H 'X-Storage-User: service:swift' -H
'X-Storage-Pass: 12345678' -X 'POST' http://localhost:5000/v2.0/auth";

Do you just want get token ofr service:swift? (If yes, -XGET is ok)


On Fri, Mar 15, 2013 at 3:14 PM, Tomáš Šoltys <tomas.soltys@xxxxxxxxx>wrote:

> Forgot to attach /etc/swift/proxy-server.conf
>
> [DEFAULT]
> bind_port = 8888
> user = swift
>
> [pipeline:main]
> pipeline = healthcheck cache authtoken keystone proxy-server
>
> [app:proxy-server]
> use = egg:swift#proxy
> allow_account_management = true
> account_autocreate = true
>
> [filter:keystone]
> paste.filter_factory = keystone.middleware.swift_auth:filter_factory
> operator_roles = Member,admin, swiftoperator
>
> [filter:authtoken]
> paste.filter_factory = keystone.middleware.auth_token:filter_factory
> # Delaying the auth decision is required to support token-less
> # usage for anonymous referrers ('.r:*').
> delay_auth_decision = 10
> service_port = 5000
> service_host = 127.0.0.1
> auth_port = 35357
> auth_host = 127.0.0.1
> auth_protocol = http
> auth_uri = http://127.0.0.1:5000/
> auth_token = 12345678
> admin_token = 12345678
> admin_tenant_name = service
> admin_user = swift
> admin_password = 12345678
>
> [filter:cache]
> use = egg:swift#memcache
> set log_name = cache
>
> [filter:catch_errors]
> use = egg:swift#catch_errors
>
> [filter:healthcheck]
> use = egg:swift#healthcheck
>
>
> 2013/3/15 Tomáš Šoltys <tomas.soltys@xxxxxxxxx>
>
>> Hi,
>>
>> I am following the OpenStack WalkThrough instructions and I am failing to
>> verify my setup as described here:
>>
>> http://docs.openstack.org/folsom/openstack-compute/install/yum/content/verify-swift-installation.html
>>
>> In this forum I have found that the instructions are not exactly correct
>> so I tried what was suggested but without any success.
>>
>> Following command always return '404 Not Found'
>>
>> 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?
>>
>> Thanks
>>
>> Tomáš Šoltys
>>
>> tomas.soltys@xxxxxxxxx
>> http://www.range-software.com
>> (+420) 776-843-663
>>
>
>
>
> --
> Tomáš Šoltys
> tomas.soltys@xxxxxxxxx
> http://www.range-software.com
> (+420) 776-843-663
>
> _______________________________________________
> Mailing list: https://launchpad.net/~openstack
> Post to     : openstack@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~openstack
> More help   : https://help.launchpad.net/ListHelp
>
>


-- 
Gareth
*Cloud Computing, Openstack, Fitness, Basketball
*
*Novice Openstack contributer*
*My promise: if you find any spelling or grammar mistake in my email from
Mar 1 2013, notice me *
*and I'll donate 1$ or 1¥ to open organization specified by you.*

References