salt icon indicating copy to clipboard operation
salt copied to clipboard

[Bug]: SLS in environment base is not available on the salt master

Open leeclay95 opened this issue 1 year ago • 2 comments

What happened?

I am building a distributed instance of security onion with a search node. After running the setup script to the search node I find that is was not showing in grid. I ran salt-key -L to see the key was not accepted for some reason so i added the node with salt-key -A. However this didnt fix the issue as now it provide the error message stated in the title. This is a brand new less than 24 hour instance with no default config changes and nothing in the initial set up guide points to making any backend config changes to get the new node to show up in the grid.

Type of salt install

Official deb

Major version

3006.x

What supported OS are you seeing the problem on? Can select multiple. (If bug appears on an unsupported OS, please open a GitHub Discussion instead)

rhel-8

salt --versions-report output

3006.9

leeclay95 avatar Sep 18 '25 17:09 leeclay95

The error Specified SLS '<name>' in environment 'base' is not available on the salt master is Salt's expected output when the requested SLS file isn't present under the master's configured file_roots / pillar_roots (see salt/pillar/__init__.py and doc/topics/pillar/index.rst). It's the documented behavior, not a Salt defect.

The context you describe — a distributed Security Onion deploy where so-setup didn't auto-accept the search-node key and you ran salt-key -A manually — points the root cause at the Security Onion bootstrap, which lays the SLS tree under /opt/so/saltstack/... as part of the same flow that accepts keys. If the key-accept half misfires the SLS-tree half typically didn't complete either. The right place to track this is the Security Onion issue tracker.

If you believe there's a Salt-side bug here, please provide:

  • the exact salt / salt-call / salt-run command that produced the error,
  • the relevant file_roots and pillar_roots from your master config,
  • the SLS file name Salt says it can't find and where you expect it to live,
  • the full output (not just the title line).

Salt 3006.9 is also several point releases behind current 3006.x; please retest on a current 3006.x package before reopening for a Salt-side fix.

dwoz avatar Jun 09 '26 08:06 dwoz

fyi: in a test env I just hit te same problem. Pulling my hairs out. But i just had to chown salt:salt /srv/salt -R :) Perhaps the same issue on your side? 🤞

jzandbergen avatar Oct 05 '26 09:10 jzandbergen