On Thu, 20 Apr 2023, 14:52 Raf Czlonka, <[email protected]> wrote: > Hello, > > The latest salt port update broke my current setup - I am no longer > able to communicate with Salt master: > > $ doas salt '*' test.ping > [ERROR ] Message timed out > Salt request timed out. The master is not responding. You may need > to run your command with `--async` in order to bypass the congested event > bus. With `--async`, the CLI tool will print the job id (jid) and exit > immediately without listening for responses. You can then use `salt-run > jobs.lookup_jid` to look up the results of the job in the job cache later. > > Both master and minion processes are running on this machine: > > $ ps auwx | grep -E 'salt-(master|minion)' > root 49973 93.3 1.1 54320 45452 ?? R/0 9:14AM 198:41.63 > /usr/local/bin/python3.10 /usr/local/bin/salt-minion -d -l debug > _salt 20210 5.1 1.5 62764 61064 ?? S 9:14AM 4:49.73 > /usr/local/bin/python3.10 /usr/local/bin/salt-master -d -l debug > _salt 55244 0.0 1.4 58756 56580 ?? S 9:14AM 0:17.92 > /usr/local/bin/python3.10 /usr/local/bin/salt-master -d -l debug > _salt 80396 0.0 0.9 55100 37620 ?? I 9:14AM 0:00.13 > /usr/local/bin/python3.10 /usr/local/bin/salt-master -d -l debug > _salt 24151 0.0 0.8 55676 34148 ?? I 9:14AM 0:00.12 > /usr/local/bin/python3.10 /usr/local/bin/salt-master -d -l debug > _salt 54456 0.0 0.8 55176 31240 ?? S 9:14AM 0:00.80 > /usr/local/bin/python3.10 /usr/local/bin/salt-master -d -l debug > _salt 45759 0.0 0.9 57892 35056 ?? I 9:14AM 2:09.87 > /usr/local/bin/python3.10 /usr/local/bin/salt-master -d -l debug > _salt 37443 0.0 1.6 65804 63792 ?? I 9:14AM 0:15.76 > /usr/local/bin/python3.10 /usr/local/bin/salt-master -d -l debug > _salt 64313 0.0 1.6 65284 63932 ?? I 9:14AM 0:15.56 > /usr/local/bin/python3.10 /usr/local/bin/salt-master -d -l debug > _salt 74220 0.0 1.6 65820 64028 ?? I 9:14AM 0:15.10 > /usr/local/bin/python3.10 /usr/local/bin/salt-master -d -l debug > _salt 8600 0.0 1.6 65856 64164 ?? I 9:14AM 0:15.45 > /usr/local/bin/python3.10 /usr/local/bin/salt-master -d -l debug > _salt 4688 0.0 1.6 65828 64416 ?? I 9:14AM 0:16.40 > /usr/local/bin/python3.10 /usr/local/bin/salt-master -d -l debug > _salt 30004 0.0 0.8 58760 34056 ?? S 12:30PM 0:00.20 > /usr/local/bin/python3.10 /usr/local/bin/salt-master -d -l debug > > Minion ogs point at issues with crypto: > > 2023-04-20 12:38:46,549 [salt.minion > :1161][CRITICAL][60895] Unexpected error while > connecting to salt > Traceback (most recent call last): > File "/usr/local/lib/python3.10/site-packages/salt/minion.py", > line 1135, in _connect_minion > yield minion.connect_master(failed=failed) > File > "/usr/local/lib/python3.10/site-packages/salt/ext/tornado/gen.py", line > 1056, in run > value = future.result() > File > "/usr/local/lib/python3.10/site-packages/salt/ext/tornado/concurrent.py", > line 249, in result > raise_exc_info(self._exc_info) > File "<string>", line 4, in raise_exc_info > File > "/usr/local/lib/python3.10/site-packages/salt/ext/tornado/gen.py", line > 1064, in run > yielded = self.gen.throw(*exc_info) > File "/usr/local/lib/python3.10/site-packages/salt/minion.py", > line 1361, in connect_master > master, self.pub_channel = yield self.eval_master( > File > "/usr/local/lib/python3.10/site-packages/salt/ext/tornado/gen.py", line > 1056, in run > value = future.result() > File > "/usr/local/lib/python3.10/site-packages/salt/ext/tornado/concurrent.py", > line 249, in result > raise_exc_info(self._exc_info) > File "<string>", line 4, in raise_exc_info > File > "/usr/local/lib/python3.10/site-packages/salt/ext/tornado/gen.py", line > 309, in wrapper > yielded = next(result) > File "/usr/local/lib/python3.10/site-packages/salt/minion.py", > line 815, in eval_master > pub_channel = salt.channel.client.AsyncPubChannel.factory( > File > "/usr/local/lib/python3.10/site-packages/salt/channel/client.py", line 362, > in factory > return cls(opts, transport, auth, io_loop) > File > "/usr/local/lib/python3.10/site-packages/salt/channel/client.py", line 368, > in __init__ > self.token = self.auth.gen_token(b"salt") > File "/usr/local/lib/python3.10/site-packages/salt/crypt.py", > line 915, in gen_token > return private_encrypt(self.get_keys(), clear_tok) > File "/usr/local/lib/python3.10/site-packages/salt/crypt.py", > line 318, in private_encrypt > return key.private_encrypt(message, > salt.utils.rsax931.RSA_X931_PADDING) > File "/usr/local/lib/python3.10/site-packages/M2Crypto/RSA.py", > line 78, in private_encrypt > return m2.rsa_private_encrypt(self.rsa, data, padding) > M2Crypto.RSA.RSAError: illegal or unsupported padding mode >
FWIW I'm seeing the same on my minions. Also, as a side note, master keeps complaining about being unable > to resolve IPv6 addresses despite inet4 being the only address > family being enabled both on this machine's main (and only) interface, > as well as in its resolv.conf(5): > > 2023-04-20 13:25:59,452 [salt.modules.network > :2109][ERROR ][52202] Failed to resolve address > fe80::1: [Errno 2] Host name lookup failure > > BTW, 3006 has been released a couple of days ago[0]. > > [0] https://github.com/saltstack/salt/releases/tag/v3006.0 > > Regards, > > Raf > > P.S. I'm not subscribed to ports@ mailing list so please CC me if need be. > >
