use 8080 port?

-Edward



                                                                           
             pragya jain                                                   
             <prag_2648@yahoo.                                             
             co.in>                                                     To 
                                       "[email protected]"                
             2013-08-26 下午           <[email protected]>,               
             02:36                     "[email protected]"            
                                       <[email protected]>,           
                                       "[email protected]"            
             Please respond to         <[email protected]>,           
                pragya jain            "[email protected]"       
             <prag_2648@yahoo.         <[email protected]>,      
                  co.in>               "[email protected]"     
                                       <[email protected]>,    
                                                                        cc 
                                       anita goel <[email protected]>   
                                                                   Subject 
                                       [Openstack] problem in setting up   
                                       Tempauth authentication &         
                                       authorization with Swift            
                                                                           
                                                                           
                                                                           
                                                                           
                                                                           
                                                                           




hello,

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

for this, I use the following commands:
root@arun-Aspire-5742:~# vi /etc/swift/swift.conf

make following changes (highlighted) in the file:
swift_hash_path_suffix =pragya
swift_hash_path_prefix =jain

save and exit.
then, I run the command:
root@arun-Aspire-5742:~# sudo swift-init proxy start
Starting proxy-server...(/etc/swift/proxy-server.conf)

Now, I have to set up Tempauth authentication & authorization with Swift
for this, I run the following command:
root@arun-Aspire-5742:~# vi /etc/swift/proxy-server.conf

make following changes (highlighted) in the file:
allow_account_management =true
...
[filter:tempauth]
use = egg:swift#tempauth
...
user_admin_admin = admin .admin .reseller_admin
user_test_tester = testing .admin
user_test2_tester2 = testing2 .admin
user_test_tester3 = testing3
user_prag2648_pragya = pj2648.admin.reseller_admin
...

save and exit
Then, run following commands:
root@arun-Aspire-5742:~# sudo swift-init account start
Starting account-server...(/etc/swift/account-server.conf)
root@arun-Aspire-5742:~# sudo swift-init proxy restart
Signal proxy-server  pid: 2476  signal: 15
proxy-server (2476) appears to have stopped
Starting proxy-server...(/etc/swift/proxy-server.conf)
root@arun-Aspire-5742:~# curl -v -H 'X-Auth-User:prag2648:pragya' -H
'X-Auth-Key:pj2648' http://localhost/auth/v1.0/
* About to connect() to localhost port 80 (#0)
*   Trying 127.0.0.1... Connection refused
* couldn't connect to host
* Closing connection #0
curl: (7) couldn't connect to host

But, there is an error in establising a connection.

if, I run the command to start proxy server, then it shows that proxy
server is already started.
root@arun-Aspire-5742:~# sudo swift-init proxy start
proxy-server running (2935 - /etc/swift/proxy-server.conf)
proxy-server already started...

Please help me in this regard.
---

Thanks

Pragya Jain_______________________________________________
Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Post to     : [email protected]
Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack

<<inline: graycol.gif>>

<<inline: pic20534.gif>>

<<inline: ecblank.gif>>

_______________________________________________
Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Post to     : [email protected]
Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack

Reply via email to