<html><body><div style="color:#000; background-color:#fff; font-family:bookman old style, new york, times, serif;font-size:12pt">root@arun-Aspire-5742:~# netstat -antulp | grep 8080 <br>tcp 0 0 0.0.0.0:8080 0.0.0.0:* LISTEN 2421/python <br><br>user = swift<br><div><span></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" size="2"> <b><span style="font-weight:bold;">From:</span></b> Kuo
Hugo <tonytkdk@gmail.com><br> <b><span style="font-weight: bold;">To:</span></b> pragya jain <prag_2648@yahoo.co.in> <br><b><span style="font-weight: bold;">Cc:</span></b> "openstack@lists.openstack.org" <openstack@lists.openstack.org> <br> <b><span style="font-weight: bold;">Sent:</span></b> Thursday, 29 August 2013 2:47 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 class="y_msg_container"><br><div id="yiv6874109418"><div dir="ltr">$> netstat -antulp | grep 8080 <div><br></div><div>1) is 8080 port been used ?</div><div>2) What's the value of *user* parameter in proxy-server.conf <a rel="nofollow" target="_blank" href="https://github.com/openstack/swift/blob/master/etc/proxy-server.conf-sample#L7">https://github.com/openstack/swift/blob/master/etc/proxy-server.conf-sample#L7</a></div>
<div><br></div><div><br></div></div><div class="yiv6874109418gmail_extra"><br clear="all"><div><div dir="ltr"><div>+Hugo Kuo+</div><div><a rel="nofollow" ymailto="mailto:hugo@swiftstack.com" target="_blank" href="mailto:hugo@swiftstack.com">hugo@swiftstack.com</a><br></div><div><a rel="nofollow" ymailto="mailto:tonytkdk@gmail.com" target="_blank" href="mailto:tonytkdk@gmail.com">tonytkdk@gmail.com<br>
</a></div><div>+886 935004793<br></div></div></div>
<br><br><div class="yiv6874109418gmail_quote">2013/8/29 pragya jain <span dir="ltr"><<a rel="nofollow" ymailto="mailto:prag_2648@yahoo.co.in" target="_blank" href="mailto:prag_2648@yahoo.co.in">prag_2648@yahoo.co.in</a>></span><br><blockquote class="yiv6874109418gmail_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>I run the command:<br><br>root@arun-Aspire-5742:~# find / -name swift-proxy-server<br>/opt/swift/build/scripts-2.7/swift-proxy-server<br>
/opt/swift/bin/swift-proxy-server<br>/usr/local/bin/swift-proxy-server<br>/usr/local/lib/python2.7/dist-packages/swift-1.9.2-py2.7.egg/EGG-INFO/scripts/swift-proxy-server<br><br>root@arun-Aspire-5742:~# /usr/bin/python /usr/local/bin/swift-proxy-server /etc/swift/proxy-server.conf<br>
Traceback (most recent call last):<br> File "/usr/local/bin/swift-proxy-server", line 5, in <module><br> pkg_resources.run_script('swift==1.9.2', 'swift-proxy-server')<br> File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 499, in run_script<br>
self.require(requires)[0].run_script(script_name, ns)<br> File
"/usr/lib/python2.7/dist-packages/pkg_resources.py", line 1235, in run_script<br> execfile(script_filename, namespace, namespace)<br> File "/usr/local/lib/python2.7/dist-packages/swift-1.9.2-py2.7.egg/EGG-INFO/scripts/swift-proxy-server", line 22, in <module><br>
run_wsgi(conf_file, 'proxy-server', default_port=8080, **options)<br> File "/usr/local/lib/python2.7/dist-packages/swift-1.9.2-py2.7.egg/swift/common/wsgi.py", line 251, in run_wsgi<br> sock = get_socket(conf, default_port=kwargs.get('default_port', 8080))<br>
File "/usr/local/lib/python2.7/dist-packages/swift-1.9.2-py2.7.egg/swift/common/wsgi.py", line 168, in get_socket<br> bind_addr[0], bind_addr[1], bind_timeout))<br>Exception: Could not bind to <a rel="nofollow" target="_blank" href="http://0.0.0.0:8080/">0.0.0.0:8080</a> after trying for 30 seconds<br>
<br><div><span></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"><div class="yiv6874109418im"> <b><span style="font-weight:bold;">From:</span></b> Kuo Hugo <<a rel="nofollow" ymailto="mailto:tonytkdk@gmail.com" target="_blank" href="mailto:tonytkdk@gmail.com">tonytkdk@gmail.com</a>><br>
<b><span style="font-weight:bold;">To:</span></b> pragya jain <<a rel="nofollow" ymailto="mailto:prag_2648@yahoo.co.in" target="_blank" href="mailto:prag_2648@yahoo.co.in">prag_2648@yahoo.co.in</a>> <br><b><span style="font-weight:bold;">Cc:</span></b> "<a rel="nofollow" ymailto="mailto:openstack@lists.openstack.org" target="_blank" href="mailto:openstack@lists.openstack.org">openstack@lists.openstack.org</a>" <<a rel="nofollow" ymailto="mailto:openstack@lists.openstack.org" target="_blank" href="mailto:openstack@lists.openstack.org">openstack@lists.openstack.org</a>> <br>
</div><b><span style="font-weight:bold;">Sent:</span></b> Thursday, 29 August 2013 2:19 PM<div><div class="yiv6874109418h5"><br> <b><span style="font-weight:bold;">Subject:</span></b> Re: [Openstack] Fw: problem in setting up Tempauth authentication & authorization with Swift<br>
</div></div></font> </div><div><div class="yiv6874109418h5"> <div><br><div><div dir="ltr">find out the swift-proxy-server binary in
your OS. (The path in example just an assumption) <div><br></div><div>$> find / -name swift-proxy-server</div><div><br></div><div><br></div></div><div>
<br clear="all"><div><div dir="ltr"><div>+Hugo Kuo+</div><div><a rel="nofollow" ymailto="mailto:hugo@swiftstack.com" target="_blank" href="mailto:hugo@swiftstack.com">hugo@swiftstack.com</a><br></div><div><a rel="nofollow" ymailto="mailto:tonytkdk@gmail.com" target="_blank" href="mailto:tonytkdk@gmail.com">tonytkdk@gmail.com<br>
</a></div><div><a href="" rel="nofollow">+886 935004793</a><br></div></div></div>
<br><br><div>2013/8/29 pragya jain <span dir="ltr"><<a rel="nofollow" ymailto="mailto:prag_2648@yahoo.co.in" target="_blank" href="mailto:prag_2648@yahoo.co.in">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;"><div><span>hello sir</span></div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:bookman old style, new york, times, serif;">
<span><br></span></div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:bookman old style, new york, times, serif;"><span>Thanks for the help</span></div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:bookman old style, new york, times, serif;">
<span><br></span></div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:bookman old style, new york, times, serif;"><span>root@arun-Aspire-5742:~# /usr/bin/python /usr/bin/swift-proxy-server
/etc/swift/proxy-server.conf<br>/usr/bin/python: can't open file '/usr/bin/swift-proxy-server': [Errno 2] No such file or directory<br></span></div><div><br></div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:bookman old style, new york, times, serif;">
this is the result of the command.</div><div><br></div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:bookman old style, new york, times, serif;">please help in this regard.</div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:bookman old style, new york, times, serif;">
<br></div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:bookman old style, new york, times, serif;">-----</div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:bookman old style, new york, times, serif;">
Pragya Jain<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"><div> <b><span style="font-weight:bold;">From:</span></b> Kuo Hugo <<a rel="nofollow" ymailto="mailto:tonytkdk@gmail.com" target="_blank" href="mailto:tonytkdk@gmail.com">tonytkdk@gmail.com</a>><br> <b><span style="font-weight:bold;">To:</span></b> pragya jain <<a rel="nofollow" ymailto="mailto:prag_2648@yahoo.co.in" target="_blank" href="mailto:prag_2648@yahoo.co.in">prag_2648@yahoo.co.in</a>> <br>
</div><b><span style="font-weight:bold;">Cc:</span></b> "<a rel="nofollow" ymailto="mailto:openstack@lists.openstack.org" target="_blank" href="mailto:openstack@lists.openstack.org">openstack@lists.openstack.org</a>" <<a rel="nofollow" ymailto="mailto:openstack@lists.openstack.org" target="_blank" href="mailto:openstack@lists.openstack.org">openstack@lists.openstack.org</a>> <br>
<b><span style="font-weight:bold;">Sent:</span></b> Thursday, 29 August 2013 1:20 PM<div><div><br> <b><span style="font-weight:bold;">Subject:</span></b> Re: [Openstack] Fw: problem in setting up Tempauth
authentication & authorization with Swift<br> </div></div></font> </div><div><div> <div><br><div><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><br clear="all"><div><div dir="ltr"><div>+Hugo Kuo+</div>
<div><a rel="nofollow" ymailto="mailto:hugo@swiftstack.com" target="_blank" href="mailto:hugo@swiftstack.com">hugo@swiftstack.com</a><br></div><div><a rel="nofollow" ymailto="mailto:tonytkdk@gmail.com" target="_blank" href="mailto:tonytkdk@gmail.com">tonytkdk@gmail.com<br></a></div><div><a href="" rel="nofollow">+886 935004793</a><br>
</div></div></div>
<br><br><div>2013/8/29 pragya jain <span dir="ltr"><<a rel="nofollow" ymailto="mailto:prag_2648@yahoo.co.in" target="_blank" href="mailto:prag_2648@yahoo.co.in">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>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><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><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><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" target="_blank" href="http://localhost/auth/v1.0/">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 rel="nofollow" target="_blank" href="http://localhost/auth/v1.0/">http://localhost/auth/v1.0/</a><div><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 rel="nofollow" target="_blank" href="http://127.0.0.1:11211/">127.0.0.1:11211</a> 0.0.0.0:* LISTEN 931/memcached <br>tcp 0 0 <a rel="nofollow" target="_blank" href="http://127.0.0.1:53/">127.0.0.1:53</a> 0.0.0.0:* LISTEN 2124/dnsmasq <br>
tcp 0 0 <a rel="nofollow" target="_blank" href="http://127.0.0.1:631/">127.0.0.1:631</a> 0.0.0.0:* LISTEN 623/cupsd <br>tcp 0 0
<a rel="nofollow" target="_blank" href="http://115.184.7.223:51521/">115.184.7.223:51521</a> <a rel="nofollow" target="_blank" href="http://74.125.236.132/">74.125.236.132:80</a> TIME_WAIT - <br>
tcp 1 0 <a rel="nofollow" target="_blank" href="http://115.184.7.223:46280/">115.184.7.223:46280</a> <a rel="nofollow" target="_blank" href="http://91.189.89.144/">91.189.89.144:80</a> CLOSE_WAIT 1663/ubuntu-geoip-p<br>
tcp 0 0 <a rel="nofollow" target="_blank" href="http://115.184.7.223:60563/">115.184.7.223:60563</a> <a href="" rel="nofollow">173.194.38.147</a>:80 TIME_WAIT - <br>
tcp 0 0 <a rel="nofollow" target="_blank" href="http://115.184.7.223:43256/">115.184.7.223:43256</a> <a rel="nofollow" target="_blank" href="http://124.124.201.179/">124.124.201.179:80</a> TIME_WAIT
- <br>tcp 0 0 <a rel="nofollow" target="_blank" href="http://115.184.7.223:41791/">115.184.7.223:41791</a> <a rel="nofollow" target="_blank" href="http://124.124.201.169/">124.124.201.169:80</a> TIME_WAIT - <br>
tcp 0 0 <a rel="nofollow" target="_blank" href="http://115.184.7.223:36669/">115.184.7.223:36669</a> <a rel="nofollow" target="_blank" href="http://124.124.252.9/">124.124.252.9:80</a> TIME_WAIT - <br>
tcp 0 0 <a rel="nofollow" target="_blank" href="http://115.184.7.223:51747/">115.184.7.223:51747</a> <a href="" rel="nofollow">173.194.38.184</a>:80 TIME_WAIT -
<br>tcp 0 0 <a rel="nofollow" target="_blank" href="http://115.184.7.223:54229/">115.184.7.223:54229</a> <a rel="nofollow" target="_blank" href="http://74.125.236.44:443/">74.125.236.44:443</a> TIME_WAIT - <br>
tcp 0 0 <a rel="nofollow" target="_blank" href="http://115.184.7.223:36185/">115.184.7.223:36185</a> <a rel="nofollow" target="_blank" href="http://173.194.36.26/">173.194.36.26:80</a> TIME_WAIT - <br>
tcp 0 0 <a rel="nofollow" target="_blank" href="http://115.184.7.223:38854/">115.184.7.223:38854</a> <a rel="nofollow" target="_blank" href="http://74.125.236.109/">74.125.236.109:80</a> TIME_WAIT - <br>
tcp6 0 0
::1:631 :::* LISTEN 623/cupsd <br>udp 0 0 <a rel="nofollow" target="_blank" href="http://0.0.0.0:5353/">0.0.0.0:5353</a> 0.0.0.0:* 619/avahi-daemon: r<br>
udp 0 0 <a rel="nofollow" target="_blank" href="http://0.0.0.0:53489/">0.0.0.0:53489</a>
0.0.0.0:* 619/avahi-daemon: r<br>udp 0 0 <a rel="nofollow" target="_blank" href="http://127.0.0.1:11211/">127.0.0.1:11211</a> 0.0.0.0:* 931/memcached <br>
udp 0 0 <a rel="nofollow" target="_blank" href="http://127.0.0.1:53/">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 rel="nofollow" ymailto="mailto:tonytkdk@gmail.com" target="_blank" href="mailto:tonytkdk@gmail.com">tonytkdk@gmail.com</a>><br>
<b><span style="font-weight:bold;">To:</span></b> pragya jain <<a rel="nofollow" ymailto="mailto:prag_2648@yahoo.co.in" target="_blank" href="mailto:prag_2648@yahoo.co.in">prag_2648@yahoo.co.in</a>> <br><b><span style="font-weight:bold;">Cc:</span></b> Amanda Plimpton <<a rel="nofollow" ymailto="mailto:amanda@swiftstack.com" target="_blank" href="mailto:amanda@swiftstack.com">amanda@swiftstack.com</a>>; "<a rel="nofollow" ymailto="mailto:openstack@lists.openstack.org" target="_blank" href="mailto:openstack@lists.openstack.org">openstack@lists.openstack.org</a>" <<a rel="nofollow" ymailto="mailto:openstack@lists.openstack.org" target="_blank" href="mailto:openstack@lists.openstack.org">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> <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" target="_blank" href="https://github.com/openstack/swift/blob/master/etc/proxy-server.conf-sample">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" ymailto="mailto:hugo@swiftstack.com" target="_blank" href="mailto:hugo@swiftstack.com">hugo@swiftstack.com</a><br>
</div><div><a rel="nofollow" ymailto="mailto:tonytkdk@gmail.com" target="_blank" href="mailto:tonytkdk@gmail.com">tonytkdk@gmail.com<br></a></div><div><a href="" rel="nofollow">+886 935004793</a><br></div></div>
</div>
<br><br><div>2013/8/29 pragya jain <span dir="ltr"><<a rel="nofollow" ymailto="mailto:prag_2648@yahoo.co.in" target="_blank" href="mailto:prag_2648@yahoo.co.in">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" ymailto="mailto:amanda@swiftstack.com" target="_blank" href="mailto:amanda@swiftstack.com">amanda@swiftstack.com</a>><br>
<b><span style="font-weight:bold;">To:</span></b> pragya jain <<a rel="nofollow" ymailto="mailto:prag_2648@yahoo.co.in" target="_blank" href="mailto:prag_2648@yahoo.co.in">prag_2648@yahoo.co.in</a>> <br><b><span style="font-weight:bold;">Cc:</span></b> "<a rel="nofollow" ymailto="mailto:joe@swiftstack.com" target="_blank" href="mailto:joe@swiftstack.com">joe@swiftstack.com</a>" <<a rel="nofollow" ymailto="mailto:joe@swiftstack.com" target="_blank" href="mailto:joe@swiftstack.com">joe@swiftstack.com</a>>; "<a rel="nofollow" ymailto="mailto:contact@swiftstack.com" target="_blank" href="mailto:contact@swiftstack.com">contact@swiftstack.com</a>" <<a rel="nofollow" ymailto="mailto:contact@swiftstack.com" target="_blank" href="mailto:contact@swiftstack.com">contact@swiftstack.com</a>>; anita goel
<<a rel="nofollow" ymailto="mailto:goel.anita@gmail.com" target="_blank" href="mailto:goel.anita@gmail.com">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" target="_blank" href="http://openstackindia.wordpress.com/2013/08/14/openstack-india-day-2013-announced/">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" target="_blank" href="http://swiftstack.com/">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" ymailto="mailto:prag_2648@yahoo.co.in" target="_blank" href="mailto:prag_2648@yahoo.co.in">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" ymailto="mailto:prag_2648@yahoo.co.in" target="_blank" href="mailto:prag_2648@yahoo.co.in">prag_2648@yahoo.co.in</a>><br> <b><span style="font-weight:bold;">To:</span></b> "<a rel="nofollow" ymailto="mailto:joe@swiftstack.com" target="_blank" href="mailto:joe@swiftstack.com">joe@swiftstack.com</a>" <<a rel="nofollow" ymailto="mailto:joe@swiftstack.com" target="_blank" href="mailto:joe@swiftstack.com">joe@swiftstack.com</a>>; "<a rel="nofollow" ymailto="mailto:clay.gerrard@gmail.com" target="_blank" href="mailto:clay.gerrard@gmail.com">clay.gerrard@gmail.com</a>" <<a rel="nofollow" ymailto="mailto:clay.gerrard@gmail.com" target="_blank" href="mailto:clay.gerrard@gmail.com">clay.gerrard@gmail.com</a>>; "<a rel="nofollow" ymailto="mailto:contact@swiftstack.com" target="_blank" href="mailto:contact@swiftstack.com">contact@swiftstack.com</a>" <<a
rel="nofollow" ymailto="mailto:contact@swiftstack.com" target="_blank" href="mailto:contact@swiftstack.com">contact@swiftstack.com</a>>; "<a rel="nofollow" ymailto="mailto:openstack@ask.openstack.org" target="_blank" href="mailto:openstack@ask.openstack.org">openstack@ask.openstack.org</a>" <<a rel="nofollow" ymailto="mailto:openstack@ask.openstack.org" target="_blank" href="mailto:openstack@ask.openstack.org">openstack@ask.openstack.org</a>>; "<a rel="nofollow" ymailto="mailto:openstack@lists.openstack.org" target="_blank" href="mailto:openstack@lists.openstack.org">openstack@lists.openstack.org</a>" <<a rel="nofollow" ymailto="mailto:openstack@lists.openstack.org" target="_blank" href="mailto:openstack@lists.openstack.org">openstack@lists.openstack.org</a>> <br>
<b><span style="font-weight:bold;">Cc:</span></b> anita goel <<a rel="nofollow" ymailto="mailto:goel.anita@gmail.com" target="_blank" href="mailto:goel.anita@gmail.com">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" target="_blank" href="http://localhost/auth/v1.0/">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" target="_blank" href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a><br>
Post to : <a rel="nofollow" ymailto="mailto:openstack@lists.openstack.org" target="_blank" href="mailto:openstack@lists.openstack.org">openstack@lists.openstack.org</a><br>
Unsubscribe : <a rel="nofollow" target="_blank" href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack">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></div><br><br></div> </div></div></div> </div> </blockquote></div> </div>
</div></blockquote></div><br></div></div><br><br></div> </div></div></div> </div> </blockquote></div> </div></div></blockquote></div><br></div></div><br><br></div> </div> </div> </blockquote></div> </div></body></html>