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

opts file_roots gets overwritten with pillar_roots in orchestration run #46986

github-abcde opened this Issue Apr 10, 2018 · 2 comments


None yet
3 participants

github-abcde commented Apr 10, 2018

Description of Issue/Question

Exactly as #46004, however the minimal reproduction scenario is slightly different.


master config:

renderer: jinja | yaml | gpg
  - /srv/salt/states
  - /srv/salt/pillar/base
  - /srv/salt/pillar/test
  - /srv/salt/pillar/prod


- one
- two
- three


{%- set foo = salt['saltutil.runner']('pillar.show_pillar', minion='foo') %}





Steps to Reproduce Issue

run salt-run state.orchestrate main and notice the error:

Specified SLS three in saltenv base is not available on the salt master or through a configured fileserver

I've tried to find the issue myself, but I'm stumped...tracing the contents of __opts__['file_roots'] through the various files (, fileserver/,, renderers/, amongst others) seems to indicate that once the pillar.show_pillar has been fired, the __opts__['file_roots'] in renderers/ stays filled with the pillar_roots instead of being restored to the 'regular' file_roots, which causes something to be unable to find three.sls.
I don't know why two.sls is unaffected by this.

Versions Report

Salt Version:
Salt: 2017.7.5

Dependency Versions:
cffi: Not Installed
cherrypy: Not Installed
dateutil: Not Installed
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.4.6
mysql-python: Not Installed
pycparser: Not Installed
pycrypto: 2.6.1
pycryptodome: Not Installed
pygit2: Not Installed
Python: 2.7.5 (default, Aug 4 2017, 00:39:18)
python-gnupg: Not Installed
PyYAML: 3.10
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.4.1708 Core
locale: UTF-8
machine: x86_64
release: 3.10.0-693.11.6.el7.x86_64
system: Linux
version: CentOS Linux 7.4.1708 Core


This comment has been minimized.


garethgreenaway commented Jun 29, 2018

@github-abcde I believe we've found the root cause and with the help of @terminalmage come up with a fix. If you're able to, could you try the patch in the 2017.7 pull requests and see if it fixes the issue for you?


This comment has been minimized.


github-abcde commented Jul 11, 2018

This does indeed fix the issue. Hurray! Thanks for digging to the core of this :)

@rallytime rallytime closed this Jul 11, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment