[BUG] Salt 3004 is not compatible with slackclient 2.x or higher #61308
Labels
Bug
broken, incorrect, or confusing behavior
Duplicate
Duplicate of another issue or PR - will be closed
needs-triage
slack
All salt stuff for slack
Description
Salt 3004 is not compatible with slackclient 2.x or higher but it was installed by default. Must use slackclient==1.3.1.
Per https://github.com/slackapi/python-slack-sdk/wiki/Migrating-to-2.x, the slack client usage has changed considerably. For instance, the import here no longer work and has to be changed. https://github.com/saltstack/salt/blob/master/salt/engines/slack.py#L169
The simple fix is to make sure the slackclient is pinned appropriately.
However as of today the entire legacy RTM methodology will no longer work for any new slack bots. More information about that can be found here: https://api.slack.com/changelog/2021-10-rtm-start-to-stop. This is going to require the entire slack engine and supporting libraries to be upgraded.
Setup
Install salt master 3004, configure slack engine.
Slack engine will not start. Error printed is:
Could not LazyLoad slack.start: 'slack' __virtual__ returned False: The 'slackclient' Python module could not be loaded
Please be as specific as possible and give set-up details.
Steps to Reproduce the behavior
Install salt 3004 and attempt to configure the slack engine. It will not start.
Expected behavior
slack engine should start
Versions Report
salt --versions-report
(Provided by running salt --versions-report. Please also mention any differences in master/minion versions.)The text was updated successfully, but these errors were encountered: