[Openstack] Fw: problem in creating account in swift

pragya jain prag_2648 at yahoo.co.in
Sun Sep 1 06:32:13 UTC 2013


hello sir,

I did the following job:

arun at arun-Aspire-5742:~$ su -
Password: 
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 start
Starting proxy-server...(/etc/swift/proxy-server.conf)
root at arun-Aspire-5742:~# curl -v -H 'X-Auth-User:prag2648:pragya' -H 'X-Auth-Key:pj2648' http://localhost:8080/auth/v1.0/
* About to connect() to localhost port 8080 (#0)
*   Trying 127.0.0.1... connected
> GET /auth/v1.0/ HTTP/1.1
> User-Agent: curl/7.22.0 (i686-pc-linux-gnu) libcurl/7.22.0 OpenSSL/1.0.1 zlib/1.2.3.4 libidn/1.23 librtmp/2.3
> Host: localhost:8080
> Accept: */*
> X-Auth-User:prag2648:pragya
> X-Auth-Key:pj2648
> 
< HTTP/1.1 200 OK
< X-Storage-Url: http://localhost:8080/v1/AUTH_prag2648
< X-Auth-Token: AUTH_tk9867f9725a1246a1af3e30b9f7161eb5
< Content-Type: text/html; charset=UTF-8
< X-Storage-Token: AUTH_tk9867f9725a1246a1af3e30b9f7161eb5
< Content-Length: 0
< X-Trans-Id: tx8f658e6bd3b244b793815-005222de45
< Date: Sun, 01 Sep 2013 06:27:17 GMT
< 
* Connection #0 to host localhost left intact
* Closing connection #0
root at arun-Aspire-5742:~# curl -v -H 'X-Storage-Token: AUTH_tk9867f9725a1246a1af3e30b9f7161eb5' http://127.0.0.1:8080/v1/AUTH_prag2648/
* About to connect() to 127.0.0.1 port 8080 (#0)
*   Trying 127.0.0.1... connected
> GET /v1/AUTH_prag2648/ HTTP/1.1
> User-Agent: curl/7.22.0 (i686-pc-linux-gnu) libcurl/7.22.0 OpenSSL/1.0.1 zlib/1.2.3.4 libidn/1.23 librtmp/2.3
> Host: 127.0.0.1:8080
> Accept: */*
> X-Storage-Token: AUTH_tk9867f9725a1246a1af3e30b9f7161eb5
> 
< HTTP/1.1 503 Internal Server Error
< Content-Length: 118
< Content-Type: text/html; charset=UTF-8
< X-Trans-Id: tx1c1cb6e3a9f64b56a9550-005222dea4
< Date: Sun, 01 Sep 2013 06:28:54 GMT
< 
* Connection #0 to host 127.0.0.1 left intact
* Closing connection #0
<html><h1>Service Unavailable</h1><p>The server is currently unavailable. Please try again at a later time.</p></html>root at arun-Aspire-5742:~# 
root at arun-Aspire-5742:~# curl -v -H 'X-Storage-Token:AUTH_tk9867f9725a1246a1af3e30b9f7161eb5' http://localhost:8080/v1/AUTH_prag2648/
* About to connect() to localhost port 8080 (#0)
*   Trying 127.0.0.1... connected
> GET /v1/AUTH_prag2648/ HTTP/1.1
> User-Agent: curl/7.22.0 (i686-pc-linux-gnu) libcurl/7.22.0 OpenSSL/1.0.1 zlib/1.2.3.4 libidn/1.23 librtmp/2.3
> Host: localhost:8080
> Accept: */*
> X-Storage-Token:AUTH_tk9867f9725a1246a1af3e30b9f7161eb5
> 
< HTTP/1.1 503 Internal Server Error
< Content-Length: 118
< Content-Type: text/html; charset=UTF-8
< X-Trans-Id: txa4c98c518382430ab9f5f-005222dede
< Date: Sun, 01 Sep 2013 06:29:51 GMT
< 
* Connection #0 to host localhost left intact
* Closing connection #0
<html><h1>Service Unavailable</h1><p>The server is currently unavailable. Please try again at a later time.</p></html>root at arun-Aspire-5742:~# 
root at arun-Aspire-5742:~# 

But it again shows internal server error.



>________________________________
> From: Clay Gerrard <clay.gerrard at gmail.com>
>To: pragya jain <prag_2648 at yahoo.co.in> 
>Sent: Saturday, 31 August 2013 7:38 PM
>Subject: Re: Fw: problem in creating account in swift
> 
>
>
>I was only just connecting to the account directly (127.0.0.1:6002) to prove a point - normally clients would always only talk to the proxy (127.0.0.1:8080).
>
>curl -v -H 'X-Storage-Token: AUTH_tk06aa273c010b4e7d886b7ec78fbef396' http://127.0.0.1:8080/v1/AUTH_prag2648/
>
>... should work?
>
>
>
>On Sat, Aug 31, 2013 at 3:17 AM, pragya jain <prag_2648 at yahoo.co.in> wrote:
>
>root at arun-Aspire-5742:/etc/swift# swift-ring-builder account.builder add z1-127.0.0.1:6002/d1 100
WARNING: No region specified for z1-127.0.0.1:6002/d1. Defaulting to region 1.
Device d2r1z1-127.0.0.1:6002R127.0.0.1:6002/d1_"" with 100.0 weight got id 2
root at arun-Aspire-5742:/etc/swift# swift-ring-builder container.builder add z1-127.0.0.1:6001/d1 100
WARNING: No region specified for z1-127.0.0.1:6001/d1. Defaulting to region 1.
Device d1r1z1-127.0.0.1:6001R127.0.0.1:6001/d1_"" with 100.0 weight got id 1
root at arun-Aspire-5742:/etc/swift# swift-ring-builder object.builder add z1-127.0.0.1:6000/d1 100
WARNING: No region specified for z1-127.0.0.1:6000/d1. Defaulting to region 1.
Device d2r1z1-127.0.0.1:6000R127.0.0.1:6000/d1_"" with 100.0 weight got id 2
root at arun-Aspire-5742:/etc/swift# swift-ring-builder account.builder rebalance
Reassigned 262144 (100.00%) partitions. Balance is now 0.00.
root at arun-Aspire-5742:/etc/swift# swift-ring-builder container.builder rebalance 
Reassigned 262144 (100.00%) partitions. Balance is now 33.33.
-------------------------------------------------------------------------------
NOTE: Balance of 33.33 indicates you should push this  ring, wait at least 24 hours, and rebalance/repush.
-------------------------------------------------------------------------------
root at arun-Aspire-5742:/etc/swift# swift-ring-builder container.builder pretend_min_part_hours_passed
root at arun-Aspire-5742:/etc/swift# swift-ring-builder object.builder pretend_min_part_hours_passed
root at arun-Aspire-5742:/etc/swift# swift-ring-builder container.builder rebalanceReassigned 131072 (50.00%) partitions. Balance is now 0.00.
root at arun-Aspire-5742:/etc/swift# swift-ring-builder object.builder rebalanceReassigned 262144 (100.00%) partitions. Balance is now 0.00.
root at arun-Aspire-5742:/etc/swift# curl -v -H 'X-Auth-User:prag2648:pragya' -H 'X-Auth-Key:pj2648' http://localhost:8080/auth/v1.0/ * About to connect() to localhost port 8080 (#0)
*   Trying 127.0.0.1... Connection refused
* couldn't connect to host
* Closing connection #0
curl: (7) couldn't connect to host
root at arun-Aspire-5742:/etc/swift# sudo swift-init account start
Starting account-server...(/etc/swift/account-server.conf)
root at arun-Aspire-5742:/etc/swift# sudo swift-init proxy start
Starting proxy-server...(/etc/swift/proxy-server.conf)
root at arun-Aspire-5742:/etc/swift# curl -v -H 'X-Auth-User:prag2648:pragya' -H 'X-Auth-Key:pj2648' http://localhost:8080/auth/v1.0/
>>* About to connect() to localhost port 8080 (#0)
*   Trying 127.0.0.1... connected
> GET /auth/v1.0/ HTTP/1.1
> User-Agent: curl/7.22.0 (i686-pc-linux-gnu) libcurl/7.22.0 OpenSSL/1.0.1 zlib/1.2.3.4 libidn/1.23 librtmp/2.3
> Host: localhost:8080
> Accept: */*
> X-Auth-User:prag2648:pragya
> X-Auth-Key:pj2648
> 
< HTTP/1.1 200 OK
< X-Storage-Url: http://localhost:8080/v1/AUTH_prag2648
>>< X-Auth-Token: AUTH_tk06aa273c010b4e7d886b7ec78fbef396
< Content-Type: text/html; charset=UTF-8
< X-Storage-Token: AUTH_tk06aa273c010b4e7d886b7ec78fbef396
< Content-Length: 0
< X-Trans-Id: tx21f0255793574234b88aa-005221bf20
< Date: Sat, 31 Aug 2013 10:02:08 GMT
< 
* Connection #0 to host localhost left intact
* Closing connection #0
root at arun-Aspire-5742:/etc/swift# curl -v -H 'X-Storage-Token: AUTH_tk06aa273c010b4e7d886b7ec78fbef396' http://127.0.0.1/v1/AUTH_prag2648/ * About to connect() to 127.0.0.1 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
root at arun-Aspire-5742:/etc/swift# curl -v -H 'X-Storage-Token: AUTH_tk06aa273c010b4e7d886b7ec78fbef396' http://127.0.0.1:6002/v1/AUTH_prag2648/ * About to connect() to 127.0.0.1 port 6002 (#0)
*   Trying 127.0.0.1... connected
> GET /v1/AUTH_prag2648/ HTTP/1.1
> User-Agent: curl/7.22.0 (i686-pc-linux-gnu) libcurl/7.22.0 OpenSSL/1.0.1 zlib/1.2.3.4 libidn/1.23 librtmp/2.3
> Host: 127.0.0.1:6002 > Accept: */*
> X-Storage-Token: AUTH_tk06aa273c010b4e7d886b7ec78fbef396
> 
< HTTP/1.1 400 Bad Request
< Content-Length: 32
< Content-Type: text/plain
< Date: Sat, 31 Aug 2013 10:04:14 GMT
< 
* Connection #0 to host 127.0.0.1 left intact
* Closing connection #0
>>it shows a bad request error in retrieving the content of account
>>
>>
>>
>>
>>>________________________________
>>> From: Clay Gerrard <clay.gerrard at gmail.com>
>>>To: pragya jain <prag_2648 at yahoo.co.in> 
>>>Sent: Saturday, 31 August 2013 1:42 PM
>>>
>>>Subject: Re: Fw: problem in creating account in swift
>>> 
>>>
>>>
>>>so that was only a couple of minutes of logs and it was ll the boring info lines from the background daemons.  Let's stop those while we troubeshoot:
>>>
>>>
>>>`swift-init rest stop`
>>>
>>>
>>>
>>>the listening servers show there's something listening on all interfaces on 6002.  It doesn't make sense that you wouldn't be able to connect to it?  Maybe this machine isn't really 10.0.2.15?  Can you ping it?  Maybe there's a weird route?  Try localhost:
>>>
>>>
>>>`curl http://localhost:6002`
>>>
>>>
>>>can you /msg clayg on Freenode so we can chat realtime?
>>>
>>>
>>>
>>>On Sat, Aug 31, 2013 at 1:01 AM, pragya jain <prag_2648 at yahoo.co.in> wrote:
>>>
>>>hello sir,
>>>>
>>>>
>>>>I run the following command:
>>>>
>>>>
>>>>root at arun-Aspire-5742:~# sudo netstat -plnt
>>>>Active Internet connections (only servers)
>>>>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      948/memcached   
>>>>tcp        0      0 0.0.0.0:8080            0.0.0.0:*               LISTEN      2589/python     
>>>>tcp        0      0 0.0.0.0:6000            0.0.0.0:*               LISTEN      2613/python     
>>>>tcp        0      0 0.0.0.0:6001            0.0.0.0:*               LISTEN      2593/python     
>>>>tcp        0      0 0.0.0.0:6002            0.0.0.0:*               LISTEN      2594/python     
>>>>tcp        0      0 127.0.0.1:53            0.0.0.0:*               LISTEN      4137/dnsmasq    
>>>>tcp        0      0 127.0.0.1:631           0.0.0.0:*               LISTEN      579/cupsd       
>>>>tcp        0      0 0.0.0.0:873             0.0.0.0:*               LISTEN      2816/rsync      
>>>>tcp6       0      0 ::1:631                 :::*                    LISTEN      579/cupsd       
>>>>tcp6       0      0 :::873                  :::*                    LISTEN      2816/rsync      
>>>>
>>>>
>>>>root at arun-Aspire-5742:~# cat /var/log/syslog
>>>>paste the result on http://paste.openstack.org/
>>>>Paste #45522
>>>>
>>>>>________________________________
>>>>> From: Clay Gerrard <clay.gerrard at gmail.com>
>>>>>To: pragya jain <prag_2648 at yahoo.co.in> 
>>>>>Sent: Saturday, 31 August 2013 1:15 PM
>>>>>
>>>>>Subject: Re: Fw: problem in creating account in swift
>>>>> 
>>>>>
>>>>>
>>>>>so what port is it listening on?
>>>>>
>>>>>
>>>>>`sudo netstat -plnt`
>>>>>
>>>>>
>>>>>
>>>>>The logs man... the logs.  `cat /var/log/syslog` copy the whole thing in http://paste.openstack.org/ if you have to.
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>On Sat, Aug 31, 2013 at 12:37 AM, pragya jain <prag_2648 at yahoo.co.in> wrote:
>>>>>
>>>>>root at arun-Aspire-5742:~# swift-ring-builder /etc/swift/account.builder
>>>>>>/etc/swift/account.builder, build version 1
>>>>>>262144 partitions, 3.000000 replicas, 1 regions, 1 zones, 1 devices, 0.00 balance
>>>>>>The minimum number of hours before a partition can be reassigned is 24
>>>>>>Devices:    id  region  zone      ip address  port  replication ip  replication port      name weight partitions balance meta
>>>>>>             0       1     1       10.0.2.15  6000       10.0.2.15              6000        d1 100.00     786432    0.00 
>>>>>>
>>>>>>
>>>>>>root at arun-Aspire-5742:~# curl -v -H 'X-Storage-Token: AUTH_tk06aa273c010b4e7d886b7ec78fbef396'http://10.0.2.15:6000/v1/AUTH_prag2648/
>>>>>>* About to connect() to 10.0.2.15 port 6000 (#0)
>>>>>>*   Trying 10.0.2.15... Connection timed out
>>>>>>* couldn't connect to host
>>>>>>* Closing connection #0
>>>>>>curl: (7) couldn't connect to host
>>>>>>
>>>>>>
>>>>>>/etc/swift/account-server.conf file says:
>>>>>>
>>>>>>
>>>>>>[DEFAULT]
>>>>>># bind_ip = 0.0.0.0
>>>>>># bind_port = 6002
>>>>>># bind_timeout = 30
>>>>>># backlog = 4096
>>>>>># user = swift
>>>>>># swift_dir = /etc/swift
>>>>>># devices = /srv/node
>>>>>># mount_check = true
>>>>>># disable_fallocate = false
>>>>>>....
>>>>>>
>>>>>>
>>>>>>root at arun-Aspire-5742:~# curl -v -H 'X-Storage-Token: AUTH_tk06aa273c010b4e7d886b7ec78fbef396' http://10.0.2.15:6002/v1/AUTH_prag2648/
>>>>>>* About to connect() to 10.0.2.15 port 6002 (#0)
>>>>>>*   Trying 10.0.2.15... Connection timed out
>>>>>>* couldn't connect to host
>>>>>>* Closing connection #0
>>>>>>curl: (7) couldn't connect to host
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>>________________________________
>>>>>>> From: Clay Gerrard <clay.gerrard at gmail.com>
>>>>>>>To: pragya jain <prag_2648 at yahoo.co.in> 
>>>>>>>Sent: Saturday, 31 August 2013 12:49 PM
>>>>>>>
>>>>>>>Subject: Re: Fw: problem in creating account in swift
>>>>>>> 
>>>>>>>
>>>>>>>
>>>>>>>ok, so you're getting the exact same error the proxy is - unable to connect.  I'm sure that is in the log - can you check?
>>>>>>>
>>>>>>>By default the account server's listen on 6002:
>>>>>>>http://docs.openstack.org/developer/swift/deployment_guide.html#account-server-configuration
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>not 6000 - so your ring is pointing your proxy at the wrong place (or your account server is listening on the wrong port, however you want to look at it)
>>>>>>>
>>>>>>>
>>>>>>>Can you connect to the account server on 6002?
>>>>>>>
>>>>>>>
>>>>>>>Here's how you remove/add a server from the ring:
>>>>>>>http://docs.openstack.org/developer/swift/admin_guide.html
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>On Fri, Aug 30, 2013 at 11:43 PM, pragya jain <prag_2648 at yahoo.co.in> wrote:
>>>>>>>
>>>>>>>hello sir,
>>>>>>>>
>>>>>>>>
>>>>>>>>I run the following commands:
>>>>>>>>
>>>>>>>>
>>>>>>>>root at arun-Aspire-5742:~# swift-ring-builder /etc/swift/account.builder
>>>>>>>>/etc/swift/account.builder, build version 1
>>>>>>>>262144 partitions, 3.000000 replicas, 1 regions, 1 zones, 1 devices, 0.00 balance
>>>>>>>>The minimum number of hours before a partition can be reassigned is 24
>>>>>>>>Devices:    id  region  zone      ip address  port  replication ip  replication port      name weight partitions balance meta
>>>>>>>>             0       1     1       10.0.2.15  6000       10.0.2.15              6000        d1 100.00     786432    0.00 
>>>>>>>>
>>>>>>>>
>>>>>>>>root at arun-Aspire-5742:~# curl -v -H 'X-Storage-Token: AUTH_tk06aa273c010b4e7d886b7ec78fbef396' http://10.0.2.15:6000/v1/AUTH_prag2648/
>>>>>>>>* About to connect() to 10.0.2.15 port 6000 (#0)
>>>>>>>>*   Trying 10.0.2.15... Connection timed out
>>>>>>>>* couldn't connect to host
>>>>>>>>* Closing connection #0
>>>>>>>>curl: (7) couldn't connect to host
>>>>>>>>
>>>>>>>>
>>>>>>>>/etc/swift/account-server.conf file says:
>>>>>>>>
>>>>>>>>
>>>>>>>>[DEFAULT]
>>>>>>>># bind_ip = 0.0.0.0
>>>>>>>># bind_port = 6002
>>>>>>>># bind_timeout = 30
>>>>>>>># backlog = 4096
>>>>>>>># user = swift
>>>>>>>># swift_dir = /etc/swift
>>>>>>>># devices = /srv/node
>>>>>>>># mount_check = true
>>>>>>>># disable_fallocate = false
>>>>>>>>....
>>>>>>>>
>>>>>>>>
>>>>>>>>I am working on single node.
>>>>>>>>
>>>>>>>>
>>>>>>>>----
>>>>>>>>
>>>>>>>>
>>>>>>>>Pragya Jain
>>>>>>>>Delhi, India
>>>>>>>>
>>>>>>>>>________________________________
>>>>>>>>> From: Clay Gerrard <clay.gerrard at gmail.com>
>>>>>>>>>To: pragya jain <prag_2648 at yahoo.co.in> 
>>>>>>>>>Sent: Saturday, 31 August 2013 11:22 AM
>>>>>>>>>
>>>>>>>>>Subject: Re: Fw: problem in creating account in swift
>>>>>>>>> 
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>Right so the service seems to start, but then the proxy can't seem to talk to it.  Maybe the proxy is looking in the wrong place?  You said you can't connect to the account-server on 10.0.2.15:6000 earlier - which is where the ring seems to indicate the proxy should be looking for it - can you connect now?  What port does the account server(s) config file *say* they're listening on?  After you start them - are they listening there?   What is the topology of your cluster - is it just the one node?
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>I really could guess about *why* that is happening all day, but the proxy logs would just tell us.  Can you read /var/log/syslog?
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>Where are you located?  Maybe we could find you some real over the shoulder help?
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>On Fri, Aug 30, 2013 at 10:05 PM, pragya jain <prag_2648 at yahoo.co.in> wrote:
>>>>>>>>>
>>>>>>>>>hello sir,
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>I start all services using the command:
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>root at arun-Aspire-5742:~# sudo swift-init all start
>>>>>>>>>>Starting container-updater...(/etc/swift/container-server.conf)
>>>>>>>>>>Starting account-auditor...(/etc/swift/account-server.conf)
>>>>>>>>>>Starting object-replicator...(/etc/swift/object-server.conf)
>>>>>>>>>>Starting proxy-server...(/etc/swift/proxy-server.conf)
>>>>>>>>>>Starting container-replicator...(/etc/swift/container-server.conf)
>>>>>>>>>>Starting object-auditor...(/etc/swift/object-server.conf)
>>>>>>>>>>Unable to locate config for object-expirer
>>>>>>>>>>Starting container-auditor...(/etc/swift/container-server.conf)
>>>>>>>>>>Starting container-server...(/etc/swift/container-server.conf)
>>>>>>>>>>Starting account-server...(/etc/swift/account-server.conf)
>>>>>>>>>>Starting account-reaper...(/etc/swift/account-server.conf)
>>>>>>>>>>Starting container-sync...(/etc/swift/container-server.conf)
>>>>>>>>>>Starting account-replicator...(/etc/swift/account-server.conf)
>>>>>>>>>>Starting object-updater...(/etc/swift/object-server.conf)
>>>>>>>>>>Starting object-server...(/etc/swift/object-server.conf)
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>root at arun-Aspire-5742:~# sudo apt-get install rsync
>>>>>>>>>>Reading package lists... Done
>>>>>>>>>>Building dependency tree       
>>>>>>>>>>Reading state information... Done
>>>>>>>>>>rsync is already the newest version.
>>>>>>>>>>0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
>>>>>>>>>>root at arun-Aspire-5742:~# vi /etc/default/rsync
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>set rsync_enable = true
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>then,
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>root at arun-Aspire-5742:~# service rsync start
>>>>>>>>>> * Starting rsync daemon rsync                                           [ OK ] 
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>root at 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
>>>>>>>>>>root at arun-Aspire-5742:~# curl -v -H 'X-Auth-User:prag2648:pragya' -H 'X-Auth-key:pj2648' http://localhost:8080/auth/v1.0/
>>>>>>>>>>* About to connect() to localhost port 8080 (#0)
>>>>>>>>>>*   Trying 127.0.0.1... connected
>>>>>>>>>>> GET /auth/v1.0/ HTTP/1.1
>>>>>>>>>>> User-Agent: curl/7.22.0 (i686-pc-linux-gnu) libcurl/7.22.0 OpenSSL/1.0.1 zlib/1.2.3.4 libidn/1.23 librtmp/2.3
>>>>>>>>>>> Host: localhost:8080
>>>>>>>>>>> Accept: */*
>>>>>>>>>>> X-Auth-User:prag2648:pragya
>>>>>>>>>>> X-Auth-key:pj2648
>>>>>>>>>>> 
>>>>>>>>>>< HTTP/1.1 200 OK
>>>>>>>>>>< X-Storage-Url: http://localhost:8080/v1/AUTH_prag2648
>>>>>>>>>>< X-Auth-Token: AUTH_tk06aa273c010b4e7d886b7ec78fbef396
>>>>>>>>>>< Content-Type: text/html; charset=UTF-8
>>>>>>>>>>< X-Storage-Token: AUTH_tk06aa273c010b4e7d886b7ec78fbef396
>>>>>>>>>>< Content-Length: 0
>>>>>>>>>>< X-Trans-Id: tx44b17cb561a84a34bee95-00522171e4
>>>>>>>>>>< Date: Sat, 31 Aug 2013 04:32:36 GMT
>>>>>>>>>>>>>>>>>>>>* Connection #0 to host localhost left intact
>>>>>>>>>>* Closing connection #0
>>>>>>>>>>root at arun-Aspire-5742:~# curl -v -H 'X-Storage-Token: AUTH_tk06aa273c010b4e7d886b7ec78fbef396' http://127.0.0.1/v1/AUTH_prag2648/
>>>>>>>>>>* About to connect() to 127.0.0.1 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
>>>>>>>>>>root at arun-Aspire-5742:~# curl -v -H 'X-Storage-Token: AUTH_tk06aa273c010b4e7d886b7ec78fbef396' http://localhost/v1/AUTH_prag2648/
>>>>>>>>>>* 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
>>>>>>>>>>root at arun-Aspire-5742:~# curl -v -H 'X-Storage-Token: AUTH_tk06aa273c010b4e7d886b7ec78fbef396' http://localhost:8080/v1/AUTH_prag2648/
>>>>>>>>>>* About to connect() to localhost port 8080 (#0)
>>>>>>>>>>*   Trying 127.0.0.1... connected
>>>>>>>>>>> GET /v1/AUTH_prag2648/ HTTP/1.1
>>>>>>>>>>> User-Agent: curl/7.22.0 (i686-pc-linux-gnu) libcurl/7.22.0 OpenSSL/1.0.1 zlib/1.2.3.4 libidn/1.23 librtmp/2.3
>>>>>>>>>>> Host: localhost:8080
>>>>>>>>>>> Accept: */*
>>>>>>>>>>> X-Storage-Token: AUTH_tk06aa273c010b4e7d886b7ec78fbef396
>>>>>>>>>>> 
>>>>>>>>>>< HTTP/1.1 503 Internal Server Error
>>>>>>>>>>< Content-Length: 118
>>>>>>>>>>< Content-Type: text/html; charset=UTF-8
>>>>>>>>>>< X-Trans-Id: txbe793299553c42f2820dc-005221728d
>>>>>>>>>>< Date: Sat, 31 Aug 2013 04:35:26 GMT
>>>>>>>>>>>>>>>>>>>>* Connection #0 to host localhost left intact
>>>>>>>>>>* Closing connection #0
>>>>>>>>>><html><h1>Service Unavailable</h1><p>The server is currently unavailable. Please try again at a later time.</p></html>root at arun-Aspire-5742:~#
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>>________________________________
>>>>>>>>>>> From: Clay Gerrard <clay.gerrard at gmail.com>
>>>>>>>>>>>To: pragya jain <prag_2648 at yahoo.co.in> 
>>>>>>>>>>>Sent: Friday, 30 August 2013 8:14 PM
>>>>>>>>>>>Subject: Re: Fw: problem in creating account in swift
>>>>>>>>>>> 
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>yeah sorry on the ring-builder command, i'm going from memory... so... the account server isn't running - any idea why?  can you start it?
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>swift-container-server /etc/swift/container-server.conf
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>^ on the 10.0.2.15 host
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>On Fri, Aug 30, 2013 at 12:29 AM, pragya jain <prag_2648 at yahoo.co.in> wrote:
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>----- Forwarded Message -----
>>>>>>>>>>>>>From: pragya jain <prag_2648 at yahoo.co.in>
>>>>>>>>>>>>>To: Clay Gerrard <clay.gerrard at gmail.com> 
>>>>>>>>>>>>>Sent: Friday, 30 August 2013 12:54 PM
>>>>>>>>>>>>>Subject: Re: problem in creating account in swift
>>>>>>>>>>>>> 
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>hello sir,
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>this shows problem:
>>>>>>>>>>>>root at arun-Aspire-5742:~# swift-ring-builder /etc/swift/account.builder
>>>>>>>>>>>>/etc/swift/account.builder, build version 1
>>>>>>>>>>>>>262144 partitions, 3.000000 replicas, 1 regions, 1 zones, 1 devices, 0.00 balance
>>>>>>>>>>>>>The minimum number of hours before a partition can be reassigned is 24
>>>>>>>>>>>>>Devices:    id  region  zone      ip address  port  replication ip  replic
>>>>>>>>>>>>>port      name weight partitions balance meta
>>>>>>>>>>>>>             0       1     1       10.0.2.15  6000       10.0.2.15              6000        d1 100.00     786432    0.00 
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>root at arun-Aspire-5742:~# swift-ring-builder /etc/swift/account.ring.gz
>>>>>>>>>>>>>Traceback (most recent call last):
>>>>>>>>>>>>>  File "/usr/local/bin/swift-ring-builder", line 5, in <module>
>>>>>>>>>>>>>    pkg_resources.run_script('swift==1.9.2', 'swift-ring-builder')
>>>>>>>>>>>>>  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 499, in run_script
>>>>>>>>>>>>>    self.require(requires)[0].run_script(script_name, ns)
>>>>>>>>>>>>>  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 1235, in run_script
>>>>>>>>>>>>>    execfile(script_filename, namespace, namespace)
>>>>>>>>>>>>>  File "/usr/local/lib/python2.7/dist-packages/swift-1.9.2-py2.7.egg/EGG-INFO/scripts/swift-ring-builder", line 808, in <module>
>>>>>>>>>>>>>    builder = RingBuilder.load(argv[1])
>>>>>>>>>>>>>  File "/usr/local/lib/python2.7/dist-packages/swift-1.9.2-py2.7.egg/swift/common/ring/builder.py", line 993, in load
>>>>>>>>>>>>>    builder = pickle.load(open(builder_file, 'rb'))
>>>>>>>>>>>>>cPickle.UnpicklingError: invalid load key, ''.
>>>>>>>>>>>>>root at arun-Aspire-5742:~# curl http://<ip>:<port>
>>>>>>>>>>>>>-su: syntax error near unexpected token `newline'
>>>>>>>>>>>>>root at arun-Aspire-5742:~# curl http://10.0.2.15:6000
>>>>>>>>>>>>>curl: (7) couldn't connect to host
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>Please help
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>>________________________________
>>>>>>>>>>>>>> From: Clay Gerrard <clay.gerrard at gmail.com>
>>>>>>>>>>>>>>To: pragya jain <prag_2648 at yahoo.co.in> 
>>>>>>>>>>>>>>Sent: Friday, 30 August 2013 12:35 PM
>>>>>>>>>>>>>>Subject: Re: problem in creating account in swift
>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>swift-ring-builder /etc/swift/account.ring.gz
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>and then
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>curl http://<ip>:<port>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>you can also check the proxy logs - it should have the backend requests there you could still the urls from them and make sure they match what's in the ring.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>-Clay
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>On Thu, Aug 29, 2013 at 10:38 PM, pragya jain <prag_2648 at yahoo.co.in> wrote:
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>hello sir,
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>Please help me to know how to check port of account server and how can I connect to them directly.
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>________________________________
>>>>>>>>>>>>>>>> From: Clay Gerrard <clay.gerrard at gmail.com>
>>>>>>>>>>>>>>>>To: pragya jain <prag_2648 at yahoo.co.in> 
>>>>>>>>>>>>>>>>Sent: Thursday, 29 August 2013 8:59 PM
>>>>>>>>>>>>>>>>Subject: Re: problem in creating account in swift
>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>Probably something in the rings, maybe the wrong ports for the account servers?  Or maybe something in the account server config - what port are they on?  can you connect to them directly?  The proxy log lines would say exactly what caused the 503 - can see anything in /var/log/syslog - or maybe /var/log/swift ?
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>On Thu, Aug 29, 2013 at 7:01 AM, pragya jain <prag_2648 at yahoo.co.in> wrote:
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>hello sir,
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>connection is established successfully. But, when I try to create an account, I face the problem.
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>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 start
>>>>>>>>>>>>>>>>>Starting proxy-server...(/etc/swift/proxy-server.conf)
>>>>>>>>>>>>>>>>>root at arun-Aspire-5742:~# curl -v -H 'X-Auth-User:prag2648:pragya' -H 'X-Auth-Key:pj2648' http://localhost:8080/auth/v1.0/
>>>>>>>>>>>>>>>>>* About to connect() to localhost port 8080 (#0)
>>>>>>>>>>>>>>>>>*   Trying 127.0.0.1... connected
>>>>>>>>>>>>>>>>>> GET /auth/v1.0/ HTTP/1.1
>>>>>>>>>>>>>>>>>> User-Agent: curl/7.22.0 (i686-pc-linux-gnu) libcurl/7.22.0 OpenSSL/1.0.1 zlib/1.2.3.4 libidn/1.23 librtmp/2.3
>>>>>>>>>>>>>>>>>> Host: localhost:8080
>>>>>>>>>>>>>>>>>> Accept: */*
>>>>>>>>>>>>>>>>>> X-Auth-User:prag2648:pragya
>>>>>>>>>>>>>>>>>> X-Auth-Key:pj2648
>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>< HTTP/1.1 200 OK
>>>>>>>>>>>>>>>>>< X-Storage-Url: http://localhost:8080/v1/AUTH_prag2648
>>>>>>>>>>>>>>>>>< X-Auth-Token: AUTH_tk3867b7599d5346559ee0baaa09e0f40d
>>>>>>>>>>>>>>>>>< Content-Type: text/html; charset=UTF-8
>>>>>>>>>>>>>>>>>< X-Storage-Token: AUTH_tk3867b7599d5346559ee0baaa09e0f40d
>>>>>>>>>>>>>>>>>< Content-Length: 0
>>>>>>>>>>>>>>>>>< X-Trans-Id: txe2ab76a7617e40399f456-00521f3d16
>>>>>>>>>>>>>>>>>< Date: Thu, 29 Aug 2013 12:22:46 GMT
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>* Connection #0 to host localhost left intact
>>>>>>>>>>>>>>>>>* Closing connection #0
>>>>>>>>>>>>>>>>>root at arun-Aspire-5742:~# python
>>>>>>>>>>>>>>>>>Python 2.7.3 (default, Apr 10 2013, 05:46:21) 
>>>>>>>>>>>>>>>>>[GCC 4.6.3] on linux2
>>>>>>>>>>>>>>>>>Type "help", "copyright", "credits" or "license" for more information.
>>>>>>>>>>>>>>>>>>>> import swift.common.memcached as memcached
>>>>>>>>>>>>>>>>>>>> memcache = memcached.MemcacheRing(['127.0.0.1:11211'])
>>>>>>>>>>>>>>>>>>>> print memcache.get('AUTH_/user/prag2648:pragya')
>>>>>>>>>>>>>>>>>AUTH_tk3867b7599d5346559ee0baaa09e0f40d
>>>>>>>>>>>>>>>>>>>> print memcache.get('AUTH_/token/AUTH_tk3867b7599d5346559ee0baaa09e0f40d')
>>>>>>>>>>>>>>>>>[1377865366.826027, 'prag2648,prag2648:pragya,.reseller_admin,AUTH_prag2648']
>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>root at arun-Aspire-5742:~# curl -v -H 'X-Storage-Token:AUTH_tk3867b7599d5346559ee0baaa09e0f40d' http://127.0.0.1/v1/Auth_prag2648/
>>>>>>>>>>>>>>>>>* About to connect() to 127.0.0.1 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
>>>>>>>>>>>>>>>>>root at arun-Aspire-5742:~# curl -v -H 'X-Storage-Token:AUTH_tk3867b7599d5346559ee0baaa09e0f40d' http://localhost:8080/v1/AUTH_prag2648/
>>>>>>>>>>>>>>>>>* About to connect() to localhost port 8080 (#0)
>>>>>>>>>>>>>>>>>*   Trying 127.0.0.1... connected
>>>>>>>>>>>>>>>>>> GET /v1/AUTH_prag2648/ HTTP/1.1
>>>>>>>>>>>>>>>>>> User-Agent: curl/7.22.0 (i686-pc-linux-gnu) libcurl/7.22.0 OpenSSL/1.0.1 zlib/
>>>>>>>>>>>>>>>>>1.2.3.4 libidn/1.23 librtmp/2.3
>>>>>>>>>>>>>>>>>> Host: localhost:8080
>>>>>>>>>>>>>>>>>> Accept: */*
>>>>>>>>>>>>>>>>>> X-Storage-Token:AUTH_tk3867b7599d5346559ee0baaa09e0f40d
>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>< HTTP/1.1 503 Internal Server Error
>>>>>>>>>>>>>>>>>< Content-Length: 118
>>>>>>>>>>>>>>>>>< Content-Type: text/html; charset=UTF-8
>>>>>>>>>>>>>>>>>< X-Trans-Id: txd6fd9eead36e4b74b0869-00521f3efe
>>>>>>>>>>>>>>>>>< Date: Thu, 29 Aug 2013 12:30:55 GMT
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>* Connection #0 to host localhost left intact
>>>>>>>>>>>>>>>>>* Closing connection #0
>>>>>>>>>>>>>>>>><html><h1>Service Unavailable</h1><p>The server is currently unavailable. Please try again at a later time.</p></html>root at arun-Aspire-5742:~# 
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>Please help me in this regard.
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>---
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>Pragya Jain
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>
>>>>>
>>>>>
>>>
>>>
>>>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20130901/30924fb5/attachment.html>


More information about the Openstack mailing list