<html><body><div style="color:#000; background-color:#fff; font-family:bookman old style, new york, times, serif;font-size:12pt"><div>root@arun-Aspire-5742:~# cat /proc/partitions</div><div>major minor  #blocks  name</div><div><br></div><div>   8        0  488386584 sda</div><div>   8        1     102400 sda1</div><div>   8        2  102294528 sda2</div><div>   8        3          1 sda3</div><div>   8        4  180702208 sda4</div><div>   8        5  102398278 sda5</div><div>   8        6  102398278 sda6</div><div>   8        7     487424 sda7</div><div>  11        0    1048575 sr0</div><div>  11
        1      99328 sr1</div><div>root@arun-Aspire-5742:~# sudo mkfs.xfs -L d1 /dev/sdb</div><div><span></span></div><div>mkfs.xfs: cannot open /dev/sdb: No medium found</div><div style="font-family: 'bookman old style', 'new york', times, serif; font-size: 12pt;"><br></div><div style="font-family: 'bookman old style', 'new york', times, serif; font-size: 12pt;">pleases reply.</div><div style="font-family: 'bookman old style', 'new york', times, serif; font-size: 12pt;"><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> Clay Gerrard
 <clay.gerrard@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> Saturday, 7 September 2013 9:50 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="yiv4720614727"><div dir="ltr">ok, so it looks like no device with label d1 exists, so you can't mount it, and the account-server can't find it.<div><br></div><div>Devices get labeled when you put the file system on them (the `mkfs.xfs` command)</div>
<div><br></div><div>I saw in screenshot 10 you had mis-typed the mkfs.xfs command:</div><div><br></div><div>`sudo mkfs.xfs -f -i size=512 -L d3/dev/sdd`</div><div><br></div><div>That should be:</div><div><br></div><div>`sudo mkfs.xfs -f -i size=512 -L d3 /dev/sdd`</div>
<div><br></div><div>notice the space between the label "d3" and the device "/dev/sdd"</div><div><br></div><div>Also, fairly recently people have stopped recommending the larger inode size, so the commands should be:</div>
<div><br></div><div>`sudo mkfs.xfs -L d1 /dev/sdb`</div><div>`sudo mkfs.xfs -L d2 /dev/sdc`<br></div><div>`sudo mkfs.xfs -L d3 /dev/sdd`<br></div><div><br></div><div>and maybe:</div><div><br></div><div>`sudo mkfs.xfs -L d4 /dev/sde`<br>
</div><div><br></div><div>... actually how many devices do you have in the system?  Can I get a paste of the full output of `cat /proc/partitions`?</div><div><br></div></div><div class="yiv4720614727gmail_extra"><br><br><div class="yiv4720614727gmail_quote">
On Fri, Sep 6, 2013 at 9:45 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 class="yiv4720614727gmail_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>hello sir,</div><div><br></div><div style="font-style:normal;font-size:16px;background-color:transparent;">
I did the following job:</div><div style="font-style:normal;font-size:16px;background-color:transparent;"><span style="background-color:transparent;"><br>
</span></div><div style="font-style:normal;font-size:16px;background-color:transparent;"><span style="background-color:transparent;">root@arun-Aspire-5742:~# sudo mount -t xfs -o noatime,nodiratime,logbufs=8 -L d1 /srv/node/d1</span><br>
</div><div>mount: no such partition found</div><div>root@arun-Aspire-5742:~#
 sudo mount -t xfs -o noatime,nodiratime,logbufs=8 -L d1 \srv/node/d1</div><div>mount: no such partition found</div><div>root@arun-Aspire-5742:~# cd /opt/swift/etc</div><div>root@arun-Aspire-5742:/opt/swift/etc# sudo mount -t xfs -o noatime,nodiratime,logbufs=8 -L d1 /srv/node/d1</div>
<div>mount: no such partition found</div><div>root@arun-Aspire-5742:/opt/swift/etc# sudo mount -t xfs -o noatime,nodiratime,logbufs=8 -L d1 \srv/node/d1</div><div>mount: no such partition found</div><div>root@arun-Aspire-5742:/opt/swift/etc# cd ~</div>
<div>root@arun-Aspire-5742:~# mount d1 /srv/node/d1</div><div>mount: special device d1 does not exist</div><div>root@arun-Aspire-5742:~# vi /etc/swift/account-server.conf</div><div>root@arun-Aspire-5742:~# mount d1 /srv/node/d1</div>
<div>mount: special device d1 does not exist</div><div>root@arun-Aspire-5742:~# cd /opt/swift/etc</div><div>root@arun-Aspire-5742:/opt/swift/etc# mount d1 /srv/node/d1</div><div>mount: special
 device d1 does not exist</div><div><span></span></div><div>root@arun-Aspire-5742:/opt/swift/etc# sudo reboot</div><div style="font-size:12pt;"><br></div>
<div>root@arun-Aspire-5742:~# mount</div><div>/dev/sda4 on / type ext4 (rw,errors=remount-ro)</div><div>proc on /proc type proc (rw,noexec,nosuid,nodev)</div><div>sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)</div><div>
none on /sys/fs/fuse/connections type fusectl (rw)</div><div>none on /sys/kernel/debug type debugfs (rw)</div><div>none on /sys/kernel/security type securityfs (rw)</div><div>udev on /dev type devtmpfs (rw,mode=0755)</div>
<div>devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)</div><div>tmpfs on /run type tmpfs (rw,noexec,nosuid,size=10%,mode=0755)</div><div>none on /run/lock type tmpfs (rw,noexec,nosuid,nodev,size=5242880)</div>
<div>none on /run/shm type tmpfs (rw,nosuid,nodev)</div><div>gvfs-fuse-daemon on
 /home/arun/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,user=arun)</div><div><br></div><div>I am attaching some screenshots which tells what I had done earlier when I was preparing and mounting the devices.</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"><div class="yiv4720614727im"> <b><span style="font-weight:bold;">From:</span></b> Clay Gerrard <<a rel="nofollow" ymailto="mailto:clay.gerrard@gmail.com" target="_blank" href="mailto:clay.gerrard@gmail.com">clay.gerrard@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:pangj@laposte.net" target="_blank" href="mailto:pangj@laposte.net">pangj@laposte.net</a>" <<a rel="nofollow" ymailto="mailto:pangj@laposte.net" target="_blank" href="mailto:pangj@laposte.net">pangj@laposte.net</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> </div>
<b><span style="font-weight:bold;">Sent:</span></b> Friday, 6 September 2013 8:58 PM<div><div class="yiv4720614727h5"><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="yiv4720614727h5"> <div><br><div><div dir="ltr"><div style="font-size:16px;">Sep  4 11:14:04 arun-Aspire-5742 proxy-server ERROR Insufficient Storage <a rel="nofollow" target="_blank"  href="http://127.0.0.1:6002/d1">127.0.0.1:6002/d1</a> (txn: txb0d8717ab05c4cf0bdebd-005226c8a4)</div>

<div><br></div><div>The account server on <a rel="nofollow" target="_blank"  href="http://127.0.0.1:6002/d1">127.0.0.1:6002/d1</a> returned 507 indicating it couldn't find a useable file system for the device labeled d1.</div>
<div><br></div><div>The account server has a config option "devices" in the "DEFAULT" section of "/etc/swift/account-server.conf" that will indicate the base mount point for devices (typicailly it's "/srv/node").  That path is prepended to the device name that's sent in the request ("d1" in this case).</div>

<div><br></div><div>So there should be a filesystem (xfs typically) mounted at "/srv/node/d1"</div><div><br></div><div>Try mounting it manually `mount d1 /srv/node/d1` and double check the output from `mount` and your "/etc/fstab"</div>

</div><div><br><br><div>On Thu, Sep 5, 2013 at 9:39 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:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div><div style="font-size:12pt;"><div><div><span>please help me in this regard.</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-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> Clay Gerrard <<a rel="nofollow" ymailto="mailto:clay.gerrard@gmail.com" target="_blank" href="mailto:clay.gerrard@gmail.com">clay.gerrard@gmail.com</a>> <br><div><b><span style="font-weight:bold;">Cc:</span></b> "<a rel="nofollow" ymailto="mailto:pangj@laposte.net" target="_blank" href="mailto:pangj@laposte.net">pangj@laposte.net</a>" <<a rel="nofollow" ymailto="mailto:pangj@laposte.net" target="_blank" href="mailto:pangj@laposte.net">pangj@laposte.net</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>

 </div><b><span style="font-weight:bold;">Sent:</span></b> Thursday, 5 September 2013 10:02 AM<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><div style="font-size:12pt;"><div>root@arun-Aspire-5742:~# grep txb0d8717ab05c4cf0bdebd-005226c8a4 /var/log/syslogSep  4 11:14:04 arun-Aspire-5742 account-server 127.0.0.1 - - [04/Sep/2013:05:44:04 +0000] "GET /d1/19164/AUTH_prag2648" 507 - "txb0d8717ab05c4cf0bdebd-005226c8a4" "GET <a rel="nofollow" target="_blank"  href="http://localhost:8080/v1/AUTH_prag2648/">http://localhost:8080/v1/AUTH_prag2648/</a>" "proxy-server 3182" 0.0021 ""</div>

<div>Sep  4 11:14:04 arun-Aspire-5742 proxy-server ERROR Insufficient Storage <a rel="nofollow" target="_blank"  href="http://127.0.0.1:6002/d1">127.0.0.1:6002/d1</a> (txn: txb0d8717ab05c4cf0bdebd-005226c8a4)</div><div>Sep  4 11:14:05
 arun-Aspire-5742 proxy-server Account GET returning 503 for [507] (txn: txb0d8717ab05c4cf0bdebd-005226c8a4) (client_ip: 127.0.0.1)</div><div><span></span></div><div>Sep  4 11:14:05 arun-Aspire-5742 proxy-server 127.0.0.1 127.0.0.1 04/Sep/2013/05/44/05 GET /v1/AUTH_prag2648/ HTTP/1.0 503 -
 curl/7.22.0%20%28i686-pc-linux-gnu%29%20libcurl/7.22.0%20OpenSSL/1.0.1%20zlib/<a rel="nofollow" target="_blank"  href="http://1.2.3.4/">1.2.3.4</a>%20libidn/1.23%20librtmp/2.3 AUTH_tk4be7b90194c747468c4973675db15ca5 - 118 - txb0d8717ab05c4cf0bdebd-005226c8a4 - 0.2774 - -</div>

<div style="font-size:12pt;"><br></div><div style="font-size:12pt;"><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> Clay Gerrard <<a rel="nofollow" ymailto="mailto:clay.gerrard@gmail.com" target="_blank" href="mailto:clay.gerrard@gmail.com">clay.gerrard@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:pangj@laposte.net" target="_blank" href="mailto:pangj@laposte.net">pangj@laposte.net</a>" <<a rel="nofollow" ymailto="mailto:pangj@laposte.net" target="_blank" href="mailto:pangj@laposte.net">pangj@laposte.net</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, 4 September 2013 9:12 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">So the builder files look right, you should grep the logs for the transaction id of the request that 503'd and see if the proxy is still getting connection errors (i.e. still trying to connect to 10.0.2.15)<div>


<br></div>grep txb0d8717ab05c4cf0bdebd-005226c8a4 /var/log/syslog<div><br></div><div>If the proxy is still going to the old 10.0.2.15 you need to rebalance your rings</div><div><br></div><div>swift-ring-builder account.builder reblanace</div>


<div><br></div><div>-Clay</div></div><div><br><br><div>On Tue, Sep 3, 2013 at 10:51 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:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div><div style="font-size:12pt;"><div><div>root@arun-Aspire-5742:/etc/swift# swift-ring-builder object.builder</div>

<div>object.builder, build version 14</div></div><div><div>262144 partitions, 3.000000 replicas, 1 regions, 1 zones, 1 devices, 0.00 balance</div><div>The minimum number of hours before a partition can be reassigned is 24</div>


<div>Devices:    id  region  zone      ip address  port  replication ip  replication port      name weight partitions balance meta</div></div><div><div>             2       1     1       127.0.0.1  6000       127.0.0.1              6000        d1 100.00     786432  
  0.00 </div><div>root@arun-Aspire-5742:/etc/swift# swift-ring-builder account.builder</div><div>account.builder, build version 14</div></div><div><div>262144 partitions, 3.000000 replicas, 1 regions, 1 zones, 1 devices, 0.00 balance</div>


<div>The minimum number of hours before a partition can be reassigned is 24</div><div>Devices:    id  region  zone      ip address  port  replication ip  replication port      name weight partitions balance meta</div></div>


<div><div>             2       1     1       127.0.0.1  6002       127.0.0.1              6002        d1 100.00     786432    0.00 </div><div>root@arun-Aspire-5742:/etc/swift# swift-ring-builder container.builder</div>
<div>container.builder, build version 11</div></div><div><div>262144
 partitions, 3.000000 replicas, 1 regions, 1 zones, 1 devices, 0.00 balance</div><div>The minimum number of hours before a partition can be reassigned is 24</div><div>Devices:    id  region  zone      ip address  port  replication ip  replication port      name weight partitions balance meta</div>


</div><div>             1       1     1       127.0.0.1  6001       127.0.0.1              6001        d1 100.00     786432    0.00 </div><div>root@arun-Aspire-5742:/etc/swift# cd ~</div><div><div>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>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><div><div>< X-Auth-Token: AUTH_tk4be7b90194c747468c4973675db15ca5</div><div>< Content-Type: text/html; charset=UTF-8</div><div>< X-Storage-Token: AUTH_tk4be7b90194c747468c4973675db15ca5</div><div>
< Content-Length: 0</div><div>< X-Trans-Id:
 txc07e87d3d4b8487b85d89-005226c820</div></div><div>< Date: Wed, 04 Sep 2013 05:41:52 GMT</div><div><div>< </div><div>* Connection #0 to host localhost left intact</div><div>* Closing connection #0</div>
</div><div>root@arun-Aspire-5742:~# curl -v -H 'X-Storage-Token:AUTH_tk4be7b90194c747468c4973675db15ca5' <a rel="nofollow" target="_blank"  href="http://127.0.0.1:8080/v1/AUTH_prag2648/">http://127.0.0.1:8080/v1/AUTH_prag2648/</a></div>


<div>* About to connect() to 127.0.0.1 port 8080 (#0)</div><div><div>*   Trying 127.0.0.1... connected</div><div>> GET /v1/AUTH_prag2648/ HTTP/1.1</div></div><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: <a rel="nofollow" target="_blank"  href="http://127.0.0.1:8080/">127.0.0.1:8080</a></div><div>> Accept: */*</div><div>> X-Storage-Token:AUTH_tk4be7b90194c747468c4973675db15ca5</div><div>> </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><div>< X-Trans-Id:
 tx2301beb46542488597d23-005226c87d</div><div>< Date: Wed, 04 Sep 2013 05:43:26 GMT</div><div>< </div><div>* Connection #0 to host 127.0.0.1 left intact</div><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>root@arun-Aspire-5742:~# curl -v -H 'X-Storage-Token:AUTH_tk4be7b90194c747468c4973675db15ca5' <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>
<div>* About to connect() to 127.0.0.1 port 80 (#0)</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>root@arun-Aspire-5742:~# curl -v -H 'X-Storage-Token:AUTH_tk4be7b90194c747468c4973675db15ca5' <a rel="nofollow" target="_blank"  href="http://localhost:8080/v1/AUTH_prag2648/">http://localhost:8080/v1/AUTH_prag2648/</a></div>


<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><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><div>> X-Storage-Token:AUTH_tk4be7b90194c747468c4973675db15ca5</div><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><div>< X-Trans-Id: txb0d8717ab05c4cf0bdebd-005226c8a4</div><div>< Date: Wed, 04 Sep 2013 05:44:05 GMT</div><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><div>root@arun-Aspire-5742:~# grep txa4c98c518382430ab9f5f-005222dede /var/log/syslogroot@arun-Aspire-5742:~# </div><div><span></span></div>
<div style="font-size:12pt;"><br></div></div><div style="font-size:12pt;"><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"><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>


<b><span style="font-weight:bold;">Cc:</span></b> Gareth <<a rel="nofollow" ymailto="mailto:academicgareth@gmail.com" target="_blank" href="mailto:academicgareth@gmail.com">academicgareth@gmail.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>


 </div><b><span style="font-weight:bold;">Sent:</span></b> Friday, 30 August 2013 1:15 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">Hmm.... <div><br></div><div>1) No Container and Object servers are running </div><div>2) Only one drive in the ring<br>3) No device been mount to /srv/node/* , unless you are disabling mount_check</div>


<div>
4) Did you setup rsync yet ? </div><div><br></div><div>Maybe you can follow the online document to complete the above items. </div><div><br></div><div>Good luck~</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 rel="nofollow" href="">+886 935004793</a><br></div></div></div>
<br><br><div>2013/8/30 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;"><div>root@arun-Aspire-5742:~# swift-ring-builder /etc/swift/account.builder</div><div>/etc/swift/account.builder, build version 1</div>
<div>
262144 partitions, 3.000000 replicas, 1 regions, 1 zones, 1 devices, 0.00 balance</div><div>The minimum number of hours before a partition can be reassigned is 24</div><div>Devices:    id  region  zone      ip address  port  replication ip  replication port      name weight partitions balance meta</div>



<div>             0       1     1       10.0.2.15  6000       10.0.2.15              6000        d1 100.00     786432  
  0.00 </div><div>root@arun-Aspire-5742:~# swift-ring-builder /etc/swift/container.builder</div><div>/etc/swift/container.builder, build version 1</div><div>262144 partitions, 3.000000 replicas, 1 regions, 1 zones, 1 devices, 0.00 balance</div>



<div>The minimum number of hours before a partition can be reassigned is 24</div><div>Devices:    id  region  zone      ip address  port  replication ip  replication port      name weight partitions balance meta</div><div>



             0       1     1       10.0.2.15  6001       10.0.2.15              6001        d1 100.00     786432    0.00 </div><div>root@arun-Aspire-5742:~# swift-ring-builder /etc/swift/object.builder</div><div>/etc/swift/object.builder, build version
 1</div><div>262144 partitions, 3.000000 replicas, 1 regions, 1 zones, 1 devices, 0.00 balance</div><div>The minimum number of hours before a partition can be reassigned is 24</div><div>Devices:    id  region  zone      ip address  port  replication ip  replication port      name weight partitions balance meta</div>



<div><span></span></div><div>             0       1     1       10.0.2.15  6002       10.0.2.15              6002        d1 100.00     786432    0.00 </div><div><div>root@arun-Aspire-5742:~# ps aux | grep swift</div><div>



swift     5174  0.0  0.1  18700 11548 ?        Ss   10:45   0:00 /usr/bin/python /usr/local/bin/swift-account-server
 /etc/swift/account-server.conf</div><div>swift     5181  0.0  0.1  18976  9624 ?        S    10:45   0:00 /usr/bin/python /usr/local/bin/swift-account-server /etc/swift/account-server.conf</div><div>swift     5182  0.0  0.1  18992  9616 ?        S    10:45   0:00 /usr/bin/python /usr/local/bin/swift-account-server /etc/swift/account-server.conf</div>



<div>swift     5183  0.0  0.1  18992  9620 ?        S    10:45   0:00 /usr/bin/python /usr/local/bin/swift-account-server /etc/swift/account-server.conf</div><div>swift     5184  0.0  0.1  18992  9632 ?        S    10:45   0:00 /usr/bin/python /usr/local/bin/swift-account-server /etc/swift/account-server.conf</div>



<div>swift     5192  0.0
  0.2  18296 11812 ?        Ss   10:45   0:00 /usr/bin/python /usr/local/bin/swift-proxy-server /etc/swift/proxy-server.conf</div><div>swift     5197  0.0  0.2  23512 15552 ?        S    10:45   0:00 /usr/bin/python /usr/local/bin/swift-proxy-server /etc/swift/proxy-server.conf</div>



<div>swift     5198  0.0  0.2  23524 15628 ?        S    10:45   0:00 /usr/bin/python /usr/local/bin/swift-proxy-server /etc/swift/proxy-server.conf</div><div>swift     5199  0.0  0.2  23524 15300 ?        S    10:45   0:00 /usr/bin/python /usr/local/bin/swift-proxy-server /etc/swift/proxy-server.conf</div>



<div>swift     5200  0.0  0.2  23524 15300 ?        S    10:45   0:00 /usr/bin/python
 /usr/local/bin/swift-proxy-server /etc/swift/proxy-server.conf</div><div>root      6986  0.0  0.0   4388   828 pts/0    S+   11:46   0:00 grep --color=auto swift</div><div><div>root@arun-Aspire-5742:~# df -h</div><div>Filesystem      Size  Used Avail Use% Mounted on</div>



<div>/dev/sda4       170G  3.8G  158G   3% /</div><div>udev            2.8G  4.0K  2.8G   1% /dev</div><div>tmpfs           1.2G  908K  1.2G   1% /run</div><div>none            5.0M  4.0K  5.0M   1% /run/lock</div><div>none            2.8G  220K  2.8G   1% /run/shm</div>



<div>/dev/sda2        98G   25G   73G  26% /media/D8EA06E4EA06BEAE</div><div>/dev/sda5      
  98G   54G   45G  55% /media/8AE41BA8E41B9613</div><div><div>root@arun-Aspire-5742:~# ls /srv/node/*</div><div>/srv/node/d1:</div><div><br></div><div>/srv/node/d2:</div><div><br></div><div>/srv/node/d3:</div><div><div>
<div>root@arun-Aspire-5742:~# netstat -antulp</div><div>Active Internet connections (servers and established)</div><div>Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name</div>



</div><div>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      941/memcached   </div><div>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      5192/python  
   </div><div>tcp        0      0 <a rel="nofollow" target="_blank"  href="http://0.0.0.0:6002/">0.0.0.0:6002</a>            0.0.0.0:*               LISTEN      5174/python     </div><div>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      6936/dnsmasq    </div>



<div>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      596/cupsd       </div><div>tcp        0      0 <a rel="nofollow" target="_blank"  href="http://101.58.138.11:56680/">101.58.138.11:56680</a>     <a rel="nofollow" target="_blank"  href="http://207.171.162.71:443/">207.171.162.71:443</a>      ESTABLISHED 2042/chrome     </div>



<div>tcp        0      0
 <a rel="nofollow" target="_blank"  href="http://127.0.0.1:11211/">127.0.0.1:11211</a>         <a rel="nofollow" target="_blank"  href="http://127.0.0.1:45287/">127.0.0.1:45287</a>         ESTABL</div></div></div></div></div>


<div>ISHED 941/memcached   </div>
<div>tcp        0      0 <a rel="nofollow" target="_blank"  href="http://127.0.0.1:11211/">127.0.0.1:11211</a>         <a rel="nofollow" target="_blank"  href="http://127.0.0.1:45292/">127.0.0.1:45292</a>         ESTABLISHED 941/memcached   </div>


<div>tcp        0      0 <a rel="nofollow" target="_blank"  href="http://127.0.0.1:45287/">127.0.0.1:45287</a>         <a rel="nofollow" target="_blank"  href="http://127.0.0.1:11211/">127.0.0.1:11211</a>         ESTABLISHED 5197/python     </div>



<div>tcp        1      0 <a rel="nofollow" target="_blank"  href="http://101.58.138.11:34377/">101.58.138.11:34377</a>     <a rel="nofollow" target="_blank"  href="http://91.189.89.144/">91.189.89.144:80</a>        CLOSE_WAIT  1674/ubuntu-geoip-p</div>



<div>tcp        0      0 <a rel="nofollow" target="_blank"  href="http://127.0.0.1:45292/">127.0.0.1:45292</a>         <a rel="nofollow" target="_blank"  href="http://127.0.0.1:11211/">127.0.0.1:11211</a>         ESTABLISHED 5198/python     </div>


<div>tcp6       0
      0 ::1:631                 :::*                    LISTEN      596/cupsd       </div><div>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:*                           941/memcached   </div>



<div>udp        0      0 <a rel="nofollow" target="_blank"  href="http://0.0.0.0:46638/">0.0.0.0:46638</a>           0.0.0.0:*                           576/avahi-daemon: r</div><div>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:*                           6936/dnsmasq    </div>



<div>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:*                           576/avahi-daemon: r</div><div>udp6       0      0 :::55335                :::*                                576/avahi-daemon: r</div>



<div>udp6       0      0 :::5353                 :::*                                576/avahi-daemon: r</div><div><div>root@arun-Aspire-5742:~# swift-init all status</div><div>No container-updater running</div><div>No account-auditor running</div>



<div>No object-replicator running</div><div>proxy-server running (5192 -
 /etc/swift/proxy-server.conf)</div><div>No container-replicator running</div><div>No object-auditor running</div><div>No object-expirer running</div><div>No container-auditor running</div><div>No container-server running</div>



<div>account-server running (5174 - /etc/swift/account-server.conf)</div><div>No account-reaper running</div><div>No container-sync running</div><div>No account-replicator running</div><div>No object-updater running</div>



<div>No object-server running</div><div><br></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"><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> Gareth <<a rel="nofollow" ymailto="mailto:academicgareth@gmail.com" target="_blank" href="mailto:academicgareth@gmail.com">academicgareth@gmail.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> Friday, 30 August 2013 11:23 AM<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"><div>Hi Pragya : </div><div><br></div><div>I'm in <b>highly</b> recommends that you can go through the Swift online document <a rel="nofollow" target="_blank" href="http://docs.openstack.org/developer/swift/index.html">http://docs.openstack.org/developer/swift/index.html</a>
 . </div>
<div>It's a good place to understand the basic architecture, especially swift *terms* </div><div><br></div><div><br></div><b><font color="#ff9900">Check rings :</font></b><blockquote style="margin:0 0 0 40px;border:none;padding:0px;">




<div>$> swift-ring-builder /etc/swift/object.builder</div><div>$> swift-ring-builder /etc/swift/container.builder</div><div>$> swift-ring-builder /etc/swift/account.builder</div></blockquote><div><br></div><div>



<b><font color="#ff9900">Check Swift workers :</font></b> </div>
<blockquote style="margin:0 0 0 40px;border:none;padding:0px;"><div>$> swift-init all status</div><div>$> ps aux | grep swift</div><div>$> df -h </div><div>$> ls /srv/node/*</div><div>$> netstat -antulp</div>




</blockquote><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 rel="nofollow" href="">+886 935004793</a><br></div></div>
</div>
<br><br><div>2013/8/30 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;"><div><span>hello sir,</span></div><div style="font-style:normal;font-size:16px;background-color:transparent;">
<span><br></span></div><div style="font-style:normal;font-size:16px;background-color:transparent;"><span>I am working on single node.</span></div><div style="font-style:normal;font-size:16px;background-color:transparent;">




<span>Please let me know how to check network topology and ring structure.</span></div><div style="font-style:normal;font-size:16px;background-color:transparent;">
<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> Gareth <<a rel="nofollow" ymailto="mailto:academicgareth@gmail.com" target="_blank" href="mailto:academicgareth@gmail.com">academicgareth@gmail.com</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> 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>>; "<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> Friday, 30 August 2013 8:11 AM<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">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><br><br><div>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 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><font color="#888888">
<div><br></div><div><br></div></font></span><div><span><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><a rel="nofollow" href="">+886 935004793</a><br></div></div></div></font></span><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;"><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></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></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> </blockquote></div>   </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>