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

Kun Huang Academicgareth at gmail.com
Thu Feb 21 08:06:46 UTC 2013


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20130221/2fea46a8/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 35695 bytes
Desc: not available
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20130221/2fea46a8/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 256901 bytes
Desc: not available
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20130221/2fea46a8/attachment-0001.png>


More information about the Openstack mailing list