← Back to team overview

openstack team mailing list archive

Re: Swift + Keystone integration problem

 

you need to add the proxy-logging middleware, see swift's default
proxy-server.conf
https://github.com/openstack/swift/blob/master/etc/proxy-server.conf-sample

Chmouel.


On Mon, Feb 4, 2013 at 10:37 AM, Andrey V. Romanchev <
andrey.romanchev@xxxxxxxxx> wrote:

> [pipeline:main]
> pipeline = catch_errors healthcheck cache authtoken keystone proxy-server
>
> How to add log messages to middleware components?
>
>
> 2013/2/1 David Goetz <david.goetz@xxxxxxxxxxxxx>
>
>> I'm sorry- I didn't read that part about the proxy restart :)  The proxy
>> may not log if it gets hung up in some middleware. What middleware do you
>> have running?  You can try adding in some log messages into the middleware
>> you have running to find out where.
>>
>>
>> On Feb 1, 2013, at 1:37 PM, David Goetz wrote:
>>
>> > Sounds like swift isn't listening on that port. What is the bind_port
>> in your proxy-server.conf?
>> >
>> >
>> > On Feb 1, 2013, at 12:53 PM, Andrey V. Romanchev wrote:
>> >
>> >> Hello!
>> >> I've installed swift + keystone and have incomprehensible problem
>> >>
>> >> First of all I get auth tokens
>> >> curl -d '{"auth": {"tenantName": "service",
>> "passwordCredentials":{"username": "swift", "password": "swiftpass"}}}' -H
>> "Content-type: application/json" http://<host>:5000/v2.0/tokens | python
>> -mjson.tool
>> >>
>> >> This command works fine, I get token id and publicURL
>> >>
>> >> Then
>> >> curl -H "X-AUTH-TOKEN: cf1d44080a184e6c8f94e3fe52e89d48" http://
>> <host>:8888/v1/AUTH_b74d4d57b1f5473bb2d8ffe5110a3d5a
>> >>
>> >> This command just hangs and that's all. No swift logs, no response.
>> >> If I restart proxy server, I get on client side
>> >> curl: (56) Recv failure: Connection reset by peer
>> >>
>> >> I've completely stuck here. I even turned on debug logs in swift-proxy
>> - no result as well.
>> >> Is there any possibility to understand what's wrong?
>> >> _______________________________________________
>> >> Mailing list: https://launchpad.net/~openstack
>> >> Post to     : openstack@xxxxxxxxxxxxxxxxxxx
>> >> Unsubscribe : https://launchpad.net/~openstack
>> >> More help   : https://help.launchpad.net/ListHelp
>> >
>> >
>> > _______________________________________________
>> > Mailing list: https://launchpad.net/~openstack
>> > Post to     : openstack@xxxxxxxxxxxxxxxxxxx
>> > Unsubscribe : https://launchpad.net/~openstack
>> > More help   : https://help.launchpad.net/ListHelp
>>
>>
>
> _______________________________________________
> Mailing list: https://launchpad.net/~openstack
> Post to     : openstack@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~openstack
> More help   : https://help.launchpad.net/ListHelp
>
>

References