← Back to team overview

openstack team mailing list archive

[Keystone][Swift] Problems with admin_user, admin_password, admin_tenant_name

 

I'm building environment with Swift + Keystone.
I have set admin_user, admin_password, admin_tenant_name, but it doesn't
work.
I followed the document:
http://docs.openstack.org/developer/swift/overview_auth.html and chmouel's
blog:
http://blog.chmouel.com/2011/11/24/swift-and-keystone-middleware-part1/

My swift and keystone run well:

[image: Inline image 1]

But failed in curl:
[image: Inline image 2]

I guess the value of admin_user/admin_password/admin_tenant_name doesn't
save in db.

Which step do I missed? or some problems in my proxy config?

Here is my current config.
[DEFAULT]
bind_port = 8888
user = swift

[pipeline:main]
pipeline = catch_errors healthcheck cache authtoken keystoneauth
proxy-server

[app:proxy-server]
use = egg:swift#proxy
account_autocreate = true

[filter:keystoneauth]
use = egg:swift#keystoneauth
operator_roles = admin, swiftoperator

[filter:authtoken]
# Delaying the auth decision is required to support token-less
# usage for anonymous referrers ('.r:*').
paste.filter_factory = keystoneclient.middleware.auth_token:filter_factory
auth_host = keystonehost
auth_port = 35357
auth_protocol = http
auth_uri = http://keystonehost:5000/
admin_tenant_name = service
admin_user = swift
admin_password = password

[filter:cache]
use = egg:swift#memcache
set log_name = cache

[filter:catch_errors]
use = egg:swift#catch_errors

[filter:healthcheck]
use = egg:swift#healthcheck

PNG image

PNG image


Follow ups