hello sir
Thanks for the suggestion.
(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
root@arun-Aspire-5742:~# vi /etc/swift/proxy-server.conf
and make following changes:
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
and then
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 start
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
(2) I also tired the connection with user admin:admin
root@arun-Aspire-5742:~# curl -v -H 'X-Auth-User:admin:admin' -H
'X-Auth-Key:admin' 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
(3) I also run the command to verify the port number of proxy
root@arun-Aspire-5742:~# ps aux | grep proxy
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
root 2724 0.0 0.0 4368 828 pts/0 R+ 10:52 0:00 grep
--color=auto proxy
root@arun-Aspire-5742:~# netstat -antulp
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State
PID/Program name
tcp 0 0 127.0.0.1:11211 0.0.0.0:* LISTEN
931/memcached
tcp 0 0 127.0.0.1:53 0.0.0.0:* LISTEN
2124/dnsmasq
tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN
623/cupsd
tcp 0 0 115.184.7.223:51521 74.125.236.132:80 TIME_WAIT
-
tcp 1 0 115.184.7.223:46280 91.189.89.144:80 CLOSE_WAIT
1663/ubuntu-geoip-p
tcp 0 0 115.184.7.223:60563 173.194.38.147:80 TIME_WAIT
-
tcp 0 0 115.184.7.223:43256 124.124.201.179:80 TIME_WAIT
-
tcp 0 0 115.184.7.223:41791 124.124.201.169:80 TIME_WAIT
-
tcp 0 0 115.184.7.223:36669 124.124.252.9:80 TIME_WAIT
-
tcp 0 0 115.184.7.223:51747 173.194.38.184:80 TIME_WAIT
-
tcp 0 0 115.184.7.223:54229 74.125.236.44:443 TIME_WAIT
-
tcp 0 0 115.184.7.223:36185 173.194.36.26:80 TIME_WAIT
-
tcp 0 0 115.184.7.223:38854 74.125.236.109:80 TIME_WAIT
-
tcp6 0 0 ::1:631 :::* LISTEN
623/cupsd
udp 0 0 0.0.0.0:5353 0.0.0.0:*
619/avahi-daemon: r
udp 0 0 0.0.0.0:53489 0.0.0.0:*
619/avahi-daemon: r
udp 0 0 127.0.0.1:11211 0.0.0.0:*
931/memcached
udp 0 0 127.0.0.1:53 0.0.0.0:*
2124/dnsmasq
udp6 0 0 :::5353 :::*
619/avahi-daemon: r
udp6 0 0 :::36705 :::*
619/avahi-daemon: r
Please help to proceed further.
---
Thanks
Pragya jain
>________________________________
> From: Kuo Hugo <[email protected]>
>To: pragya jain <[email protected]>
>Cc: Amanda Plimpton <[email protected]>; "[email protected]"
><[email protected]>
>Sent: Wednesday, 28 August 2013 9:59 PM
>Subject: Re: [Openstack] Fw: problem in setting up Tempauth authentication &
>authorization with Swift
>
>
>
>Hi
>
>
>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 ?
>2) Verify the port number of proxy by
>$> ps aux | grep proxy
>>$> netstat -antulp
>
>
>3) Check the Proxy for how to setup bind_port
>https://github.com/openstack/swift/blob/master/etc/proxy-server.conf-sample
>
>
>
>
>
>
>
>
>
>
>+Hugo Kuo+
>[email protected]
>
>[email protected]
>
>+886 935004793
>
>
>
>2013/8/29 pragya jain <[email protected]>
>
>hello sir,
>>
>>Please help me in knowing how to use 8080 port
>>
>>
>>
>>
>>
>>
>>>________________________________
>>> From: Amanda Plimpton <[email protected]>
>>>To: pragya jain <[email protected]>
>>>Cc: "[email protected]" <[email protected]>; "[email protected]"
>>><[email protected]>; anita goel <[email protected]>
>>>Sent: Tuesday, 27 August 2013 9:40 AM
>>>Subject: Re: Fw: problem in setting up Tempauth authentication &
>>>authorization with Swift
>>>
>>>
>>>
>>>Hello,
>>>
>>>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.
>>>
>>>
>>>Given your interest in Swift I would also recommend locating a nearby
>>>OpenStack group or attending an event such as
>>>http://openstackindia.wordpress.com/2013/08/14/openstack-india-day-2013-announced/
>>>
>>>
>>>
>>>
>>>Thank you,
>>>Amanda
>>>
>>>SwiftStack Inc.
>>>swiftstack.com
>>>
>>>
>>>
>>>
>>>On Mon, Aug 26, 2013 at 8:55 PM, pragya jain <[email protected]> wrote:
>>>
>>>hello sir!
>>>>
>>>>
>>>>Please help me in setting up Tempauth authentication & authorization with
>>>>Swift.
>>>>same error is continued.
>>>>
>>>>
>>>>----- Forwarded Message -----
>>>>>From: pragya jain <[email protected]>
>>>>>To: "[email protected]" <[email protected]>; "[email protected]"
>>>>><[email protected]>; "[email protected]"
>>>>><[email protected]>; "[email protected]"
>>>>><[email protected]>; "[email protected]"
>>>>><[email protected]>
>>>>>Cc: anita goel <[email protected]>
>>>>>
>>>>>Sent: Monday, 26 August 2013 12:06 PM
>>>>>
>>>>>Subject: 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
>>
>>
>
>
>
_______________________________________________
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