[Openstack] Fw: problem in setting up TempAuth authentication and authrization with swift

pragya jain prag_2648 at yahoo.co.in
Sat Aug 24 05:04:42 UTC 2013


hello sir!

I tried the commands again.

root at arun-Aspire-5742:~# sudo swift-init proxy start
Starting proxy-server...(/etc/swift/proxy-server.conf)
root at arun-Aspire-5742:~# sudo useradd swift
useradd: user 'swift' already exists
root at arun-Aspire-5742:~# sudo swift-init account start
Starting account-server...(/etc/swift/account-server.conf)
root at arun-Aspire-5742:~# sudo swift-init proxy restart
Signal proxy-server  pid: 2514  signal: 15
proxy-server (2514) appears to have stopped
Starting proxy-server...(/etc/swift/proxy-server.conf)
root at arun-Aspire-5742:~# sudo swift-init proxy restart
Signal proxy-server  pid: 3008  signal: 15
proxy-server (3008) appears to have stopped
Starting proxy-server...(/etc/swift/proxy-server.conf)
root at arun-Aspire-5742:~#
 curl -v -H 'X-Auth-User:prag_2648: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

again, the same problem is coming.
But if I am giving the  command 
sudo swift-init proxy start
It shows proxy server is running

root at arun-Aspire-5742:~# sudo swift-init proxy startproxy-server running (3024 - /etc/swift/proxy-server.conf)
proxy-server already started...
root at arun-Aspire-5742:~# curl -v -H 'X-Auth-User:prag_2648: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


Please help me in this regard.

---

ThanksPragya Jain



----- Forwarded Message -----
>From: pragya jain <prag_2648 at yahoo.co.in>
>To: "openstack at lists.openstack.org" <openstack at lists.openstack.org> 
>Sent: Thursday, 22 August 2013 1:47 PM
>Subject: problem in setting up TempAuth authentication and authrization with swift
> 
>
>
>hello all 
>
>
>
>I am configuring swift on my PC on Ubuntu 12.04.
>
>
>after configuring logging to a single, local file, I have to configure proxy server.
>I changed the swift_hash_path_suffix using the command 
>
>root at arun-Aspire-5742:~# vi /etc/swift/swift.conf
>
>
>Then, start proxy server process 
>
>root at arun-Aspire-5742:~# sudo swift-init proxy start 
>
>Starting proxy-server...(/etc/swift/proxy-server.conf)
>
>
>now, I have to set up TempAuth authentication and authrization with swift 
>
>For this, I run following commands:
>root at arun-Aspire-5742:~# sudo swift-init account start 
>
>Starting account-server...(/etc/swift/account-server.conf) 
>
>root at arun-Aspire-5742:~# sudo swift-init proxy restart 
>
>Signal proxy-server  pid: 2485  signal: 15 
>
>proxy-server (2485) appears to have stopped 
>
>Starting proxy-server...(/etc/swift/proxy-server.conf)
>root at arun-Aspire-5742:~# curl -v -H 'X-Auth-User:prag_2648' -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, it shows an error in connecting to host.
>
>
>Please help me in this regard.
>
>
>---
>Thanks 
>
>
>
>Pragya Jain
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20130824/676d020e/attachment.html>


More information about the Openstack mailing list