-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Slack engine salt-run commands return exceptions #52400
Comments
looks like we need to fix this up. Thanks @olipovch Do you know if this was occurring in previous salt versions as well? |
I can confirm that I see the same issue in 2019.2.0 and it is not present in 2018.3.4: Salt Slack.Engine: (This is the constant between both versions)
2019.2.0 - Salt Version
2019.2.0 - Slack Output
2018.3.4 - Salt Version
2018.3.4 - Slack Output
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. If this issue is closed prematurely, please leave a comment and we will gladly reopen the issue. |
Thank you for updating this issue. It is no longer marked as stale. |
Confirmed same issue on 3000. |
Looks like the methods are now being invoked with args and kwargs parameters as of 2019. Simple solution is to update the methods to pass them. Old: New |
I'm running into this issue as well - just setup slack engine. Salt: 3000
Dependency Versions:
cffi: 1.6.0
cherrypy: unknown
dateutil: Not Installed
docker-py: Not Installed
gitdb: 0.6.4
gitpython: 1.0.1
Jinja2: 2.7.2
libgit2: Not Installed
M2Crypto: 0.31.0
Mako: Not Installed
msgpack-pure: Not Installed
msgpack-python: 0.6.2
mysql-python: Not Installed
pycparser: 2.14
pycrypto: 2.6.1
pycryptodome: Not Installed
pygit2: Not Installed
Python: 2.7.5 (default, Aug 7 2019, 00:51:29)
python-gnupg: Not Installed
PyYAML: 3.11
PyZMQ: 15.3.0
smmap: 0.9.0
timelib: Not Installed
Tornado: 4.5.3
ZMQ: 4.1.4
System Versions:
dist: centos 7.7.1908 Core
locale: UTF-8
machine: x86_64
release: 3.10.0-1062.4.1.el7.x86_64
system: Linux
version: CentOS Linux 7.7.1908 Core Error output:
|
Description of Issue/Question
salt.run commands return errors when run from Slack with the Slack Engine enabled on the master.
Discovered this when reviewing a related issue: #39783.
Setup
/etc/salt/master.d/engines.conf:
/srv/salt/orch/get-os.sls:
Steps to Reproduce Issue
Attempt to run a runner function from Slack after configuring a bot:
Versions Report
The text was updated successfully, but these errors were encountered: