system tests end with error
This occurs in pylxd 2.2.10 that we are using. It seems to be addressed in 2.2.11 so upgrading should help.
_____________________ test_machines[centos/7-ubuntu/18.04] _____________________
agent_distro = 'centos/7', server_distro = 'ubuntu/18.04'
@pytest.mark.parametrize("agent_distro,server_distro", SUPPORTED_DISTROS)
def test_machines(agent_distro, server_distro):
> s, a = prepare_one_server_and_agent(agent_distro, server_distro)
tests.py:62:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
tests.py:20: in prepare_one_server_and_agent
s.setup_wait()
containers.py:171: in setup_wait
raise e
containers.py:175: in setup
self._setup(*args)
containers.py:333: in _setup
self.prepare_stork_server(pkg_ver)
containers.py:324: in prepare_stork_server
self.run('bash -c "ps axu|grep isc"')
containers.py:144: in run
result = self.cntr.execute(cmd2, env)
venv/lib/python3.6/site-packages/pylxd/models/container.py:440: in execute
manager.close_all()
venv/lib/python3.6/site-packages/ws4py/manager.py:345: in close_all
ws.close(code=code, reason=message)
venv/lib/python3.6/site-packages/ws4py/client/__init__.py:205: in close
self._write(self.stream.close(code=code, reason=reason).single(mask=True))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pylxd.models.container._CommandWebsocketClient object at 0x7f22c98c6ac8>
b = b'\x88\x99\xd5E\x02e\xd6\xacQ\x00\xa73g\x17\xf5,qE\xa6-w\x11\xa1,l\x02\xf5!m\x12\xbb'
def _write(self, b):
"""
Trying to prevent a write operation
on an already closed websocket stream.
This cannot be bullet proof but hopefully
will catch almost all use cases.
"""
if self.terminated or self.sock is None:
raise RuntimeError("Cannot send on a terminated websocket")
> self.sock.sendall(b)
E BrokenPipeError: [Errno 32] Broken pipe
venv/lib/python3.6/site-packages/ws4py/websocket.py:285: BrokenPipeError