tempesta-tech / tempesta-test

Test suite for Tempesta FW
10 stars 4 forks source link

deproxy client does not start several times on LAN #361

Open RomanBelozerov opened 1 year ago

RomanBelozerov commented 1 year ago

Seems like socket doesn't close in time when we use aliases_interface and aliases_base_ip (see test_config.ini) to start deproxy client and it returns error on restart.

----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/tempesta/tempesta-test/t_frang/test_connection_rate_burst.py", line 227, in test_two_clients_two_ip
    client_1.start()
  File "/home/tempesta/tempesta-test/helpers/stateful.py", line 37, in start
    self.run_start()
  File "/home/tempesta/tempesta-test/framework/deproxy_client.py", line 290, in run_start
    BaseDeproxyClient.run_start(self)
  File "/home/tempesta/tempesta-test/framework/deproxy_client.py", line 94, in run_start
    raise e
  File "/home/tempesta/tempesta-test/framework/deproxy_client.py", line 89, in run_start
    deproxy.Client.run_start(self)
  File "/home/tempesta/tempesta-test/helpers/deproxy.py", line 752, in run_start
    self.connect((self.conn_addr, self.port))
  File "/usr/lib/python3.8/asyncore.py", line 340, in connect
    raise OSError(err, errorcode[err])
OSError: [Errno 9] EBADF

======================================================================

I made temporary solution https://github.com/tempesta-tech/tempesta-test/pull/360.