[Bug 278149] sysutils/py-salt: new version requires py39-tornado

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 03 Apr 2024 18:05:53 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=278149

            Bug ID: 278149
           Summary: sysutils/py-salt: new version requires py39-tornado
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: krion@FreeBSD.org
          Reporter: johan@stromnet.se
          Assignee: krion@FreeBSD.org
             Flags: maintainer-feedback?(krion@FreeBSD.org)

After upgrading py-salt from 3006.5 to 3007, neither master nor minion starts:

 # service salt_master restart
Stopping salt_master.
Waiting for PIDS: 3735.
Starting salt_master.
Traceback (most recent call last):
  File "/usr/local/bin/salt-master", line 33, in <module>
    sys.exit(load_entry_point('salt==3007.0', 'console_scripts',
'salt-master')())
  File "/usr/local/lib/python3.9/site-packages/salt/scripts.py", line 79, in
salt_master
    import salt.cli.daemons
  File "/usr/local/lib/python3.9/site-packages/salt/cli/daemons.py", line 14,
in <module>
    from salt.utils.process import HAS_PSUTIL
  File "/usr/local/lib/python3.9/site-packages/salt/utils/process.py", line 23,
in <module>
    from tornado import gen
ModuleNotFoundError: No module named 'tornado'
[ERROR   ] An un-handled exception was caught by Salt's global exception
handler:
ModuleNotFoundError: No module named 'tornado'
Traceback (most recent call last):
  File "/usr/local/bin/salt-master", line 33, in <module>
    sys.exit(load_entry_point('salt==3007.0', 'console_scripts',
'salt-master')())
  File "/usr/local/lib/python3.9/site-packages/salt/scripts.py", line 79, in
salt_master
    import salt.cli.daemons
  File "/usr/local/lib/python3.9/site-packages/salt/cli/daemons.py", line 14,
in <module>
    from salt.utils.process import HAS_PSUTIL
  File "/usr/local/lib/python3.9/site-packages/salt/utils/process.py", line 23,
in <module>
    from tornado import gen
ModuleNotFoundError: No module named 'tornado'
/usr/local/etc/rc.d/salt_master: WARNING: failed to start salt_master


After installing py39-tornado (6.3.3), both master and minion starts.
But does not work properly. Executing 'salt' on the master seems to dispatch a
job to the minion (I can see output in minion logs), but the salt CLI command
only shows errors:

[WARNING ] TCP Publish Client encountered an exception while connecting to
/var/run/salt/master/master_event_pub.ipc: StreamClosedError('Stream is
closed'), will reconnect in 1 seconds -   File "/usr/local/bin/salt", line 33,
in <module>                                                                     
    sys.exit(load_entry_point('salt==3007.0', 'console_scripts', 'salt')())     
...

Did not find anything obvious, my master config file is more or less empty with
only pillar & state path pointed out.
At this point I gave up and reverted to 3006.5, which seems to work.

-- 
You are receiving this mail because:
You are the assignee for the bug.