[Openstack] problem in retrieving the account data

pragya jain prag_2648 at yahoo.co.in
Sun Sep 1 09:28:04 UTC 2013


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
then, I did thefolowing job:

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.
---

Please help me in this regard.

Pragya Jain
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20130901/6d95189e/attachment.html>


More information about the Openstack mailing list