tempest.tests.compute.servers.test_server_rescue.ServerRescueTestJSON fail with badstatusline in ha mode
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Compass |
Fix Committed
|
Undecided
|
Jerry Zhao |
Bug Description
When running tempest full smoke test, each time tempest.
Did a packet capture and found out that ha proxy sent tcp rst on receiving the deleting the floating ip request.
However, it can not be reproduced by running the particular test manually. Need more haproxy log for investigation.
2014-04-24 10:50:50.509 | =======
2014-04-24 10:50:50.509 | ERROR: test suite for <class 'tempest.
2014-04-24 10:50:50.509 | -------
2014-04-24 10:50:50.509 | Traceback (most recent call last):
2014-04-24 10:50:50.509 | File "/usr/lib/
2014-04-24 10:50:50.510 | self.tearDown()
2014-04-24 10:50:50.510 | File "/usr/lib/
2014-04-24 10:50:50.510 | self.teardownCo
2014-04-24 10:50:50.510 | File "/usr/lib/
2014-04-24 10:50:50.510 | try_run(context, names)
2014-04-24 10:50:50.510 | File "/usr/lib/
2014-04-24 10:50:50.510 | return func()
2014-04-24 10:50:50.510 | File "/tmp/tempest/
2014-04-24 10:50:50.511 | cls.floating_
2014-04-24 10:50:50.511 | File "/tmp/tempest/
2014-04-24 10:50:50.511 | resp, body = self.delete(url)
2014-04-24 10:50:50.511 | File "/tmp/tempest/
2014-04-24 10:50:50.511 | return self.request(
2014-04-24 10:50:50.511 | File "/tmp/tempest/
2014-04-24 10:50:50.511 | headers=headers, body=body)
2014-04-24 10:50:50.511 | File "/tmp/tempest/
2014-04-24 10:50:50.511 | headers=headers, body=body)
2014-04-24 10:50:50.512 | File "/usr/lib/
2014-04-24 10:50:50.512 | (response, content) = self._request(conn, authority, uri, request_uri, method, body, headers, redirections, cachekey)
2014-04-24 10:50:50.512 | File "/usr/lib/
2014-04-24 10:50:50.512 | (response, content) = self._conn_
2014-04-24 10:50:50.512 | File "/usr/lib/
2014-04-24 10:50:50.512 | response = conn.getresponse()
2014-04-24 10:50:50.512 | File "/usr/lib64/
2014-04-24 10:50:50.512 | response.begin()
2014-04-24 10:50:50.512 | File "/usr/lib64/
2014-04-24 10:50:50.513 | version, status, reason = self._read_status()
2014-04-24 10:50:50.513 | File "/usr/lib64/
2014-04-24 10:50:50.513 | raise BadStatusLine(line)
2014-04-24 10:50:50.513 | BadStatusLine:
2014-04-24 10:50:50.513 | -------
2014-04-24 10:50:50.513 | 2014-04-24 03:41:29,516 Request: DELETE http://
2014-04-24 10:50:50.513 | 2014-04-24 03:41:29,516 Request Headers: {'X-Auth-Token': '<Token omitted>'}
Changed in compass: | |
status: | New → Fix Committed |
haproxy closes the tcp connection after client timeout, which was 50s, so later when tempest/httplib2 sent floating ip delete request, the tcp connection was not there, hence the tcp rst.
Try increasing the timeout to 100s to see what happens.