Hi.

Same seems to be for salt-master. I don't have usage for other salt
daemons, like salt_api, salt_proxy or salt_syndic, so I didn't test
them.

ks2# pgrep -lf salt-master
46264 python3.10: /usr/local/bin/python3.10 /usr/local/bin/salt-master -d 
ReqServer MWorker-4
72386 python3.10: /usr/local/bin/python3.10 /usr/local/bin/salt-master -d 
ReqServer MWorker-3
88457 python3.10: /usr/local/bin/python3.10 /usr/local/bin/salt-master -d 
ReqServer MWorker-2
4147 python3.10: /usr/local/bin/python3.10 /usr/local/bin/salt-master -d 
ReqServer MWorker-1
80424 python3.10: /usr/local/bin/python3.10 /usr/local/bin/salt-master -d 
ReqServer MWorker-0
80969 python3.10: /usr/local/bin/python3.10 /usr/local/bin/salt-master -d 
ReqServer MWorkerQueue
50108 python3.10: /usr/local/bin/python3.10 /usr/local/bin/salt-master -d 
FileServerUpdate
16955 python3.10: /usr/local/bin/python3.10 /usr/local/bin/salt-master -d 
ReqServer ReqServer_ProcessManager
79792 python3.10: /usr/local/bin/python3.10 /usr/local/bin/salt-master -d 
Maintenance
79559 python3.10: /usr/local/bin/python3.10 /usr/local/bin/salt-master -d 
EventPublisher
58072 python3.10: /usr/local/bin/python3.10 /usr/local/bin/salt-master -d 
PubServerChannel._publish_daemon
6693 python3.10: /usr/local/bin/python3.10 /usr/local/bin/salt-master -d 
MainProcess



On Tue, Nov 21, 2023 at 09:45:49AM +0000, Mikolaj Kucharski wrote:
> Hi all,
> 
> What I am reporting here, was tested on -stable and on -current. Below
> details are from -stable, because I discovered it first there and have
> the notes from that machine.
> 
> One of my OpenBSD 7.4 machines, because of package unrelated to salt,
> had py3-setproctitle installed on that machine and that resuled in
> following problem:
> 
> ks3# rcctl check salt_minion
> salt_minion(failed)
> 
> It seems that pexp from /etc/rc.d/salt_minion doesn't match the process
> when salt minion is started with py3-setproctitle package available.
> 
> Here are more details:
> 
> ks3# sysctl -n kern.version
> OpenBSD 7.4 (GENERIC.MP) #0: Sun Oct 22 12:13:42 MDT 2023
>     
> r...@syspatch-74-amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
> 
> ks3# cat /etc/installurl
> https://cdn.openbsd.org/pub/OpenBSD/
> 
> ks3# pkg_info -qI salt
> salt-3006.3
> 
> No py3-setproctitle installed:
> 
> ks3# ls -1 /var/db/pkg/ | grep -ci proc
> 0
> 
> ks3# pkg_add -a -i py3-setproctitle
> quirks-6.160 signed on 2023-11-19T13:55:25Z
> py3-setproctitle-1.3.2p1: ok
> 
> ks3# rcctl restart salt_minion
> salt_minion(ok)
> salt_minion(ok)
> 
> ks3# pgrep -lf salt
> 8102 python3.10: /usr/local/bin/python3.10 /usr/local/bin/salt-minion -d 
> MainProcess
> 
> ks3# rcctl check salt_minion
> salt_minion(failed)
> 
> If we wait for random_startup_delay:
> 
> ks3# grep -e ^random_startup_delay /etc/salt/minion
> random_startup_delay: 180
> 
> then proc title changes again:
> 
> ks3# pgrep -lf salt
> 8102 python3.10: /usr/local/bin/python3.10 /usr/local/bin/salt-minion -d 
> MultiMinionProcessManager MinionProcessManager
> 
> ks3# pkg_delete -c py3-setproctitle
> py3-setproctitle-1.3.2p1: ok
> Read shared items: ok
> 
> ks3# rcctl restart salt_minion
> salt_minion(ok)
> 
> ks3# pgrep -lf salt
> 78929 /usr/local/bin/python3.10 /usr/local/bin/salt-minion -d
> 8102 python3.10: /usr/local/bin/python3.10 /usr/local/bin/salt-minion -d 
> MultiMinionProcessManager MinionProcessManager
> 
> We see above orphaned previous instance of salt-minion which had
> setproctitle loaded.
> 
> ks3# kill 8102
> ks3# pgrep -lf salt
> 78929 /usr/local/bin/python3.10 /usr/local/bin/salt-minion -d
> 
> ks3# rcctl check salt_minion
> salt_minion(ok)
> 

-- 
Regards,
 Mikolaj

Reply via email to