<html><body>
<p><font size="2" face="sans-serif">use 8080 port?</font><br>
<br>
<font size="2" face="sans-serif">-Edward<br>
</font><br>
<br>
<img width="16" height="16" src="cid:1__=C7BBF140DFBA11CF8f9e8a93df938@cn.ibm.com" border="0" alt="Inactive hide details for pragya jain ---2013-08-26 ÏÂÎç 02:46:59---pragya jain <prag_2648@yahoo.co.in>"><font size="2" color="#424282" face="sans-serif">pragya jain ---2013-08-26 ÏÂÎç 02:46:59---pragya jain <prag_2648@yahoo.co.in></font><br>
<br>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr valign="top"><td style="background-image:url(cid:2__=C7BBF140DFBA11CF8f9e8a93df938@cn.ibm.com); background-repeat: no-repeat; " width="40%">
<ul style="padding-left: 72pt"><font size="1" face="sans-serif"><b>pragya jain <prag_2648@yahoo.co.in></b></font><font size="1" face="sans-serif"> </font>
<p><font size="1" face="sans-serif">2013-08-26 ÏÂÎç 02:36</font>
<table border="1">
<tr valign="top"><td width="168" bgcolor="#FFFFFF"><div align="center"><font size="1" face="sans-serif">Please respond to<br>
pragya jain <prag_2648@yahoo.co.in></font></div></td></tr>
</table>
</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:3__=C7BBF140DFBA11CF8f9e8a93df938@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:3__=C7BBF140DFBA11CF8f9e8a93df938@cn.ibm.com" border="0" alt=""><br>
<ul style="padding-left: 7pt"><font size="1" face="sans-serif">"joe@swiftstack.com" <joe@swiftstack.com>, "clay.gerrard@gmail.com" <clay.gerrard@gmail.com>, "contact@swiftstack.com" <contact@swiftstack.com>, "openstack@ask.openstack.org" <openstack@ask.openstack.org>, "openstack@lists.openstack.org" <openstack@lists.openstack.org>, </font></ul>
</td></tr>
<tr valign="top"><td width="1%"><img width="58" height="1" src="cid:3__=C7BBF140DFBA11CF8f9e8a93df938@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:3__=C7BBF140DFBA11CF8f9e8a93df938@cn.ibm.com" border="0" alt=""><br>
<ul style="padding-left: 7pt"><font size="1" face="sans-serif">anita goel <goel.anita@gmail.com></font></ul>
</td></tr>
<tr valign="top"><td width="1%"><img width="58" height="1" src="cid:3__=C7BBF140DFBA11CF8f9e8a93df938@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:3__=C7BBF140DFBA11CF8f9e8a93df938@cn.ibm.com" border="0" alt=""><br>
<ul style="padding-left: 7pt"><font size="1" face="sans-serif">[Openstack] problem in setting up Tempauth authentication & authorization with Swift</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:3__=C7BBF140DFBA11CF8f9e8a93df938@cn.ibm.com" border="0" alt=""></td><td width="336"><img width="1" height="1" src="cid:3__=C7BBF140DFBA11CF8f9e8a93df938@cn.ibm.com" border="0" alt=""></td></tr>
</table>
</td></tr>
</table>
<br>
<font size="3" face="Times">hello,<br>
<br>
I have to configure proxy server.<br>
For this, </font><br>
<font size="3" face="Times">I have to edit /etc/swift/swift.conf and change the swift_hash_path_suffix to something secret and then, start the proxy server process</font><br>
<br>
<font size="3" face="Times">for this, I use the following commands:</font><br>
<font size="3" face="Times">root@arun-Aspire-5742:~# vi /etc/swift/swift.conf<br>
<br>
make following changes (highlighted) in the file:<br>
swift_hash_path_suffix =pragya <br>
swift_hash_path_prefix =jain <br>
<br>
save and exit.<br>
then, I run the command:<br>
root@arun-Aspire-5742:~# sudo swift-init proxy start<br>
Starting proxy-server...(/etc/swift/proxy-server.conf)<br>
<br>
Now, I have to set up Tempauth authentication & authorization with Swift<br>
for this, I run the following command:<br>
root@arun-Aspire-5742:~# vi /etc/swift/proxy-server.conf<br>
<br>
make following changes (highlighted) in the file:<br>
allow_account_management =true <br>
...<br>
[filter:tempauth]<br>
use = egg:swift#tempauth<br>
...<br>
user_admin_admin = admin .admin .reseller_admin<br>
user_test_tester = testing .admin<br>
user_test2_tester2 = testing2 .admin<br>
user_test_tester3 = testing3<br>
user_prag2648_pragya = pj2648.admin.reseller_admin<br>
...<br>
<br>
save and exit<br>
Then, run following commands:<br>
root@arun-Aspire-5742:~# sudo swift-init account start<br>
Starting account-server...(/etc/swift/account-server.conf)<br>
root@arun-Aspire-5742:~# sudo swift-init proxy restart<br>
Signal proxy-server pid: 2476 signal: 15<br>
proxy-server (2476) appears to have stopped<br>
Starting proxy-server...(/etc/swift/proxy-server.conf)<br>
root@arun-Aspire-5742:~# curl -v -H 'X-Auth-User:prag2648:pragya' -H 'X-Auth-Key:pj2648' </font><font size="3" face="Times"><a href="http://localhost/auth/v1.0/">http://localhost/auth/v1.0/</a></font><font size="3" face="Times"><br>
* About to connect() to localhost port 80 (#0)<br>
* Trying 127.0.0.1... Connection refused<br>
* couldn't connect to host<br>
* Closing connection #0<br>
curl: (7) couldn't connect to host<br>
<br>
But, there is an error in establising a connection.<br>
<br>
if, I run the command to start proxy server, then it shows that proxy server is already started.<br>
root@arun-Aspire-5742:~# sudo swift-init proxy start<br>
proxy-server running (2935 - /etc/swift/proxy-server.conf)<br>
proxy-server already started...<br>
<br>
Please help me in this regard.<br>
---<br>
<br>
Thanks <br>
<br>
Pragya Jain</font><tt><font size="2">_______________________________________________<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>
</font></tt><br>
</body></html>