test_novnc failed with socket recv time
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Undecided
|
Jianghua Wang |
Bug Description
We observed race condition with novnc test. Failed rate is about 1/10.
=======
Failed 1 tests - output below:
=======
tempest.
-------
Captured traceback:
~~~~~~~~~~~~~~~~~~~
Traceback (most recent call last):
File "tempest/
File "tempest/
data = self._websocket
File "tempest/
header = self._recv(2)
File "tempest/
File "/opt/stack/
raise TimeoutException()
fixtures.
Changed in nova: | |
status: | New → In Progress |
This issue was observed with XenServer test. But potentially it will impact other hypervisors.
I think the problem caused the code at here: https:/ /github. com/openstack/ nova/blob/ master/ nova/console/ websocketproxy. py#L155
It tries to get the http response from the socket. But potentially the first negotiation message has arrived earlier then the negotiation message will be swallowed by the above recv(). Then the client will get stuck on waiting for the negotiation message.