You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[2016.3.0] Slack engine fails when directory contains deleted users #33618
P4Priority 4RIoTRelates to integration with cloud providers, hypervisors, API-based services, etc.bugbroken, incorrect, or confusing behaviorseverity-medium3rd level, incorrect or bad functionality, confusing and lacks a work aroundstale
Slack API does not return 'is_bot' key for deleted users. This leads to an KeyError. I guess it's the same error which was fixed in this other projects commit: django-slackin: fix 'is_bot' KeyError.
Setup
Have a slack engine configured in the master settings.
Steps to Reproduce Issue
Start the salt master with the new engine configuration
2016-05-30 11:00:36,336 [salt.utils.process][INFO ][9598] Process <class 'salt.engines.Engine'> (10829) died with exit status None, restarting...
2016-05-30 11:00:38,061 [salt.engines ][CRITICAL][10830] Engine <salt.loader.LazyLoader object at 0x7fc42bad7790> could not be started! Error: 'is_bot'
Versions Report
Salt Version:
Salt: 2016.3.0
Dependency Versions:
cffi: 0.8.6
cherrypy: Not Installed
dateutil: 2.2
gitdb: 0.5.4
gitpython: 0.3.2 RC1
ioflo: Not Installed
Jinja2: 2.7.3
libgit2: Not Installed
libnacl: Not Installed
M2Crypto: Not Installed
Mako: Not Installed
msgpack-pure: Not Installed
msgpack-python: 0.4.2
mysql-python: 1.2.3
pycparser: 2.10
pycrypto: 2.6.1
pygit2: Not Installed
Python: 2.7.9 (default, Mar 1 2015, 12:57:24)
python-gnupg: Not Installed
PyYAML: 3.11
PyZMQ: 14.4.0
RAET: Not Installed
smmap: 0.8.2
timelib: Not Installed
Tornado: 4.2.1
ZMQ: 4.0.5
This was corrected as part of recent pr #33601. Currently it is in develop so you can update from there but I'd suggest it get marked for a back port to a point release. @garethgreenaway
A coworker disabled a Slack user's account last night, I believe it caused my master (2016.3.2) to go down. It kept trying to restart the engine until it hit ulimit, and caused the master log to fill up the drive.
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.
P4Priority 4RIoTRelates to integration with cloud providers, hypervisors, API-based services, etc.bugbroken, incorrect, or confusing behaviorseverity-medium3rd level, incorrect or bad functionality, confusing and lacks a work aroundstale
Activity
Ch3LL commentedon May 31, 2016
@toabi looks like we could possibly add some logic to detect deleted users and use the
.getmethod instead so we don't get this key error. Thanksmchugh19 commentedon Jun 3, 2016
This was corrected as part of recent pr #33601. Currently it is in develop so you can update from there but I'd suggest it get marked for a back port to a point release. @garethgreenaway
toabi commentedon Jul 28, 2016
Will this fix make it to any release soon?
tedohayer commentedon Aug 16, 2016
A coworker disabled a Slack user's account last night, I believe it caused my master (2016.3.2) to go down. It kept trying to restart the engine until it hit ulimit, and caused the master log to fill up the drive.
Please backport to 2016.3 if possible.
toabi commentedon Dec 22, 2016
I deployed the 2016.11.1 master and it works! Jey.
Ch3LL commentedon Dec 22, 2016
Awesome glad it works. Will see about getting this backported in 2016.3 since this is still a supported branch.
stale commentedon Aug 10, 2018
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.