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
Setting up a schedule while the minion is not running gives an error "Failed to add job X to schedule.".
Error logging to be more verbose, specifically stating either in the docs or in the error that the minion needs to be running before a schedule can be added.
Setup
Please be as specific as possible and give set-up details.
on-prem machine
VM (Virtualbox, KVM, etc. please specify)
VM running on a cloud service, please be explicit and add details: Amazon WorkSpaces
container (Kubernetes, Docker, containerd, etc. please specify)
or a combination, please be explicit
jails if it is FreeBSD
classic packaging
onedir packaging
used bootstrap to install
Steps to Reproduce the behavior
Disable salt-minion, systemctl stop salt-minion
Add anything to the schedule, e.g. with salt-call schedule.add foo
The schedule should be added, or a descriptive reasoning as to why it couldn't be added should be returned. Configure the schedule (in /etc/salt/minion.d/_schedule.conf) without requiring the minion to be running.
Versions Report
Salt Version:
Salt: 3006.2Python Version:
Python: 3.10.12Dependency Versions:
cffi: 1.14.6cherrypy: 18.6.1dateutil: 2.8.1docker-py: Not Installedgitdb: Not Installedgitpython: Not InstalledJinja2: 3.1.2libgit2: Not Installedlooseversion: 1.0.2M2Crypto: Not InstalledMako: Not Installedmsgpack: 1.0.2msgpack-pure: Not Installedmysql-python: Not Installedpackaging: 22.0pycparser: 2.21pycrypto: Not Installedpycryptodome: 3.9.8pygit2: Not Installedpython-gnupg: 0.4.8PyYAML: 6.0.1PyZMQ: 23.2.0relenv: 0.13.3smmap: Not Installedtimelib: 0.2.4Tornado: 4.5.3ZMQ: 4.3.4System Versions:
dist: amzn 2locale: utf-8machine: x86_64release: 5.15.amzn2.x86_64system: Linuxversion: Amazon Linux 2
The text was updated successfully, but these errors were encountered:
@Adam-Zvolanek Thanks for the report. The issue here is that the schedule state module relies on the schedule execution module which by default utilizes the event bus to add the schedule item to a running minion. With #61423 you can manage the schedule when the minion isn't running, eg. running salt-call with --local , but including offline=True when calling the module or offline: True in the state will allow you to add the jobs to the minion configuration file when the minion isn't running. I did notice that the documentation for the state module needs to be updated to include that option.
Description
Setting up a schedule while the minion is not running gives an error "Failed to add job X to schedule.".
Error logging to be more verbose, specifically stating either in the docs or in the error that the minion needs to be running before a schedule can be added.
Setup
Please be as specific as possible and give set-up details.
Steps to Reproduce the behavior
systemctl stop salt-minion
salt-call schedule.add foo
Or as a state:
Expected behavior
The schedule should be added, or a descriptive reasoning as to why it couldn't be added should be returned. Configure the schedule (in /etc/salt/minion.d/_schedule.conf) without requiring the minion to be running.
Versions Report
The text was updated successfully, but these errors were encountered: