<div dir="ltr">Obviously, There's no proxy server running on your node. <div><br></div><div>Please execute it on the node where proxy-server located: <br>(I assume the binary is in /usr/bin and conf file is in /etc/swift) <br>
<br>$> /usr/bin/python /usr/bin/swift-proxy-server /etc/swift/proxy-server.conf<br></div><div><br></div><div>What's the result ?</div><div class="gmail_extra"><br clear="all"><div><div dir="ltr"><div>+Hugo Kuo+</div>
<div><a href="mailto:hugo@swiftstack.com" target="_blank">hugo@swiftstack.com</a><br></div><div><a href="mailto:tonytkdk@gmail.com" target="_blank">tonytkdk@gmail.com<br></a></div><div>+886 935004793<br></div></div></div>
<br><br><div class="gmail_quote">2013/8/29 pragya jain <span dir="ltr"><<a href="mailto:prag_2648@yahoo.co.in" target="_blank">prag_2648@yahoo.co.in</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><div style="font-size:12pt;font-family:bookman old style,new york,times,serif">hello sir<br><br>Thanks for the suggestion.<br><br>(1) I give the space between pj2648 and .admin and also between .admin and .reseller_admin and tried the connection again, but face the same problem<br>
<br>root@arun-Aspire-5742:~# vi /etc/swift/proxy-server.conf<br><br>and make following changes:<div class="im"><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><br>user_prag2648_pragya =<span style="background-color:rgb(255,0,0)"> pj2648 .admin .reseller_admin</span><br><br></div>and then<div class="im"><br>root@arun-Aspire-5742:~# sudo swift-init account start<br>
Starting account-server...(/etc/swift/account-server.conf)<br></div>root@arun-Aspire-5742:~# sudo swift-init proxy start<div class="im"><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' <a href="http://localhost/auth/v1.0/" target="_blank">http://localhost/auth/v1.0/</a><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></div>(2) I also tired the connection with user admin:admin<br>
root@arun-Aspire-5742:~# curl -v -H 'X-Auth-User:admin:admin' -H 'X-Auth-Key:admin' <a href="http://localhost/auth/v1.0/" target="_blank">http://localhost/auth/v1.0/</a><div class="im"><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></div>(3) I also run the command to verify the port number of proxy<br>
root@arun-Aspire-5742:~# ps aux | grep proxy<br>nobody 2124 0.0 0.0 5384 1164
? S 10:39 0:00 /usr/sbin/dnsmasq --no-resolv --keep-in-foreground --no-hosts --bind-interfaces --pid-file=/var/run/sendsigs.omit.d/network-manager.dnsmasq.pid --listen-address=127.0.0.1 --conf-file=/var/run/nm-dns-dnsmasq.conf --cache-size=0 --proxy-dnssec<br>
root 2724 0.0 0.0 4368 828 pts/0 R+ 10:52 0:00 grep --color=auto proxy<br>root@arun-Aspire-5742:~# netstat -antulp<br>Active Internet connections (servers and established)<br>Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name<br>
tcp 0 0
<a href="http://127.0.0.1:11211" target="_blank">127.0.0.1:11211</a> 0.0.0.0:* LISTEN 931/memcached <br>tcp 0 0 <a href="http://127.0.0.1:53" target="_blank">127.0.0.1:53</a> 0.0.0.0:* LISTEN 2124/dnsmasq <br>
tcp 0 0 <a href="http://127.0.0.1:631" target="_blank">127.0.0.1:631</a> 0.0.0.0:* LISTEN 623/cupsd <br>tcp 0 0
<a href="http://115.184.7.223:51521" target="_blank">115.184.7.223:51521</a> <a href="http://74.125.236.132:80" target="_blank">74.125.236.132:80</a> TIME_WAIT - <br>tcp 1 0 <a href="http://115.184.7.223:46280" target="_blank">115.184.7.223:46280</a> <a href="http://91.189.89.144:80" target="_blank">91.189.89.144:80</a> CLOSE_WAIT 1663/ubuntu-geoip-p<br>
tcp 0 0 <a href="http://115.184.7.223:60563" target="_blank">115.184.7.223:60563</a> <a href="tel:173.194.38.147" value="+17319438147" target="_blank">173.194.38.147</a>:80 TIME_WAIT - <br>
tcp 0 0 <a href="http://115.184.7.223:43256" target="_blank">115.184.7.223:43256</a> <a href="http://124.124.201.179:80" target="_blank">124.124.201.179:80</a> TIME_WAIT
- <br>tcp 0 0 <a href="http://115.184.7.223:41791" target="_blank">115.184.7.223:41791</a> <a href="http://124.124.201.169:80" target="_blank">124.124.201.169:80</a> TIME_WAIT - <br>
tcp 0 0 <a href="http://115.184.7.223:36669" target="_blank">115.184.7.223:36669</a> <a href="http://124.124.252.9:80" target="_blank">124.124.252.9:80</a> TIME_WAIT - <br>tcp 0 0 <a href="http://115.184.7.223:51747" target="_blank">115.184.7.223:51747</a> <a href="tel:173.194.38.184" value="+17319438184" target="_blank">173.194.38.184</a>:80 TIME_WAIT -
<br>tcp 0 0 <a href="http://115.184.7.223:54229" target="_blank">115.184.7.223:54229</a> <a href="http://74.125.236.44:443" target="_blank">74.125.236.44:443</a> TIME_WAIT - <br>tcp 0 0 <a href="http://115.184.7.223:36185" target="_blank">115.184.7.223:36185</a> <a href="http://173.194.36.26:80" target="_blank">173.194.36.26:80</a> TIME_WAIT - <br>
tcp 0 0 <a href="http://115.184.7.223:38854" target="_blank">115.184.7.223:38854</a> <a href="http://74.125.236.109:80" target="_blank">74.125.236.109:80</a> TIME_WAIT - <br>tcp6 0 0
::1:631 :::* LISTEN 623/cupsd <br>udp 0 0 <a href="http://0.0.0.0:5353" target="_blank">0.0.0.0:5353</a> 0.0.0.0:* 619/avahi-daemon: r<br>
udp 0 0 <a href="http://0.0.0.0:53489" target="_blank">0.0.0.0:53489</a>
0.0.0.0:* 619/avahi-daemon: r<br>udp 0 0 <a href="http://127.0.0.1:11211" target="_blank">127.0.0.1:11211</a> 0.0.0.0:* 931/memcached <br>udp 0 0 <a href="http://127.0.0.1:53" target="_blank">127.0.0.1:53</a> 0.0.0.0:* 2124/dnsmasq <br>
udp6 0 0
:::5353 :::* 619/avahi-daemon: r<br>udp6 0 0 :::36705 :::* 619/avahi-daemon: r<br><br>Please help to proceed further.<br>
<br>---<br><br>Thanks<br><br>Pragya jain<br><div><span><br></span></div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:bookman old style,new york,times,serif"><br><blockquote style="border-left:2px solid rgb(16,16,255);margin-left:5px;margin-top:5px;padding-left:5px">
<div style="font-family:bookman old style,new york,times,serif;font-size:12pt"> <div style="font-family:times new roman,new york,times,serif;font-size:12pt"> <div dir="ltr"> <hr size="1"> <font face="Arial"> <b><span style="font-weight:bold">From:</span></b> Kuo Hugo <<a href="mailto:tonytkdk@gmail.com" target="_blank">tonytkdk@gmail.com</a>><br>
<b><span style="font-weight:bold">To:</span></b> pragya jain <<a href="mailto:prag_2648@yahoo.co.in" target="_blank">prag_2648@yahoo.co.in</a>> <br><b><span style="font-weight:bold">Cc:</span></b> Amanda Plimpton <<a href="mailto:amanda@swiftstack.com" target="_blank">amanda@swiftstack.com</a>>; "<a href="mailto:openstack@lists.openstack.org" target="_blank">openstack@lists.openstack.org</a>" <<a href="mailto:openstack@lists.openstack.org" target="_blank">openstack@lists.openstack.org</a>> <br>
<b><span style="font-weight:bold">Sent:</span></b> Wednesday, 28 August 2013 9:59 PM<br> <b><span style="font-weight:bold">Subject:</span></b> Re: [Openstack] Fw: problem in setting up Tempauth authentication & authorization with
Swift<br> </font> </div><div><div class="h5"> <div><br><div><div dir="ltr">Hi <div><br></div><div>1) user_prag2648_pragya = pj2648.admin.reseller_admin try to have a space between pj2648 and .admin . How about to test with user admin:admin ? </div>
<div>2) Verify the port number of proxy by </div>
<blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div>$> ps aux | grep proxy </div><div>$> netstat -antulp </div></blockquote><div><br></div><div>3) Check the Proxy for how to setup bind_port <a rel="nofollow" href="https://github.com/openstack/swift/blob/master/etc/proxy-server.conf-sample" target="_blank">https://github.com/openstack/swift/blob/master/etc/proxy-server.conf-sample</a></div>
<div><br></div><div><br></div><div><br></div><div><br></div></div><div><br clear="all"><div><div dir="ltr"><div>+Hugo Kuo+</div><div><a rel="nofollow" href="mailto:hugo@swiftstack.com" target="_blank">hugo@swiftstack.com</a><br>
</div><div><a rel="nofollow" href="mailto:tonytkdk@gmail.com" target="_blank">tonytkdk@gmail.com<br></a></div><div><a href="tel:%2B886%20935004793" value="+886935004793" target="_blank">+886 935004793</a><br></div></div>
</div>
<br><br><div>2013/8/29 pragya jain <span dir="ltr"><<a rel="nofollow" href="mailto:prag_2648@yahoo.co.in" target="_blank">prag_2648@yahoo.co.in</a>></span><br><blockquote style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><div style="font-size:12pt;font-family:bookman old style,new york,times,serif">hello sir,<br><br>Please help me in knowing how to use 8080 port <br><div><span><br></span></div><div><br><blockquote style="border-left:2px solid rgb(16,16,255);margin-left:5px;margin-top:5px;padding-left:5px">
<div style="font-family:bookman old style,new york,times,serif;font-size:12pt"> <div style="font-family:times new roman,new york,times,serif;font-size:12pt"> <div dir="ltr"> <hr size="1"> <font face="Arial"> <b><span style="font-weight:bold">From:</span></b> Amanda Plimpton <<a rel="nofollow" href="mailto:amanda@swiftstack.com" target="_blank">amanda@swiftstack.com</a>><br>
<b><span style="font-weight:bold">To:</span></b> pragya jain <<a rel="nofollow" href="mailto:prag_2648@yahoo.co.in" target="_blank">prag_2648@yahoo.co.in</a>> <br><b><span style="font-weight:bold">Cc:</span></b> "<a rel="nofollow" href="mailto:joe@swiftstack.com" target="_blank">joe@swiftstack.com</a>" <<a rel="nofollow" href="mailto:joe@swiftstack.com" target="_blank">joe@swiftstack.com</a>>; "<a rel="nofollow" href="mailto:contact@swiftstack.com" target="_blank">contact@swiftstack.com</a>" <<a rel="nofollow" href="mailto:contact@swiftstack.com" target="_blank">contact@swiftstack.com</a>>; anita goel
<<a rel="nofollow" href="mailto:goel.anita@gmail.com" target="_blank">goel.anita@gmail.com</a>> <br> <b><span style="font-weight:bold">Sent:</span></b> Tuesday, 27 August 2013 9:40 AM<br> <b><span style="font-weight:bold">Subject:</span></b> Re: Fw: problem in setting up Tempauth authentication & authorization with Swift<br>
</font> </div> <div><br><div><div dir="ltr"><div><div><div><div><div>Hello,<br><br></div>Did Edward's suggestion of using port 8080 help at all? The error seems to indicate a network setting issue. You may wish to double check the settings and configuration.<br>
<br></div><div>Given your interest in Swift I would also recommend locating a nearby OpenStack group or attending an event such as <a rel="nofollow" href="http://openstackindia.wordpress.com/2013/08/14/openstack-india-day-2013-announced/" target="_blank">http://openstackindia.wordpress.com/2013/08/14/openstack-india-day-2013-announced/</a> <br>
</div><div><br><br></div>Thank you,<br></div>Amanda<br><br></div>SwiftStack Inc.<br></div><a rel="nofollow" href="http://swiftstack.com/" target="_blank">swiftstack.com</a><br><div><div><div><div><div><br><br><div>
On Mon, Aug 26, 2013 at 8:55 PM, pragya jain <span dir="ltr"><<a rel="nofollow" href="mailto:prag_2648@yahoo.co.in" target="_blank">prag_2648@yahoo.co.in</a>></span> wrote:<br>
<blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div style="font-size:12pt;font-family:bookman old style,new york,times,serif"><div><span>hello sir!</span></div><div>
<div style="font-style:normal;font-size:16px;background-color:transparent;font-family:bookman old style,new york,times,serif">
<br><span></span></div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:bookman old style,new york,times,serif"><span>Please help me in setting up Tempauth authentication & authorization with Swift.</span></div>
<div style="font-style:normal;font-size:16px;background-color:transparent;font-family:bookman old style,new york,times,serif"><span>same error is continued.</span></div></div><div><br><blockquote style="border-left:2px solid rgb(16,16,255);margin-left:5px;margin-top:5px;padding-left:5px">
<div style="font-family:bookman old style,new york,times,serif;font-size:12pt"> <div style="font-family:times new roman,new york,times,serif;font-size:12pt"> <div dir="ltr"> ----- Forwarded Message -----<br> <font face="Arial"><div>
<div>
<b><span style="font-weight:bold">From:</span></b> pragya jain <<a rel="nofollow" href="mailto:prag_2648@yahoo.co.in" target="_blank">prag_2648@yahoo.co.in</a>><br> <b><span style="font-weight:bold">To:</span></b> "<a rel="nofollow" href="mailto:joe@swiftstack.com" target="_blank">joe@swiftstack.com</a>" <<a rel="nofollow" href="mailto:joe@swiftstack.com" target="_blank">joe@swiftstack.com</a>>; "<a rel="nofollow" href="mailto:clay.gerrard@gmail.com" target="_blank">clay.gerrard@gmail.com</a>" <<a rel="nofollow" href="mailto:clay.gerrard@gmail.com" target="_blank">clay.gerrard@gmail.com</a>>; "<a rel="nofollow" href="mailto:contact@swiftstack.com" target="_blank">contact@swiftstack.com</a>" <<a rel="nofollow" href="mailto:contact@swiftstack.com" target="_blank">contact@swiftstack.com</a>>; "<a rel="nofollow" href="mailto:openstack@ask.openstack.org" target="_blank">openstack@ask.openstack.org</a>" <<a rel="nofollow" href="mailto:openstack@ask.openstack.org" target="_blank">openstack@ask.openstack.org</a>>; "<a rel="nofollow" href="mailto:openstack@lists.openstack.org" target="_blank">openstack@lists.openstack.org</a>" <<a rel="nofollow" href="mailto:openstack@lists.openstack.org" target="_blank">openstack@lists.openstack.org</a>> <br>
<b><span style="font-weight:bold">Cc:</span></b> anita goel <<a rel="nofollow" href="mailto:goel.anita@gmail.com" target="_blank">goel.anita@gmail.com</a>> <br> </div></div><div><div><div><b><span style="font-weight:bold">Sent:</span></b> Monday, 26 August 2013 12:06 PM<br>
</div><div><div><b><span style="font-weight:bold">Subject:</span></b> problem in setting up Tempauth authentication & authorization
with Swift<br> </div></div></div></div></font> </div><div><div><div><div> <div><br><div><div><div style="font-size:12pt;font-family:bookman old style,new york,times,serif"><div>hello,<br><br>I have to configure proxy server.<br>
For this, <br>
</div><div><span></span>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</div><div><br></div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:bookman old style,new york,times,serif">for this, I use the following commands:</div>root@arun-Aspire-5742:~# vi /etc/swift/swift.conf<br>
<br>make following changes (highlighted) in the file:<br>swift_hash_path_suffix =<span style="background-color:rgb(255,0,0)">pragya</span> <br>swift_hash_path_prefix =<span style="background-color:rgb(255,0,0)">jain </span><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 =<span style="background-color:rgb(255,0,0)">true</span> <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>
<span style="background-color:rgb(255,0,0)">user_prag2648_pragya = pj2648.admin.reseller_admin</span><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' <a rel="nofollow" href="http://localhost/auth/v1.0/" target="_blank">http://localhost/auth/v1.0/</a><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<br></div></div></div><br><br></div> </div></div></div></div></div> </div> </blockquote></div> </div></div></blockquote></div><br></div></div></div>
</div></div>
</div></div><br><br></div> </div> </div> </blockquote></div> </div></div><br>_______________________________________________<br>
Mailing list: <a rel="nofollow" href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a><br>
Post to : <a rel="nofollow" href="mailto:openstack@lists.openstack.org" target="_blank">openstack@lists.openstack.org</a><br>
Unsubscribe : <a rel="nofollow" href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a><br>
<br></blockquote></div><br></div></div><br><br></div> </div></div></div> </div> </blockquote></div> </div></div></blockquote></div><br></div></div>