[Openstack] stale data returned even when "X-Newest : True" is used
Pramodh Pisupati
pramodhp at yahoo.com
Sat Oct 4 00:02:04 UTC 2014
Hello,
I did a test on a SWIFT cluster to verify the use of X-Newest header with GET/HEAD requests.
However, the GET/HEAD requests are still returning an older copy of the object.
This behavior persists even after 5 hours.
The relevant HTTP headers are given below. SWIFT version is 2.0.3.
I am looking for some guidance on how to debug this on the SWIFT side.
This is the information I received from the people that set up this SWIFT cluster:
====
We have One Haproxy loadbalancer , connected to two SWIFT proxies and then they further connect to 3 storage nodes (12 disk of 2000 GB each).
====
Regards,
Pramodh
PUT updates the object from 37014 bytes to 37200 bytes.
----------------------------------
PUT /v1/AUTH_4d6923c0011f4ba3a40af75d522d3494/riverbedprimary%2D7/sourcefile1?format=xml HTTP/1.1
Host: 192.168.0.195:8080
Accept: */*
Content-Type: application/octet-stream
Date: Fri, 03 Oct 2014 18:46:14 GMT
Etag: 6ea9ae59e1e932297f0d9d7b02e91244
X-Auth-Token: b0510a7aca424a32a04d21072bb2561d
X-Object-Meta-Md5: 6ea9ae59e1e932297f0d9d7b02e91244
Content-Length: 37200
HTTP/1.1 201 Created
Last-Modified: Fri, 03 Oct 2014 18:44:54 GMT
Content-Length: 0
Etag: 6ea9ae59e1e932297f0d9d7b02e91244
Content-Type: text/html; charset=UTF-8
X-Trans-Id: txb9d2715069e3411da9e1c-00542eeea5
Date: Fri, 03 Oct 2014 18:44:53 GMT
======
HEAD returns content length 37014 bytes in spite of X-Newest being set to true.
--------------------------------------------
HEAD /v1/AUTH_4d6923c0011f4ba3a40af75d522d3494/riverbedprimary%2D7/sourcefile1 HTTP/1.1
Host: 192.168.0.195:8080
Accept: */*
Date: Fri, 03 Oct 2014 19:00:40 GMT
X-Auth-Token: 1394369b9fdd4206be647a0b09fc51a2
X-Newest: True
HTTP/1.1 200 OK
Content-Length: 37014
Content-Type: application/octet-stream
Accept-Ranges: bytes
Last-Modified: Fri, 03 Oct 2014 18:46:11 GMT
Etag: 12efe95bad4a32822303580f184098a9
X-Timestamp: 1412361970.27333
X-Object-Meta-Md5: 12efe95bad4a32822303580f184098a9
X-Trans-Id: tx87c0e41dce6f4ddda3d17-00542ef207
Date: Fri, 03 Oct 2014 18:59:19 GMT
======
Same result with GET
--------------------------
GET /v1/AUTH_4d6923c0011f4ba3a40af75d522d3494/riverbedprimary%2D7/sourcefile1 HTTP/1.1
Host: 192.168.0.195:8080
Accept: */*
Date: Fri, 03 Oct 2014 19:04:21 GMT
X-Auth-Token: 77ed6791288e4ea0879a6b484e5f9603
X-Newest: True
HTTP/1.1 200 OK
Content-Length: 37014
Content-Type: application/octet-stream
Accept-Ranges: bytes
Last-Modified: Fri, 03 Oct 2014 18:46:11 GMT
Etag: 12efe95bad4a32822303580f184098a9
X-Timestamp: 1412361970.27333
X-Object-Meta-Md5: 12efe95bad4a32822303580f184098a9
X-Trans-Id: txb54c347ffc15444a9afa5-00542ef2e4
Date: Fri, 03 Oct 2014 19:03:00 GMT
======
HEAD /v1/AUTH_4d6923c0011f4ba3a40af75d522d3494/riverbedprimary%2D7/sourcefile1 HTTP/1.1
Host: 192.168.0.195:8080
Accept: */*
Date: Fri, 03 Oct 2014 19:22:41 GMT
X-Auth-Token: a1d4771da0d8424aa6a4a6a5a4a17eaa
X-Newest: True
HTTP/1.1 200 OK
Content-Length: 37014
Content-Type: application/octet-stream
Accept-Ranges: bytes
Last-Modified: Fri, 03 Oct 2014 18:46:11 GMT
Etag: 12efe95bad4a32822303580f184098a9
X-Timestamp: 1412361970.27333
X-Object-Meta-Md5: 12efe95bad4a32822303580f184098a9
X-Trans-Id: txc13e1852db0d48f3b9c35-00542ef77f
Date: Fri, 03 Oct 2014 19:22:39 GMT
======
GET /v1/AUTH_4d6923c0011f4ba3a40af75d522d3494/riverbedprimary%2D7/sourcefile1 HTTP/1.1
Host: 192.168.0.195:8080
Accept: */*
Date: Fri, 03 Oct 2014 19:22:50 GMT
X-Auth-Token: b2289a21703a4129b448e9dca11e03b7
X-Newest: True
HTTP/1.1 200 OK
Content-Length: 37014
Content-Type: application/octet-stream
Accept-Ranges: bytes
Last-Modified: Fri, 03 Oct 2014 18:46:11 GMT
Etag: 12efe95bad4a32822303580f184098a9
X-Timestamp: 1412361970.27333
X-Object-Meta-Md5: 12efe95bad4a32822303580f184098a9
X-Trans-Id: tx31b18ad62d6b4f07abb51-00542ef739
Date: Fri, 03 Oct 2014 19:21:29 GMT
======
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20141003/aa3616c3/attachment.html>
More information about the Openstack
mailing list