<html><body><div style="color:#000; background-color:#fff; font-family:bookman old style, new york, times, serif;font-size:12pt"><div><span>hello sir,</span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: 'bookman old style', 'new york', times, serif; background-color: transparent; font-style: normal;"><span><br></span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: 'bookman old style', 'new york', times, serif; background-color: transparent; font-style: normal;"><span>I am working on single node.</span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: 'bookman old style', 'new york', times, serif; background-color: transparent; font-style: normal;"><span>Please let me know how to check network topology and ring structure.</span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: 'bookman old style', 'new york', times, serif; background-color: transparent; font-style:
 normal;"><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 size="2" face="Arial"> <b><span style="font-weight:bold;">From:</span></b> Gareth <academicgareth@gmail.com><br> <b><span style="font-weight: bold;">To:</span></b> Kuo Hugo <tonytkdk@gmail.com> <br><b><span style="font-weight: bold;">Cc:</span></b> pragya jain <prag_2648@yahoo.co.in>; "openstack@lists.openstack.org" <openstack@lists.openstack.org> <br> <b><span style="font-weight: bold;">Sent:</span></b> Friday, 30 August 2013 8:11 AM<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="yiv8508675732"><div dir="ltr">Pragya<div><br></div><div>The v1.0 auth uses tempauth for swift, like what you config in proxy-server.conf. All account data is read from that file, so you couldn't add/delete account in tempauth without modifying config file and restart swift.</div>
<div><br></div><div>BTW, your curl link here "<span style="font-size:16px;">curl -v -H 'X-Storage-Token:AUTH_</span><span style="font-size:16px;">tk3867b7599d5346559ee0baaa09e0</span><span style="font-size:16px;">f40d' </span><a rel="nofollow" target="_blank"  href="http://localhost:8080/v1/AUTH_prag2648/" style="font-size:16px;">http://localhost:8080/v1/AUTH_prag2648/</a>" actually is a GET request, which means getting account data. If you config everything correctly, it must have valid response. And you logs are a better way to find what happened in this request (set log level to DEBUG, and you will get more details).</div>
</div><div class="yiv8508675732gmail_extra"><br><br><div class="yiv8508675732gmail_quote">On Fri, Aug 30, 2013 at 7:47 AM, Kuo Hugo <span dir="ltr"><<a rel="nofollow" ymailto="mailto:tonytkdk@gmail.com" target="_blank" href="mailto:tonytkdk@gmail.com">tonytkdk@gmail.com</a>></span> wrote:<br>
<blockquote class="yiv8508675732gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div dir="ltr">Hi Pragya, <div><br></div><div>I need more information. </div><div><br></div><div>1) Please draw a network topology of your environment</div>
<div>2) How many nodes do you have?  </div><div>3) What's the ring looks like ?</div><span class="yiv8508675732HOEnZb"><font color="#888888">
<div><br></div><div><br></div></font></span><div class="yiv8508675732gmail_extra"><span class="yiv8508675732HOEnZb"><font color="#888888"><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></font></span><div><div class="yiv8508675732h5">
<br><br><div class="yiv8508675732gmail_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="yiv8508675732gmail_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;"><div style="font-size:12pt;"><span>hello sir,</span></div><div style="font-style:normal;font-size:16px;background-color:transparent;">

<span><br></span></div><div>connection is established successfully. But, when I try to create an account, I face the problem.</div><div><div><br></div><div style="font-style:normal;font-size:16px;background-color:transparent;">

root@arun-Aspire-5742:~# sudo swift-init account start</div><div>Starting account-server...(/etc/swift/account-server.conf)</div><div>root@arun-Aspire-5742:~# sudo swift-init proxy start</div><div>Starting
 proxy-server...(/etc/swift/proxy-server.conf)</div></div><div>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:8080/auth/v1.0/">http://localhost:8080/auth/v1.0/</a></div>

<div>* About to connect() to localhost port 8080 (#0)</div><div>*   Trying 127.0.0.1... connected</div><div>> GET /auth/v1.0/ HTTP/1.1</div><div>> User-Agent: curl/7.22.0 (i686-pc-linux-gnu) libcurl/7.22.0 OpenSSL/1.0.1 zlib/<a rel="nofollow" target="_blank"  href="http://1.2.3.4/">1.2.3.4</a> libidn/1.23 librtmp/2.3</div>

<div>> Host: localhost:8080</div><div>> Accept: */*</div><div>> X-Auth-User:prag2648:pragya</div><div>> X-Auth-Key:pj2648</div><div>> </div><div>< HTTP/1.1 200 OK</div><div>< X-Storage-Url: <a rel="nofollow" target="_blank"  href="http://localhost:8080/v1/AUTH_prag2648">http://localhost:8080/v1/AUTH_prag2648</a></div>

<div>< X-Auth-Token: AUTH_tk3867b7599d5346559ee0baaa09e0f40d</div><div>< Content-Type: text/html; charset=UTF-8</div><div>< X-Storage-Token: AUTH_tk3867b7599d5346559ee0baaa09e0f40d</div><div>< Content-Length: 0</div>

<div>< X-Trans-Id:
 txe2ab76a7617e40399f456-00521f3d16</div><div>< Date: Thu, 29 Aug 2013 12:22:46 GMT</div><div>< </div><div>* Connection #0 to host localhost left intact</div><div>* Closing connection #0</div><div>root@arun-Aspire-5742:~# python</div>

<div>Python 2.7.3 (default, Apr 10 2013, 05:46:21) </div><div>[GCC 4.6.3] on linux2</div><div>Type "help", "copyright", "credits" or "license" for more information.</div><div><div>
>>> import swift.common.memcached as memcached</div>
<div>>>> memcache = memcached.MemcacheRing(['127.0.0.1:11211'])</div><div>>>> print memcache.get('AUTH_/user/prag2648:pragya')</div><div>AUTH_tk3867b7599d5346559ee0baaa09e0f40d</div><div>

>>> print memcache.get('AUTH_/token/AUTH_tk3867b7599d5346559ee0baaa09e0f40d')</div><div>[1377865366.826027, 'prag2648,prag2648:pragya,.reseller_admin,AUTH_prag2648']</div><div>>>> </div>
<div>
<div>root@arun-Aspire-5742:~# curl -v -H
 'X-Storage-Token:AUTH_tk3867b7599d5346559ee0baaa09e0f40d' <a rel="nofollow" target="_blank"  href="http://127.0.0.1/v1/Auth_prag2648/">http://127.0.0.1/v1/Auth_prag2648/</a></div><div>* About to connect() to 127.0.0.1 port 80 (#0)</div>

<div><div>*   Trying 127.0.0.1... Connection refused</div><div>* couldn't connect to host</div><div>* Closing connection #0</div><div>curl: (7) couldn't connect to host</div></div><div><div>root@arun-Aspire-5742:~# curl -v -H 'X-Storage-Token:AUTH_tk3867b7599d5346559ee0baaa09e0f40d' <a rel="nofollow" target="_blank"  href="http://localhost:8080/v1/AUTH_prag2648/">http://localhost:8080/v1/AUTH_prag2648/</a></div>

<div>* About to connect() to localhost port 8080 (#0)</div><div>*   Trying 127.0.0.1... connected</div><div>> GET /v1/AUTH_prag2648/ HTTP/1.1</div><div>> User-Agent: curl/7.22.0 (i686-pc-linux-gnu) libcurl/7.22.0 OpenSSL/1.0.1 zlib/</div>

</div></div></div><div><div>1.2.3.4 libidn/1.23 librtmp/2.3</div><div>> Host: localhost:8080</div><div>> Accept: */*</div><div>> X-Storage-Token:AUTH_tk3867b7599d5346559ee0baaa09e0f40d</div><div>> </div><div>
< HTTP/1.1
 503 Internal Server Error</div><div>< Content-Length: 118</div><div>< Content-Type: text/html; charset=UTF-8</div><div>< X-Trans-Id: txd6fd9eead36e4b74b0869-00521f3efe</div><div>< Date: Thu, 29 Aug 2013 12:30:55 GMT</div>

<div>< </div><div>* Connection #0 to host localhost left intact</div><div>* Closing connection #0</div><div><html><h1>Service Unavailable</h1><p>The server is currently unavailable. Please try again at a later time.</p></html>root@arun-Aspire-5742:~# </div>

<div><div><br></div><div>Please help me in this regard.</div><div><br></div><div>---</div><div><br></div></div><div>Pragya Jain</div></div><div style="font-size:12pt;">

<blockquote style="border-left:2px solid rgb(16,16,255);margin-left:5px;margin-top:5px;padding-left:5px;">  <div style="font-size:12pt;">
 <div style="font-size:12pt;"> <div dir="ltr"> <hr size="1">  <font face="Arial"> <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> 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;">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><div> <b><span style="font-weight:bold;">Sent:</span></b> Thursday, 29 August 2013 4: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>

 </div></div></font> </div><div><div> <div><br><div><div><div style="font-size:12pt;">Thanks Kuo very much for this
 help.<br>connection is successfully established.<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-size:12pt;">

 <div style="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> "<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 3:46 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><br><div>

<div dir="ltr"><font color="#ff9900">curl -v -H 'X-Auth-User:admin:admin' -H 'X-Auth-Key:admin' <a rel="nofollow" target="_blank"  href="http://localhost:8080/auth/v1.0/">http://localhost:8080/auth/v1.0/</a></font><br>

<br><br>+Hugo Kuo+<br>
<a rel="nofollow" ymailto="mailto:hugo@swiftstack.com" target="_blank" href="mailto:hugo@swiftstack.com">hugo@swiftstack.com</a><br><a rel="nofollow" ymailto="mailto:tonytkdk@gmail.com" target="_blank" href="mailto:tonytkdk@gmail.com">tonytkdk@gmail.com</a><br><a rel="nofollow" href="">+886 935004793</a><br>

<br><br>2013/8/29 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>
><br>> root@arun-Aspire-5742:~# netstat -antulp | grep 8080<br>> tcp        0      0 <a rel="nofollow" target="_blank"  href="http://0.0.0.0:8080/">0.0.0.0:8080</a>            0.0.0.0:*               LISTEN      2421/python   <br>

><br>> user = swift<br>
><br>> ________________________________<br>> From: Kuo Hugo <<a rel="nofollow" ymailto="mailto:tonytkdk@gmail.com" target="_blank" href="mailto:tonytkdk@gmail.com">tonytkdk@gmail.com</a>><br>> To: 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>


> Cc: "<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>

> Sent: Thursday, 29 August 2013 2:47 PM<br>
><br>> Subject: Re: [Openstack] Fw: problem in setting up Tempauth authentication & authorization with Swift<br>><br>> <span></span>gt; netstat -antulp | grep 8080 <br>><br>> 1) is 8080 port been used ?<br>


> 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><br>


><br>><br>><br>> +Hugo Kuo+<br>> <a rel="nofollow" ymailto="mailto:hugo@swiftstack.com" target="_blank" href="mailto:hugo@swiftstack.com">hugo@swiftstack.com</a><br>> <a rel="nofollow" ymailto="mailto:tonytkdk@gmail.com" target="_blank" href="mailto:tonytkdk@gmail.com">tonytkdk@gmail.com</a><br>

> <a rel="nofollow" href="">+886 935004793</a><br>><br>><br>> 2013/8/29 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>


><br>> 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>><br>> ________________________________<br>> From: Kuo Hugo <<a rel="nofollow" ymailto="mailto:tonytkdk@gmail.com" target="_blank" href="mailto:tonytkdk@gmail.com">tonytkdk@gmail.com</a>><br>> To: 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>


> Cc: "<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>

> Sent: Thursday, 29 August 2013 2:19 PM<br>
><br>> Subject: Re: [Openstack] Fw: problem in setting up Tempauth authentication & authorization with Swift<br>><br>> find out the swift-proxy-server binary in your OS.  (The path in example just an assumption) <br>


><br>> <span></span>gt; find / -name swift-proxy-server<br>><br>><br>><br>> +Hugo Kuo+<br>> <a rel="nofollow" ymailto="mailto:hugo@swiftstack.com" target="_blank" href="mailto:hugo@swiftstack.com">hugo@swiftstack.com</a><br>> <a rel="nofollow" ymailto="mailto:tonytkdk@gmail.com" target="_blank" href="mailto:tonytkdk@gmail.com">tonytkdk@gmail.com</a><br>


> <a rel="nofollow" href="">+886 935004793</a><br>><br>><br>> 2013/8/29 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>

><br>> hello sir<br>><br>> Thanks for the help<br>><br>> 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>><br>> this is the result of the command.<br>><br>> please help in this regard.<br>><br>


> -----<br>> Pragya Jain<br>><br>> ________________________________<br>> From: Kuo Hugo <<a rel="nofollow" ymailto="mailto:tonytkdk@gmail.com" target="_blank" href="mailto:tonytkdk@gmail.com">tonytkdk@gmail.com</a>><br>> To: 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>


> Cc: "<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>

> Sent: Thursday, 29 August 2013 1:20 PM<br>
><br>> Subject: Re: [Openstack] Fw: problem in setting up Tempauth authentication & authorization with Swift<br>><br>> Obviously, There's no proxy server running on your node. <br>><br>> 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>> <span></span>gt; /usr/bin/python /usr/bin/swift-proxy-server /etc/swift/proxy-server.conf<br>><br>> What's the result ?<br>


><br>> +Hugo Kuo+<br>> <a rel="nofollow" ymailto="mailto:hugo@swiftstack.com" target="_blank" href="mailto:hugo@swiftstack.com">hugo@swiftstack.com</a><br>> <a rel="nofollow" ymailto="mailto:tonytkdk@gmail.com" target="_blank" href="mailto:tonytkdk@gmail.com">tonytkdk@gmail.com</a><br>

> <a rel="nofollow" href="">+886 935004793</a><br>><br>><br>> 2013/8/29 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>


><br>> 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:<br>><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 = pj2648 .admin .reseller_admin<br>><br>> and then<br>><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 start<br>><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>> (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><br>


><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>> (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 rel="nofollow" target="_blank"  href="http://173.194.38.147/">173.194.38.147:80</a>       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 rel="nofollow" target="_blank"  href="http://173.194.38.184/">173.194.38.184:80</a>       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>><br>><br>> ________________________________<br>> From: Kuo Hugo <<a rel="nofollow" ymailto="mailto:tonytkdk@gmail.com" target="_blank" href="mailto:tonytkdk@gmail.com">tonytkdk@gmail.com</a>><br>


> To: 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>> Cc: 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>


> Sent: Wednesday, 28 August 2013 9:59 PM<br>> Subject: Re: [Openstack] Fw: problem in setting up Tempauth authentication & authorization with Swift<br>><br>> Hi <br>><br>> 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 ? <br>


> 2) Verify the port number of proxy by <br>><br>> <span></span>gt; ps aux | grep proxy <br>> <span></span>gt; netstat -antulp <br>><br>><br>> 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><br>


><br>><br>><br>><br>><br>> +Hugo Kuo+<br>> <a rel="nofollow" ymailto="mailto:hugo@swiftstack.com" target="_blank" href="mailto:hugo@swiftstack.com">hugo@swiftstack.com</a><br>> <a rel="nofollow" ymailto="mailto:tonytkdk@gmail.com" target="_blank" href="mailto:tonytkdk@gmail.com">tonytkdk@gmail.com</a><br>

> <a rel="nofollow" href="">+886 935004793</a><br>><br>
><br>> 2013/8/29 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>><br>> hello sir,<br>><br>> Please help me in knowing how to use 8080 port<br>

><br>><br>> ________________________________<br>
> From: Amanda Plimpton <<a rel="nofollow" ymailto="mailto:amanda@swiftstack.com" target="_blank" href="mailto:amanda@swiftstack.com">amanda@swiftstack.com</a>><br>> To: 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>

> Cc: "<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>


> Sent: Tuesday, 27 August 2013 9:40 AM<br>> Subject: Re: Fw: problem in setting up Tempauth authentication & authorization with Swift<br>><br>> Hello,<br>><br>> 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>> 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>


><br>><br>> Thank you,<br>> Amanda<br>><br>> SwiftStack Inc.<br>> <a rel="nofollow" target="_blank" href="http://swiftstack.com/">swiftstack.com</a><br>><br>><br>> On Mon, Aug 26, 2013 at 8:55 PM, 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>> wrote:<br>


><br>> hello sir!<br>><br>> Please help me in setting up Tempauth authentication & authorization with Swift.<br>> same error is continued.<br>><br>> ----- Forwarded Message -----<br>> From: 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>


> To: "<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>


> Cc: 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>> Sent: Monday, 26 August 2013 12:06 PM<br>> Subject: problem in setting up Tempauth authentication & authorization with Swift<br>


><br>> hello,<br>><br>> I have to configure proxy server.<br>> For this,<br>> 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<br>


><br>> for this, I use the following commands:<br>> 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' <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>><br>><br>><br>><br>><br>><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>><br>><br>><br>

><br>><br>><br>><br>
><br>><br>><br>><br>><br></div>
</div><br><br></div> </div> </div> </blockquote></div>   </div></div></div><br><br></div> </div></div></div> </div> </blockquote></div>   </div></div></blockquote></div><br></div></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><br clear="all"><div><br></div>-- <br><div dir="ltr"><font color="#444444">Gareth</font><div><font color="#444444"><br></font><div><i><font color="#444444">Cloud Computing, OpenStack, Fitness, Basketball</font></i></div>
<div><i><font color="#666666">OpenStack contributor</font></i></div><div><i><font color="#666666">Company: <a rel="nofollow" target="_blank" href="http://www.ustack.com/">UnitedStack</a></font></i></div><div><i><font color="#999999">My promise: if you find any spelling or grammar mistakes in my email from Mar 1 2013, notify me </font></i></div>
<div><i><font color="#999999">and I'll donate $1 or ¥1 to an open organization you specify.</font></i></div></div></div>
</div></div><br><br></div> </div> </div> </blockquote></div>   </div></body></html>