-
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
Schedulers Fail to Run #54741
Comments
@kjkeane Thanks for the report. This appears to be fixed in the 2019.2.1 release, if you're able to upgrade and will be available in the 2019.2.2 release which should be out in a couple of weeks. |
@garethgreenaway Thanks for the update. I did some initial testing and I am seeing a slightly different error now on Error output: 2019-09-27 19:06:13,083 [tornado.application:123 ][ERROR ][3201] Future exception was never retrieved: Traceback (most recent call last):
File "/usr/lib64/python2.7/site-packages/tornado/gen.py", line 232, in wrapper
yielded = next(result)
File "/usr/lib/python2.7/site-packages/salt/minion.py", line 2373, in handle_event
self.manage_schedule(tag, data)
File "/usr/lib/python2.7/site-packages/salt/minion.py", line 2232, in manage_schedule
self.schedule.run_job(name)
File "/usr/lib/python2.7/site-packages/salt/utils/schedule.py", line 472, in run_job
datetime.datetime.now())
File "/usr/lib/python2.7/site-packages/salt/utils/schedule.py", line 217, in _check_max_running
if not data['run']:
KeyError: u'run' Scheduler States: httpd-scheduler-present:
schedule.present:
- function: state.sls
- job_args:
- httpd
test-scheduler-present:
schedule.present:
- function: test.echo
- job_args: 'TESTING'
biweekly-schedule-present:
schedule.present:
- function: cmd.run
- job_args:
- name: 'shutdown -r +1 "Biweekly UPdates via Saltstack"'
- onlyif: 'test $((10#$(date +%W)%2)) -eq 1'
- cron: '30 1 * * 7'
Salt Version:
Salt: 2019.2.1
Dependency Versions:
cffi: Not Installed
cherrypy: Not Installed
dateutil: 1.5
docker-py: Not Installed
gitdb: Not Installed
gitpython: Not Installed
ioflo: Not Installed
Jinja2: 2.7.2
libgit2: Not Installed
libnacl: Not Installed
M2Crypto: Not Installed
Mako: Not Installed
msgpack-pure: Not Installed
msgpack-python: 0.5.6
mysql-python: Not Installed
pycparser: Not Installed
pycrypto: 2.6.1
pycryptodome: Not Installed
pygit2: Not Installed
Python: 2.7.5 (default, Apr 9 2019, 14:30:50)
python-gnupg: Not Installed
PyYAML: 3.11
PyZMQ: 15.3.0
RAET: Not Installed
smmap: Not Installed
timelib: Not Installed
Tornado: 4.2.1
ZMQ: 4.1.4
System Versions:
dist: centos 7.7.1908 Core
locale: UTF-8
machine: x86_64
release: 3.10.0-957.12.2.el7.x86_64
system: Linux
version: CentOS Linux 7.7.1908 Core
Salt Version:
Salt: 2019.2.1
Dependency Versions:
cffi: Not Installed
cherrypy: Not Installed
dateutil: 1.5
docker-py: Not Installed
gitdb: Not Installed
gitpython: Not Installed
ioflo: Not Installed
Jinja2: 2.7.2
libgit2: Not Installed
libnacl: Not Installed
M2Crypto: Not Installed
Mako: Not Installed
msgpack-pure: Not Installed
msgpack-python: 0.5.6
mysql-python: Not Installed
pycparser: Not Installed
pycrypto: 2.6.1
pycryptodome: Not Installed
pygit2: Not Installed
Python: 2.7.5 (default, Apr 9 2019, 14:30:50)
python-gnupg: Not Installed
PyYAML: 3.11
PyZMQ: 15.3.0
RAET: Not Installed
smmap: Not Installed
timelib: Not Installed
Tornado: 4.2.1
ZMQ: 4.1.4
System Versions:
dist: centos 7.7.1908 Core
locale: UTF-8
machine: x86_64
release: 3.10.0-957.12.2.el7.x86_64
system: Linux
version: CentOS Linux 7.7.1908 Core |
@kjkeane thanks for the update! I noticed that the schedule item in question doesn't have any time elements associated to with it. This might be the issue, something we didn't account for but your use case makes sense. I'll test out that scenario. |
The PR with the fix for this issue has been merged, so going to close this one out. |
Description of Issue
Schedulers are failing to run with a
KeyError: u'run
I am testing this by running it manually with
salt-call schedule.run_job test-scheduler-present -l debug
Error Ouput:
Setup
(All tests are a single Vagrant box running both Master and Minion)
Attempting to run either of these to verify scheduler functionality and all fail with the same error.
scheduler.sls
(HTTP test state)
httpd/init.sls
Steps to Reproduce Issue
salt-call schedule.run_job test-scheduler-present -l debug
/var/log/salt/minion
for error outputVersions Report
master
minion
The text was updated successfully, but these errors were encountered: