<div dir="ltr">Setting the admin_token config is overriding the admin_user, admin_password, and admin_tenant_name values by specifying a static token. I'd recommend removing it and using the auth credentials you've already provided.<div class="gmail_extra">
<div><div><br></div>-Dolph</div>
<br><br><div class="gmail_quote">On Thu, Feb 21, 2013 at 3:10 AM, Kun Huang <span dir="ltr"><<a href="mailto:Academicgareth@gmail.com" target="_blank">Academicgareth@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">Following another question:<div>In document: <a href="http://docs.openstack.org/developer/keystone/middleware_architecture.html" target="_blank">http://docs.openstack.org/developer/keystone/middleware_architecture.html</a>, </div>

<div><br></div><div><pre style="overflow:auto;font-family:Consolas,'Deja Vu Sans Mono','Bitstream Vera Sans Mono',monospace;font-size:13.63636302947998px;line-height:16.363636016845703px;padding:0.5em;border:1px solid rgb(204,204,204);background-color:rgb(248,248,248);color:rgb(85,85,85)">
[filter:tokenauth]
paste.filter_factory = keystone.middleware.auth_token:filter_factory
auth_host = 127.0.0.1
auth_port = 35357
auth_protocol = http
auth_uri = <a href="http://127.0.0.1:5000/" target="_blank">http://127.0.0.1:5000/</a>
admin_token = Super999Sekret888Password777
admin_user = admin
admin_password = SuperSekretPassword
admin_tenant_name = service
;Uncomment next line and check ip:port to use memcached to cache tokens
;memcache_servers = <a href="http://127.0.0.1:11211" target="_blank">127.0.0.1:11211</a></pre>That admin token is not admin_token = ADMIN in keystone, right?</div><div><br></div><div><br><br></div></div><div class="HOEnZb">
<div class="h5"><div class="gmail_extra">
<br><br><div class="gmail_quote">On Thu, Feb 21, 2013 at 4:06 PM, Kun Huang <span dir="ltr"><<a href="mailto:Academicgareth@gmail.com" target="_blank">Academicgareth@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div dir="ltr">I'm building environment with Swift + Keystone.<div>I have set <tt style="font-family:Consolas,'Deja Vu Sans Mono','Bitstream Vera Sans Mono',monospace;font-size:13.63636302947998px;background-color:rgb(242,242,242);border-bottom-width:1px;border-bottom-style:solid;border-bottom-color:rgb(221,221,221);color:rgb(51,51,51);line-height:20px"><span>admin_user</span></tt><span style="line-height:20px;font-size:13.63636302947998px;font-family:'Lucida Grande','Lucida Sans Unicode',Geneva,Verdana,sans-serif">, </span><tt style="font-family:Consolas,'Deja Vu Sans Mono','Bitstream Vera Sans Mono',monospace;font-size:13.63636302947998px;background-color:rgb(242,242,242);border-bottom-width:1px;border-bottom-style:solid;border-bottom-color:rgb(221,221,221);color:rgb(51,51,51);line-height:20px"><span>admin_password</span></tt><span style="line-height:20px;font-size:13.63636302947998px;font-family:'Lucida Grande','Lucida Sans Unicode',Geneva,Verdana,sans-serif">, </span><tt style="font-family:Consolas,'Deja Vu Sans Mono','Bitstream Vera Sans Mono',monospace;font-size:13.63636302947998px;background-color:rgb(242,242,242);border-bottom-width:1px;border-bottom-style:solid;border-bottom-color:rgb(221,221,221);color:rgb(51,51,51);line-height:20px"><span>admin_tenant_name</span></tt>, but it doesn't work.</div>


<div>I followed the document: <a href="http://docs.openstack.org/developer/swift/overview_auth.html" target="_blank">http://docs.openstack.org/developer/swift/overview_auth.html</a> and chmouel's blog: <a href="http://blog.chmouel.com/2011/11/24/swift-and-keystone-middleware-part1/" target="_blank">http://blog.chmouel.com/2011/11/24/swift-and-keystone-middleware-part1/</a></div>


<div><br></div><div>My swift and keystone run well:</div><div><br></div><div><img alt="Inline image 1" width="764" height="428"><br></div><div><br></div><div>
But failed in curl:</div><div><img alt="Inline image 2" width="764" height="121"><br></div><div><br></div><div>I guess the value of admin_user/admin_password/admin_tenant_name doesn't save in db.</div>

<div><br></div><div>Which step do I missed? or some problems in my proxy config?</div><div><br></div><div>Here is my current config.</div><div><div>[DEFAULT]</div><div>bind_port = 8888</div><div>
user = swift</div><div><br></div><div>[pipeline:main]</div><div>pipeline = catch_errors healthcheck cache authtoken keystoneauth proxy-server</div><div><br></div><div>[app:proxy-server]</div><div>use = egg:swift#proxy</div>


<div>account_autocreate = true</div><div><br></div><div>[filter:keystoneauth]</div><div>use = egg:swift#keystoneauth</div><div>operator_roles = admin, swiftoperator</div><div><br></div><div>[filter:authtoken]</div><div># Delaying the auth decision is required to support token-less</div>


<div># usage for anonymous referrers ('.r:*').</div><div>paste.filter_factory = keystoneclient.middleware.auth_token:filter_factory</div><div>auth_host = keystonehost</div><div>auth_port = 35357</div><div>auth_protocol = http</div>


<div>auth_uri = <a href="http://keystonehost:5000/" target="_blank">http://keystonehost:5000/</a></div><div>admin_tenant_name = service</div><div>admin_user = swift</div><div>admin_password = password</div><div><br></div>

<div>[filter:cache]</div>
<div>use = egg:swift#memcache</div><div>set log_name = cache</div><div><br></div><div>[filter:catch_errors]</div><div>use = egg:swift#catch_errors</div><div><br></div><div>[filter:healthcheck]</div><div>use = egg:swift#healthcheck</div>


</div></div>
</blockquote></div><br></div>
</div></div><br>_______________________________________________<br>
Mailing list: <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>
Post to     : <a href="mailto:openstack@lists.launchpad.net">openstack@lists.launchpad.net</a><br>
Unsubscribe : <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>
More help   : <a href="https://help.launchpad.net/ListHelp" target="_blank">https://help.launchpad.net/ListHelp</a><br>
<br></blockquote></div><br></div></div>