GET EC policy object includes connection:close header which causes external LB returns 502 bad gateway to client
Bug #1680731 reported by
Hugo Kou
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Object Storage (swift) |
Fix Released
|
Medium
|
Unassigned |
Bug Description
The `connection: close` cause problem if there's LB infront of Swift proxy servers.
```
swift@vm-
Using token AUTH_tk9bf859c5
Resp status 200
content-length: 10485760
content-type: application/
accept-ranges: bytes
last-modified: Thu, 06 Apr 2017 17:59:19 GMT
connection: close
etag: f1c9645dbc14efd
x-timestamp: 1491501558.61049
x-trans-id: txbb4e9f8007f84
date: Thu, 06 Apr 2017 19:46:37 GMT
x-object-
x-openstack-
```
To post a comment you must log in.
It seems like this issue only happens on object in EC policy,
# EC policy
$ curl -i http:// 192.168. 190.21/ v1/AUTH_ demo/ec64/ a -X GET -H "X-Auth-Token: AUTH_tk38365493 7f2d4fa3a1cb26f baaf82b40" Meta-Mtime: 1491541780.000000 4e9800998ecf842 7e octet-stream 1e48e8ba- 0058e73728 Request- Id: tx476d99bf575f4 1e48e8ba- 0058e73728
HTTP/1.1 200 OK
Content-Length: 0
X-Object-
Accept-Ranges: bytes
Last-Modified: Fri, 07 Apr 2017 05:09:45 GMT
Connection: close
Etag: d41d8cd98f00b20
X-Timestamp: 1491541784.48274
Date: Fri, 07 Apr 2017 06:52:24 GMT
Content-Type: application/
X-Trans-Id: tx476d99bf575f4
X-Openstack-
# Replica policy
$ curl -i http:// 192.168. 190.21/ v1/AUTH_ demo/gw/ 20MB -I -H "X-Auth-Token: AUTH_tk38365493 7f2d4fa3a1cb26f baaf82b40" octet-stream ff94e5fb6905cba 8c Meta-Mtime: 1491547877.000000 ae2a5830- 0058e7372c Request- Id: tx63c97a2b94e34 ae2a5830- 0058e7372c
HTTP/1.1 200 OK
Content-Length: 20971520
Content-Type: application/
Accept-Ranges: bytes
Last-Modified: Fri, 07 Apr 2017 06:51:27 GMT
Etag: 8f4e33f3dc3e414
X-Timestamp: 1491547886.25414
X-Object-
X-Trans-Id: tx63c97a2b94e34
X-Openstack-
Date: Fri, 07 Apr 2017 06:52:28 GMT