-
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
[BUG] 3007.1 unable to locate top.sls (or any sls) #67097
Comments
try it sounds like currently the minion is unable to access the salt masters file system. but without more context that is difficult to know for sure. also check the minions log file. |
Is there any context that would help? I'd like to figure out what the root cause on this one is.
|
yes it is helpful. but with that attitude I'm not going to tell you why and I'm done trying to help. |
It's very likely #66898. |
You do you, I wasn't giving any attitude. The only one doing that here is you. I'm genuinely interested in figuring out what's going on here.
Thanks, I'll wait and see what happen on that one. |
Hi, After upgrading my system from nixos 24.05 to 24.11 the issue occurred. The upgrade of the salt package is from 3007.0 to 3007.1. It uses python version 3.12.7. The issue blocks processing of salt states for a number of systems. I'm happy to share version report, configuration and logs in another issue report if needed for further analysis. |
Description
Salt is unable to locate any
*.sls
files when attempting to apply a state. This includestop.sls
when runningsalt 'minion' state.apply
, or any other files that you may have made and try run - such assalt 'minion' state.apply linux/all
for linux configuration that should apply to all Linux minions.Setup
To install saltstack, I used the package manager for Archlinux
After installation, I modified two lines in the salt minion configuration
I also modified three lines in the salt master configuration
Additionally, I have tested this on several different devices. I disabled the firewalls on both during testing.
Raspberry pi - Running Archlinux ARM
Intel server - Running Archlinux
These devices are both physically present here on my network.
Once configured, I enabled and started the services with systemctl. I was able to accept the key for the minion and ping it.
Steps to Reproduce the behavior
Install saltstack. Create a
top.sls
file in/srv/salt/
. Attempt to runsalt '*' state.apply
. Receive the following error.Expected behavior
I expected the salt minion to receive the top.sls from the master and begin applying the states.
Screenshots
If applicable, add screenshots to help explain your problem.
Versions Report
I've included the versions on both the raspberry pi and the Intel server. The salt master and salt minion are on the same version.
Intel server
Salt Version: Salt: 3007.1
Python Version:
Python: 3.12.7 (main, Oct 1 2024, 11:15:50) [GCC 14.2.1 20240910]
Dependency Versions:
cffi: Not Installed
cherrypy: Not Installed
dateutil: 2.9.0
docker-py: Not Installed
gitdb: Not Installed
gitpython: Not Installed
Jinja2: 3.1.4
libgit2: Not Installed
looseversion: 1.3.0
M2Crypto: 0.40.1
Mako: Not Installed
msgpack: 1.0.5
msgpack-pure: Not Installed
mysql-python: Not Installed
packaging: 24.1
pycparser: Not Installed
pycrypto: Not Installed
pycryptodome: 3.20.0
pygit2: Not Installed
python-gnupg: Not Installed
PyYAML: 6.0.2
PyZMQ: 25.1.2
relenv: Not Installed
smmap: Not Installed
timelib: Not Installed
Tornado: 6.4.1
ZMQ: 4.3.5
Salt Package Information:
Package Type: Not Installed
System Versions:
dist: arch
locale: utf-8
machine: x86_64
release: 6.11.6-arch1-1
system: Linux
version: Arch Linux
PASTE HERE
Raspberry pi
Salt Version: Salt: 3007.1
Python Version:
Python: 3.12.7 (main, Oct 11 2024, 23:49:56) [GCC 14.1.1 20240507]
Dependency Versions:
cffi: 1.17.1
cherrypy: Not Installed
dateutil: Not Installed
docker-py: Not Installed
gitdb: Not Installed
gitpython: Not Installed
Jinja2: 3.1.4
libgit2: Not Installed
looseversion: 1.3.0
M2Crypto: 0.40.1
Mako: Not Installed
msgpack: 1.0.5
msgpack-pure: Not Installed
mysql-python: Not Installed
packaging: 24.2
pycparser: 2.22
pycrypto: Not Installed
pycryptodome: 3.21.0
pygit2: Not Installed
python-gnupg: Not Installed
PyYAML: 6.0.2
PyZMQ: 25.1.2
relenv: Not Installed
smmap: Not Installed
timelib: Not Installed
Tornado: 6.4.1
ZMQ: 4.3.5
Salt Package Information:
Package Type: Not Installed
System Versions:
dist: archarm
locale: utf-8
machine: armv7l
release: 6.12.4-1-rpi
system: Linux
version: Arch Linux ARM
Additional context
This is particularly puzzling to me. Saltstack is clearly able to locate the files.
When attempting to run any state, I get an error.
This happens whether or not I clone my repo for
/etc/salt
or create a fresh/etc/salt
directory and a newtop.sls
(or any other*.sls
).salt-run fileserver.file_list
will print out the appropriate files, andsalt 'minion' state.apply filename.sls
fails to run it.If anyone has any ideas on what more I can provide, or things I can try, I'm willing to provide or try them.
The text was updated successfully, but these errors were encountered: