Comment 0 for bug 1274834

Revision history for this message
Prashanth Pai (ppai) wrote :

Steps to reproduce:

[root@pp swift]# gluster volume create a_b pp:/export/eo/eo
volume create: a_b: success: please start the volume to access data

[root@pp swift]# gluster volume start a_b
volume start: a_b: success

[root@pp swift]# gluster-swift-gen-builders test a_b
Ring files are prepared in /etc/swift. Please restart object store services

[root@pp swift]# swift-init main start
Starting proxy-server...(/etc/swift/proxy-server.conf)
Starting container-server...(/etc/swift/container-server.conf)
Starting account-server...(/etc/swift/account-server.conf)
Starting object-server...(/etc/swift/object-server.conf)

[root@pp swift]# curl -v -X PUT http://127.0.0.1:8080/v1/test/c1
* About to connect() to 127.0.0.1 port 8080 (#0)
* Trying 127.0.0.1...
* Connected to 127.0.0.1 (127.0.0.1) port 8080 (#0)
> PUT /v1/test/c1 HTTP/1.1
> User-Agent: curl/7.29.0
> Host: 127.0.0.1:8080
> Accept: */*
>
< HTTP/1.1 201 Created
< Content-Length: 0
< Content-Type: text/html; charset=UTF-8
< X-Trans-Id: tx248546510ca94e15a94b6-0052eb5832
< Date: Fri, 31 Jan 2014 08:00:50 GMT
<
* Connection #0 to host 127.0.0.1 left intact

[root@pp swift]# curl -v -X PUT http://127.0.0.1:8080/v1/a_b/c1
* About to connect() to 127.0.0.1 port 8080 (#0)
* Trying 127.0.0.1...
* Connected to 127.0.0.1 (127.0.0.1) port 8080 (#0)
> PUT /v1/a_b/c1 HTTP/1.1
> User-Agent: curl/7.29.0
> Host: 127.0.0.1:8080
> Accept: */*
>
< HTTP/1.1 404 Not Found
< Content-Length: 70
< Content-Type: text/html; charset=UTF-8
< X-Trans-Id: tx734ec22862684f0aa64f1-0052eb5839
< Date: Fri, 31 Jan 2014 08:00:57 GMT
<
* Connection #0 to host 127.0.0.1 left intact
<html><h1>Not Found</h1><p>The resource could not be found.</p></html>

[root@pp swift]# curl -v -X PUT http://127.0.0.1:8080/v1/AUTH_a_b/c1
* About to connect() to 127.0.0.1 port 8080 (#0)
* Trying 127.0.0.1...
* Connected to 127.0.0.1 (127.0.0.1) port 8080 (#0)
> PUT /v1/AUTH_a_b/c1 HTTP/1.1
> User-Agent: curl/7.29.0
> Host: 127.0.0.1:8080
> Accept: */*
>
< HTTP/1.1 404 Not Found
< Content-Length: 70
< Content-Type: text/html; charset=UTF-8
< X-Trans-Id: tx5030c113255d4268a83e5-0052eb5844
< Date: Fri, 31 Jan 2014 08:01:08 GMT
<
* Connection #0 to host 127.0.0.1 left intact
<html><h1>Not Found</h1><p>The resource could not be found.</p></html>
[root@pp swift]#

Logs:
Jan 31 13:30:50 pp container-server: 127.0.0.1 - - [31/Jan/2014:08:00:50 +0000] "PUT /test/0/test/c1" 201 - "tx248546510ca94e15a94b6-0052eb5832" "PUT http://127.0.0.1:8080/v1/test/c1" "proxy-server 19569" 0.0088
Jan 31 13:30:50 pp proxy-server: 127.0.0.1 127.0.0.1 31/Jan/2014/08/00/50 PUT /v1/test/c1 HTTP/1.0 201 - curl/7.29.0 - - - - tx248546510ca94e15a94b6-0052eb5832 - 0.0133 - - 1391155250.544230938 1391155250.557531118
Jan 31 13:30:57 pp account-server: STDOUT: ERROR:root:No export found in ['gsmetadata', 'test', 'test2', 'a_b'] matching drive, volume_not_in_ring (txn: tx734ec22862684f0aa64f1-0052eb5839)
Jan 31 13:30:57 pp account-server: 127.0.0.1 - - [31/Jan/2014:08:00:57 +0000] "HEAD /volume_not_in_ring/1/a_b" 507 - "tx734ec22862684f0aa64f1-0052eb5839" "HEAD http://127.0.0.1:8080/v1/a_b" "proxy-server 19569" 0.0344 ""
Jan 31 13:30:57 pp proxy-server: ERROR Insufficient Storage 127.0.0.1:6012/volume_not_in_ring (txn: tx734ec22862684f0aa64f1-0052eb5839)
Jan 31 13:30:57 pp proxy-server: Account HEAD returning 503 for [507] (txn: tx734ec22862684f0aa64f1-0052eb5839)
Jan 31 13:30:57 pp proxy-server: Container GET returning 503 for (503,) (txn: tx734ec22862684f0aa64f1-0052eb5839)
Jan 31 13:30:57 pp proxy-server: Could not autocreate account '/a_b' (txn: tx734ec22862684f0aa64f1-0052eb5839)
Jan 31 13:30:57 pp proxy-server: Account HEAD returning 503 for [] (txn: tx734ec22862684f0aa64f1-0052eb5839)
Jan 31 13:30:57 pp proxy-server: 127.0.0.1 127.0.0.1 31/Jan/2014/08/00/57 PUT /v1/a_b/c1 HTTP/1.0 404 - curl/7.29.0 - - 70 - tx734ec22862684f0aa64f1-0052eb5839 - 0.0420 - - 1391155257.391767025 1391155257.433722019
Jan 31 13:31:08 pp proxy-server: Account HEAD returning 503 for [] (txn: tx5030c113255d4268a83e5-0052eb5844)
Jan 31 13:31:08 pp proxy-server: Container GET returning 503 for (503,) (txn: tx5030c113255d4268a83e5-0052eb5844)
Jan 31 13:31:08 pp proxy-server: Could not autocreate account '/AUTH_a_b' (txn: tx5030c113255d4268a83e5-0052eb5844)
Jan 31 13:31:08 pp proxy-server: Account HEAD returning 503 for [] (txn: tx5030c113255d4268a83e5-0052eb5844)
Jan 31 13:31:08 pp proxy-server: 127.0.0.1 127.0.0.1 31/Jan/2014/08/01/08 PUT /v1/AUTH_a_b/c1 HTTP/1.0 404 - curl/7.29.0 - - 70 - tx5030c113255d4268a83e5-0052eb5844 - 0.0042 - - 1391155268.221762896 1391155268.225977898