<div dir="ltr">swift.conf裡面的 hash key 在所有node 上都是一樣的嗎?</div><div class="gmail_extra"><br clear="all"><div><div dir="ltr"><div>+Hugo Kuo+</div><div><a href="mailto:hugo@swiftstack.com" target="_blank">hugo@swiftstack.com</a><br>
</div><div><a href="mailto:tonytkdk@gmail.com" target="_blank">tonytkdk@gmail.com<br></a></div><div>+886 935004793<br></div></div></div>
<br><br><div class="gmail_quote">2013/8/27 pragya jain <span dir="ltr"><<a href="mailto:prag_2648@yahoo.co.in" target="_blank">prag_2648@yahoo.co.in</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><div style="font-size:12pt;font-family:bookman old style,new york,times,serif"><div><span>hello <br></span></div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:bookman old style,new york,times,serif">
<br><span></span></div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:bookman old style,new york,times,serif"><span>Please help me in setting up Tempauth authentication & authorization with Swift.</span></div>
<div style="font-style:normal;font-size:16px;background-color:transparent;font-family:bookman old style,new york,times,serif"><span>same error is continued.</span></div><div><div class="h5"><div><br><blockquote style="border-left:2px solid rgb(16,16,255);margin-left:5px;margin-top:5px;padding-left:5px">
<div style="font-family:bookman old style,new york,times,serif;font-size:12pt"> <div style="font-family:times new roman,new york,times,serif;font-size:12pt"> <div dir="ltr"> ----- Forwarded Message -----<br> <font face="Arial"> <b><span style="font-weight:bold">From:</span></b> pragya jain <<a href="mailto:prag_2648@yahoo.co.in" target="_blank">prag_2648@yahoo.co.in</a>><br>
<b><span style="font-weight:bold">To:</span></b> "<a href="mailto:joe@swiftstack.com" target="_blank">joe@swiftstack.com</a>" <<a href="mailto:joe@swiftstack.com" target="_blank">joe@swiftstack.com</a>>; "<a href="mailto:clay.gerrard@gmail.com" target="_blank">clay.gerrard@gmail.com</a>" <<a href="mailto:clay.gerrard@gmail.com" target="_blank">clay.gerrard@gmail.com</a>>; "<a href="mailto:contact@swiftstack.com" target="_blank">contact@swiftstack.com</a>" <<a href="mailto:contact@swiftstack.com" target="_blank">contact@swiftstack.com</a>>; "<a href="mailto:openstack@ask.openstack.org" target="_blank">openstack@ask.openstack.org</a>" <<a href="mailto:openstack@ask.openstack.org" target="_blank">openstack@ask.openstack.org</a>>; "<a href="mailto:openstack@lists.openstack.org" target="_blank">openstack@lists.openstack.org</a>" <<a href="mailto:openstack@lists.openstack.org" target="_blank">openstack@lists.openstack.org</a>> <br>
<b><span style="font-weight:bold">Cc:</span></b> anita goel <<a href="mailto:goel.anita@gmail.com" target="_blank">goel.anita@gmail.com</a>> <br> <b><span style="font-weight:bold">Sent:</span></b> Monday, 26 August 2013 12:06 PM<br>
<b><span style="font-weight:bold">Subject:</span></b> problem in setting up Tempauth authentication & authorization with Swift<br>
</font> </div> <div><br><div><div><div style="font-size:12pt;font-family:bookman old style,new york,times,serif"><div>hello,<br><br>I have to configure proxy server.<br>For this, <br></div><div><span></span>I
have to edit /etc/swift/swift.conf and change the
swift_hash_path_suffix to something secret and then, start the proxy
server process</div><div><br></div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:bookman old style,new york,times,serif">for this, I use the following commands:</div>root@arun-Aspire-5742:~# vi /etc/swift/swift.conf<br>
<br>make following changes (highlighted) in the file:<br>swift_hash_path_suffix =<span style="background-color:rgb(255,0,0)">pragya</span> <br>swift_hash_path_prefix =<span style="background-color:rgb(255,0,0)">jain </span><br>
<br>save and exit.<br>then, I run the command:<br>root@arun-Aspire-5742:~# sudo swift-init proxy start<br>Starting proxy-server...(/etc/swift/proxy-server.conf)<br><br>Now, I have to set up Tempauth authentication & authorization with Swift<br>
for this, I run the following command:<br>root@arun-Aspire-5742:~# vi /etc/swift/proxy-server.conf<br><br>make following changes (highlighted) in the file:<br>allow_account_management =<span style="background-color:rgb(255,0,0)">true</span> <br>
...<br>[filter:tempauth]<br>use = egg:swift#tempauth<br>...<br>user_admin_admin = admin .admin .reseller_admin<br>user_test_tester = testing .admin<br>user_test2_tester2 = testing2 .admin<br>user_test_tester3 = testing3<br>
<span style="background-color:rgb(255,0,0)">user_prag2648_pragya = pj2648.admin.reseller_admin</span><br>...<br><br>save and exit<br>Then, run following commands:<br>root@arun-Aspire-5742:~# sudo swift-init account start<br>
Starting account-server...(/etc/swift/account-server.conf)<br>root@arun-Aspire-5742:~# sudo swift-init proxy restart<br>Signal proxy-server pid: 2476 signal: 15<br>proxy-server (2476) appears to have stopped<br>Starting proxy-server...(/etc/swift/proxy-server.conf)<br>
root@arun-Aspire-5742:~# curl -v -H 'X-Auth-User:prag2648:pragya' -H 'X-Auth-Key:pj2648' <a href="http://localhost/auth/v1.0/" target="_blank">http://localhost/auth/v1.0/</a><br>* About to connect() to localhost port 80
(#0)<br>* Trying 127.0.0.1... Connection refused<br>* couldn't connect to host<br>* Closing connection #0<br>curl: (7) couldn't connect to host<br><br>But, there is an error in establising a connection.<br><br>
if, I run the command to start proxy server, then it shows that proxy server is already started.<br>root@arun-Aspire-5742:~# sudo swift-init proxy start<br>proxy-server running (2935 - /etc/swift/proxy-server.conf)<br>proxy-server already started...<br>
<br>Please help me in this regard.<br>---<br><br>Thanks <br><br>Pragya Jain<br></div></div></div><br><br></div> </div> </div> </blockquote></div> </div></div></div></div><br>_______________________________________________<br>
Mailing list: <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a><br>
Post to : <a href="mailto:openstack@lists.openstack.org">openstack@lists.openstack.org</a><br>
Unsubscribe : <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a><br>
<br></blockquote></div><br></div>