<html><body>
<p><tt><font size="2">The </font></tt><tt><font size="2"><i>authtoken </i></font></tt><tt><font size="2">and </font></tt><tt><font size="2"><i>keystone </i></font></tt><tt><font size="2">middleware should be put ahead of</font></tt><tt><font size="2"><i> proxy-server</i></font></tt><tt><font size="2">.</font></tt><br>
<tt><font size="2">you need to change the main pipeline as below:</font></tt><br>
<br>
<tt><font size="2"><i>[pipeline:main]<br>
pipeline = catch_errors healthcheck proxy-logging cache authtoken keystone <br>
proxy-logging proxy-server</i></font></tt><br>
<font size="2" face="sans-serif"><br>
</font><font size="1" face="serif"><b>Best Regards, </b></font><font size="1" face="serif"><br>
<br>
</font><hr width="100%" size="2" align="left">
<table border="0" cellspacing="0" cellpadding="0">
<tr valign="top"><td width="298" valign="middle">
<ul style="padding-left: 0pt"><font size="1" face="serif"><b>Edward Zhang(́Ȼ)</b></font></ul>
</td><td width="298" valign="middle"><img width="1" height="1" src="cid:1__=C7BBF17CDFA676FA8f9e8a93df938@cn.ibm.com" border="0" alt=""></td></tr>
</table>
<table border="0" cellspacing="0" cellpadding="0">
<tr valign="top"><td width="298" valign="middle"><img width="1" height="1" src="cid:1__=C7BBF17CDFA676FA8f9e8a93df938@cn.ibm.com" border="0" alt=""></td><td width="298" valign="middle"><img width="1" height="1" src="cid:1__=C7BBF17CDFA676FA8f9e8a93df938@cn.ibm.com" border="0" alt=""></td></tr>
<tr valign="top"><td width="298" valign="middle">
<ul style="padding-left: 0pt"><img src="cid:2__=C7BBF17CDFA676FA8f9e8a93df938@cn.ibm.com" width="100" height="100"></ul>
</td><td width="298" valign="middle"><img width="1" height="1" src="cid:1__=C7BBF17CDFA676FA8f9e8a93df938@cn.ibm.com" border="0" alt=""></td></tr>
<tr valign="top"><td width="298" valign="middle">
<ul style="padding-left: 0pt"><font size="1" face="serif"><br>
</font></ul>
</td><td width="298" valign="middle"><img width="1" height="1" src="cid:1__=C7BBF17CDFA676FA8f9e8a93df938@cn.ibm.com" border="0" alt=""></td></tr>
</table>
<br>
<img width="16" height="16" src="cid:3__=C7BBF17CDFA676FA8f9e8a93df938@cn.ibm.com" border="0" alt="Inactive hide details for Mahardhika Gilang ---09/23/2013 05:14:26 PM---Mahardhika Gilang <mahardika.gilang@andalabs.com>"><font size="2" color="#424282" face="sans-serif">Mahardhika Gilang ---09/23/2013 05:14:26 PM---Mahardhika Gilang <mahardika.gilang@andalabs.com></font><br>
<br>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr valign="top"><td style="background-image:url(cid:4__=C7BBF17CDFA676FA8f9e8a93df938@cn.ibm.com); background-repeat: no-repeat; " width="40%">
<ul style="padding-left: 72pt"><font size="1" face="sans-serif"><b>Mahardhika Gilang <mahardika.gilang@andalabs.com></b></font><font size="1" face="sans-serif"> </font>
<p><font size="1" face="sans-serif">09/23/2013 05:01 PM</font></ul>
</td><td width="60%">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr valign="top"><td width="1%"><img width="58" height="1" src="cid:1__=C7BBF17CDFA676FA8f9e8a93df938@cn.ibm.com" border="0" alt=""><br>
<div align="right"><font size="1" face="sans-serif">To</font></div></td><td width="100%"><img width="1" height="1" src="cid:1__=C7BBF17CDFA676FA8f9e8a93df938@cn.ibm.com" border="0" alt=""><br>
<ul style="padding-left: 7pt"><font size="1" face="sans-serif">Openstack Milis <openstack@lists.openstack.org>, </font></ul>
</td></tr>
<tr valign="top"><td width="1%"><img width="58" height="1" src="cid:1__=C7BBF17CDFA676FA8f9e8a93df938@cn.ibm.com" border="0" alt=""><br>
<div align="right"><font size="1" face="sans-serif">cc</font></div></td><td width="100%"><img width="1" height="1" src="cid:1__=C7BBF17CDFA676FA8f9e8a93df938@cn.ibm.com" border="0" alt=""><br>
</td></tr>
<tr valign="top"><td width="1%"><img width="58" height="1" src="cid:1__=C7BBF17CDFA676FA8f9e8a93df938@cn.ibm.com" border="0" alt=""><br>
<div align="right"><font size="1" face="sans-serif">Subject</font></div></td><td width="100%"><img width="1" height="1" src="cid:1__=C7BBF17CDFA676FA8f9e8a93df938@cn.ibm.com" border="0" alt=""><br>
<ul style="padding-left: 7pt"><font size="1" face="sans-serif">[Openstack] Swift not detect Keystone and Authtoken</font></ul>
</td></tr>
</table>
<table border="0" cellspacing="0" cellpadding="0">
<tr valign="top"><td width="58"><img width="1" height="1" src="cid:1__=C7BBF17CDFA676FA8f9e8a93df938@cn.ibm.com" border="0" alt=""></td><td width="336"><img width="1" height="1" src="cid:1__=C7BBF17CDFA676FA8f9e8a93df938@cn.ibm.com" border="0" alt=""></td></tr>
</table>
</td></tr>
</table>
<br>
<tt><font size="2">Hi all<br>
i've got an issue when i want to used keystone for authentication on <br>
swift proxy node.<br>
i got this when run #swift-init proxy restart<br>
LookupError: No section 'authtoken'<br>
LookupError: No section 'keystone'<br>
<br>
here's my proxy-server.conf<br>
[DEFAULT]<br>
cert_file = /etc/swift/cert.crt<br>
key_file = /etc/swift/cert.key<br>
bind_port = 8080<br>
#bind_port = 443<br>
workers = 8<br>
user = swift<br>
swift_dir = /etc/swift<br>
<br>
[pipeline:main]<br>
pipeline = catch_errors healthcheck proxy-logging cache tempauth <br>
proxy-logging proxy-server keystone authtoken<br>
<br>
[app:proxy-server]<br>
use = egg:swift#proxy<br>
allow_account_management = true<br>
account_autocreate = true<br>
<br>
[filter:authtoken]<br>
#use = egg:swift:authtoken<br>
paste.filter_factory = keystone.middleware.auth_token:filter_factory<br>
signing_dir = /var/cache/swift/<br>
auth_uri = </font></tt><tt><font size="2"><a href="http://10.10.10.40:5000/">http://10.10.10.40:5000/</a></font></tt><tt><font size="2"><br>
auth_host = 10.10.10.40<br>
#auth_uri = </font></tt><tt><font size="2"><a href="http://192.168.7.85:5000/">http://192.168.7.85:5000/</a></font></tt><tt><font size="2"><br>
#auth_host = 192.168.7.85<br>
auth_port = 35357<br>
auth_protocol = https<br>
admin_tenant_name = service<br>
admin_user = swift<br>
admin_password = admin<br>
#cache = swift.cache<br>
auth_token = admin<br>
<br>
[filter:catch_errors]<br>
use = egg:swift#catch_errors<br>
<br>
[filter:proxy-logging]<br>
use = egg:swift#proxy_logging<br>
<br>
#[filter:tempauth]<br>
#use = egg:swift#tempauth<br>
#user_system_root = testpass .admin </font></tt><tt><font size="2"><a href="https://10.10.10.40:8080/v1/AUTH_system">https://10.10.10.40:8080/v1/AUTH_system</a></font></tt><tt><font size="2"><br>
#user_test_tester = testing .admin </font></tt><tt><font size="2"><a href="https://10.10.10.40:8080/v1/AUTH_test">https://10.10.10.40:8080/v1/AUTH_test</a></font></tt><tt><font size="2"><br>
<br>
[filter:healthcheck]<br>
use = egg:swift#healthcheck<br>
<br>
[filter:cache]<br>
use = egg:swift#memcache<br>
memcache_servers = 10.10.10.40:11211<br>
<br>
[filter:keystone]<br>
#use = egg:swift#keystone<br>
paste.filter_factory = keystone.middleware.swift_auth:filter_factory<br>
operator_roles = Member,admin<br>
is_admin = true<br>
<br>
<br>
Please help<br>
thanks<br>
<br>
-- <br>
Regards,<br>
Mahardhika Gilang<br>
<br>
<br>
<br>
_______________________________________________<br>
Mailing list: </font></tt><tt><font size="2"><a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a></font></tt><tt><font size="2"><br>
Post to : openstack@lists.openstack.org<br>
Unsubscribe : </font></tt><tt><font size="2"><a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a></font></tt><tt><font size="2"><br>
<br>
</font></tt><br>
</body></html>