STEPS TO REPRODUCE. CLIENT-TO-PROXY issue (bug #1466549):
1. Deploy cloud with swift
2. Export auth variables for swift client:
export OS_TENANT_NAME=admin
export OS_USERNAME=admin
export OS_PASSWORD=admin
export OS_AUTH_URL="http://192.168.0.2:5000/v2.0/"
3. Upload a DLO to cloud:
$ dd if=/dev/zero of=2x1G bs=1M count=2048
$ swift post test
$ swift upload test -S 1073741824 2x1G
4. Turn on connections monitoring on every controller (you should look for ESTABLISHED connections):
watch -n 1 "netstat -tapn | grep -E ':60[0-4]0 ' | grep -v TIME_WA"
STEPS TO REPRODUCE. CLIENT-TO-PROXY issue (bug #1466549):
1. Deploy cloud with swift
2. Export auth variables for swift client: NAME=admin 192.168. 0.2:5000/ v2.0/"
export OS_TENANT_
export OS_USERNAME=admin
export OS_PASSWORD=admin
export OS_AUTH_URL="http://
3. Upload a DLO to cloud:
$ dd if=/dev/zero of=2x1G bs=1M count=2048
$ swift post test
$ swift upload test -S 1073741824 2x1G
4. Turn on connections monitoring on every controller (you should look for ESTABLISHED connections):
watch -n 1 "netstat -tapn | grep -E ':60[0-4]0 ' | grep -v TIME_WA"
5. Get swift Token and Account (excessive output is omitted): 172.16. 59.36:8080/ v1/AUTH_ 655bfcd63bd647c fb5850c995fe2f6 09 48a26daa1aa3df5 7b d647cfb5850c995 fe2f609
#swift stat -v
StorageURL: http://
Auth Token: b543b376c978485
Account: AUTH_655bfcd63b
6. Get current Date from object's metadata (excessive output is omitted): 172.16. 59.36:8080/ v1/AUTH_ 655bfcd63bd647c fb5850c995fe2f6 09/test/ 2x1G" -H 'X-Auth-Token: b543b376c978485 48a26daa1aa3df5 7b'
# curl -I "http://
HTTP/1.1 200 OK
....
Date: Wed, 16 Mar 2016 14:38:48 GMT
Connection: close
7. Request uploaded object with if-modified-since condition (you should get a response with 304 Error):
curl -I "http:// 172.16. 59.36:8080/ v1/AUTH_ 655bfcd63bd647c fb5850c995fe2f6 09/test/ 2x1G" -H 'X-Auth-Token: b543b376c978485 48a26daa1aa3df5 7b' -H 'if-modified-since: Wed, 16 Mar 2016 14:38:48 GMT'
HTTP/1.1 304 Not Modified b33d7c89f7a3975 ac3" Meta-Mtime: 1458136136.170476 2x1G/1458136136 .170476/ 2147483648/ 1073741824/ octet-stream 3f7a69cb- 0056e97041
Content-Length: 0
Etag: "ef36dc89234e86
X-Object-
Accept-Ranges: bytes
Last-Modified: Wed, 16 Mar 2016 13:52:55 GMT
X-Object-Manifest: test_segments/
X-Timestamp: 1458136374.94459
Content-Type: application/
X-Trans-Id: txa3d14be638554
Date: Wed, 16 Mar 2016 14:40:01 GMT
Connection: close
RESULT: you have established connection at your controllers which is not active (were used to provide 304 response)