OpenSUSE hangs on ZeroMQ test on 2016.3
Description of Issue/Question
Running the test suite causes opensuse to hang on unit.transport.zeromq_test.AESReqTestCases.test_normalization. This only happens the 2016.3 branch on opensuse.
Setup
Need an opensuse VM with salt installed and a salt checkout.
Steps to Reproduce Issue
python tests/runtests.py -v -n unit.transport.zeromq_test
Versions Report
salt --versions-report
Salt Version:
Salt: 2015.8.8.2
Dependency Versions:
Jinja2: 2.7.3
M2Crypto: 0.22
Mako: Not Installed
PyYAML: 3.11
PyZMQ: 14.0.0
Python: 2.7.8 (default, Sep 30 2014, 15:34:38) [GCC]
RAET: Not Installed
Tornado: 4.3
ZMQ: 4.0.4
cffi: Not Installed
cherrypy: 3.3.0
dateutil: 2.5.3
gitdb: 0.6.4
gitpython: 2.0.1
ioflo: 1.5.1
libgit2: Not Installed
libnacl: Not Installed
msgpack-pure: Not Installed
msgpack-python: 0.4.0
mysql-python: 1.2.5
pycparser: Not Installed
pycrypto: 2.6.1
pygit2: Not Installed
python-gnupg: 0.3.8
smmap: 0.9.0
timelib: 0.2.4
System Versions:
dist: SuSE 13.2 x86_64
machine: x86_64
release: 4.5.0-x86_64-linode65
system: openSUSE 13.2 x86_64
@meggiebot @s0undt3ch
I kind of doubt this test itself is broken. Did the master crash prior to this running?
@cachedout Not that i'm aware of. when running it manually, if you ctrl-c to get out it continues on with the rest of the tests.
I don't think it's a broken test, but a hanging process that doesn't get cleaned up. I spoke with @s0undt3ch about it, since similar things have happened before that he fixed.
Ah. OK. Keep me posted. Thanks.
@jtand What happened with this one after the changes surrounding bootstrap?
@cachedout We ended up not changing bootstrap because the libzmq version was actually correct, but in their release repo is was named incorrectly as libzmq3. @thatch45
However, now that repo.saltstack.com is properly mirroring suse's repo with updated packages, this issue needs to be readdressed with the hanging tests. Because the updated libzmq version should now be installed.
The other thing is that we should be moving over to testing on suse leap, since opensuse 13 is nearing eol and Suse is pushing hard to move people to Leap
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
If this issue is closed prematurely, please leave a comment and we will gladly reopen the issue.
Let's reopen this ticket. I experience the same issue on Debian buster and unstable with salt 2019.2.3:
test_badload (unit.transport.test_tcp.AESReqTestCases)
[CPU:1.8%|MEM:5.0%] ... ok
test_basic (unit.transport.test_tcp.AESReqTestCases)
[CPU:0.1%|MEM:5.0%] ... ok
test_normalization (unit.transport.test_tcp.AESReqTestCases)
[CPU:0.0%|MEM:5.0%] ... 19:32:13,976 [salt.transport.tcp :636 ][ERROR ] TCPReqServerChannel close generated an exception:
Traceback (most recent call last):
File "/<<PKGBUILDDIR>>/salt/transport/tcp.py", line 634, in close
self.req_server.shutdown()
File "/<<PKGBUILDDIR>>/salt/transport/tcp.py", line 828, in shutdown
self.stop()
File "/usr/lib/python3/dist-packages/tornado4/tcpserver.py", line 236, in stop
assert sock.fileno() == fd
AssertionError
ok
test_basic (unit.transport.test_tcp.AsyncPubChannelTest) ... skipped 'Skip until we can devote time to fix this test'
test_badload (unit.transport.test_tcp.ClearReqTestCases)
[CPU:0.4%|MEM:5.0%] ... ok
test_basic (unit.transport.test_tcp.ClearReqTestCases)
[CPU:4.2%|MEM:5.0%] ... ok
test_normalization (unit.transport.test_tcp.ClearReqTestCases)
[CPU:0.0%|MEM:5.0%] ... 19:32:14,341 [salt.transport.tcp :636 ][ERROR ] TCPReqServerChannel close generated an exception:
Traceback (most recent call last):
File "/<<PKGBUILDDIR>>/salt/transport/tcp.py", line 634, in close
self.req_server.shutdown()
File "/<<PKGBUILDDIR>>/salt/transport/tcp.py", line 828, in shutdown
self.stop()
File "/usr/lib/python3/dist-packages/tornado4/tcpserver.py", line 236, in stop
assert sock.fileno() == fd
AssertionError
ok
test_message_client (unit.transport.test_tcp.SaltMessageClientCleanupTest)
[CPU:0.1%|MEM:5.0%] ... ok
test_close (unit.transport.test_tcp.SaltMessageClientPoolTest) ... ok
test_connect_all (unit.transport.test_tcp.SaltMessageClientPoolTest) ... ok
test_connect_partial (unit.transport.test_tcp.SaltMessageClientPoolTest) ... ok
test_on_recv (unit.transport.test_tcp.SaltMessageClientPoolTest) ... ok
test_send (unit.transport.test_tcp.SaltMessageClientPoolTest) ... ok
test_write_to_stream (unit.transport.test_tcp.SaltMessageClientPoolTest) ... ok
test_badload (unit.transport.test_zeromq.AESReqTestCases)
[CPU:1.5%|MEM:5.3%] ... 19:32:14,993 [tornado.application :632 ][ERROR ] Exception in callback functools.partial(<function wrap.<locals>.null_wrapper at 0x7f479f40ec80>)
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/zmq/eventloop/minitornado/ioloop.py", line 618, in _run_callback
self.add_future(ret, lambda f: f.result())
File "/usr/lib/python3/dist-packages/zmq/eventloop/minitornado/ioloop.py", line 592, in add_future
assert is_future(future)
AssertionError
19:32:16,088 [salt.transport.zeromq :744 ][ERROR ] payload and load must be a dict. Payload was: {'enc': 'aes', 'load': ''} and load was
19:32:17,108 [salt.transport.zeromq :744 ][ERROR ] payload and load must be a dict. Payload was: {'enc': 'aes', 'load': ''} and load was
19:32:17,109 [salt.transport.zeromq :744 ][ERROR ] payload and load must be a dict. Payload was: {'enc': 'aes', 'load': []} and load was []
19:32:18,128 [salt.transport.zeromq :744 ][ERROR ] payload and load must be a dict. Payload was: {'enc': 'aes', 'load': []} and load was []
19:32:18,130 [salt.transport.zeromq :744 ][ERROR ] payload and load must be a dict. Payload was: {'enc': 'aes', 'load': []} and load was []
19:32:19,149 [salt.transport.zeromq :744 ][ERROR ] payload and load must be a dict. Payload was: {'enc': 'aes', 'load': []} and load was []
ok
test_basic (unit.transport.test_zeromq.AESReqTestCases)
[CPU:0.1%|MEM:5.3%] ... ok
test_normalization (unit.transport.test_zeromq.AESReqTestCases)
[CPU:0.0%|MEM:5.3%] ...
E: Build killed with signal TERM after 150 minutes of inactivity
When I just the run hanging test case, it succeeds:
LC_ALL=C.UTF-8 python3 ./tests/runtests.py -v --no-report -n unit.transport.test_zeromq.AESReqTestCases
Then it does not hang.
Thank you for updating this issue. It is no longer marked as stale.
These tests are being rewritten to PyTest in https://github.com/saltstack/salt/pull/59172