[Pkg-salt-team] Bug#1021317: salt-master: Fails to start with "zmq.error.ZMQError: Invalid argument"

Stijn Segers foss at volatilesystems.org
Sun Dec 18 21:58:34 GMT 2022


Hi!

Applying the fix linked in https://github.com/saltstack/salt/pull/62119 
resolves the ZMQ error, but unmasks another one - the 
salt.transport.base module. The base module is not part of 3004.1 (or 
.2). It was introduced with version 3005. Pulling the base.py file from 
https://github.com/saltstack/salt/tree/v3005/salt/transport doesn't 
solve it since Salt will start complaining about a missing 
'ZeroMQPubServerChannel' attribute.

I've checked the Debian package and it contains a lot of patches, so it 
looks like the Debian version is  heavily modified (diffing the 
upstream 3004.1 zeromq.py code against the Debian package zeromq.py 
confirms this).





dec 15 22:32:25 localhost salt-master[69709]: self.master.start()
dec 15 22:32:25 localhost salt-master[69709]: File 
"/usr/lib/python3/dist-packages/salt/master.py", line 711, in start
dec 15 22:32:25 localhost salt-master[69709]: chan = 
salt.transport.server.PubServerChannel.factory(opts)
dec 15 22:32:25 localhost salt-master[69709]: File 
"/usr/lib/python3/dist-packages/salt/transport/server.py", line 76, in 
factory
dec 15 22:32:25 localhost salt-master[69709]: import 
salt.transport.zeromq
dec 15 22:32:25 localhost salt-master[69709]: File 
"/usr/lib/python3/dist-packages/salt/transport/zeromq.py", line 102, in 
<module>
dec 15 22:32:25 localhost salt-master[69709]: class 
PublishClient(salt.transport.base.PublishClient):
dec 15 22:32:25 localhost salt-master[69709]: AttributeError: module 
'salt.transport' has no attribute 'base'

Cheers



More information about the pkg-salt-team mailing list