-
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
state.show_low_sls not working in salt-ssh #32525
Comments
@anlutro, thanks for reporting. I am not able to reproduce this with a simple SLS. Is there anything else to try? (I get the same results without salt-ssh). root@jmoney-debian-8:~# cat /srv/salt/test.sls
testing state:
cmd.run:
- name: echo test root@jmoney-debian-8:~# salt-ssh '*' state.apply test
[INFO ] Determining pillar cache
[INFO ] Fetching file from saltenv 'base', ** done ** 'test.sls'
jmoney-debian-8:
----------
ID: testing state
Function: cmd.run
Name: echo test
Result: True
Comment: Command "echo test" run
Started: 12:10:36.972637
Duration: 12.548 ms
Changes:
----------
pid:
11653
retcode:
0
stderr:
stdout:
test
Summary for jmoney-debian-8
------------
Succeeded: 1 (changed=1)
Failed: 0
------------
Total states run: 1 root@jmoney-debian-8:~# salt-ssh '*' state.show_sls test
[INFO ] Determining pillar cache
[INFO ] Fetching file from saltenv 'base', ** skipped ** latest already in cache 'salt://test.sls'
jmoney-debian-8:
----------
testing state:
----------
__env__:
base
__sls__:
test
cmd:
|_
----------
name:
echo test
- run
|_
----------
order:
10000 root@jmoney-debian-8:~# salt-ssh '*' state.show_low_sls test
jmoney-debian-8:
|_
----------
__env__:
base
__id__:
testing state
__sls__:
test
fun:
run
name:
echo test
order:
10000
state:
cmd root@jmoney-debian-8:~# salt-ssh --versions
Salt Version:
Salt: 2016.3.0-n/a-17fdd7a
Dependency Versions:
cffi: 0.8.6
cherrypy: Not Installed
dateutil: Not Installed
gitdb: Not Installed
gitpython: Not Installed
ioflo: Not Installed
Jinja2: 2.7.3
libgit2: Not Installed
libnacl: Not Installed
M2Crypto: 0.21.1
Mako: Not Installed
msgpack-pure: Not Installed
msgpack-python: 0.4.2
mysql-python: 1.2.3
pycparser: 2.10
pycrypto: 2.6.1
pygit2: Not Installed
Python: 2.7.9 (default, Mar 1 2015, 12:57:24)
python-gnupg: Not Installed
PyYAML: 3.11
PyZMQ: 14.4.0
RAET: Not Installed
smmap: Not Installed
timelib: Not Installed
Tornado: 4.3
ZMQ: 4.0.5
System Versions:
dist: debian 8.3
machine: x86_64
release: 3.16.0-4-amd64
system: Linux
version: debian 8.3 |
Odd. I'm not doing anything more special than what you're doing. SSHing into the machine and running salt-call shows:
So I guess salt-ssh isn't transferring the file tree correctly? I do use a Saltfile + master config to make salt-ssh runnable as non-root, but can't see anything in the debug log indicating that's a problem.
|
@anlutro, that could be the source of the problem. |
Examining the debug log of a I was able to avoid the problem on one condition: the VM I was targetting with salt-ssh had to have an actual salt master installed on it. Here are the relevant parts of my Saltfile and master config, though I don't think they make a difference for this bug.
|
Also, I just tested... This problem is present in 2015.8 as well. To illustrate the salt master vs non-salt master thing - exact same configuration and sets of pillars/states used:
|
I am able to replicate this and am getting the same error. Here is my test case: /etc/salt/master:
Here is my sls file:
I can call the sls file just fine:
Also to note I still could not get it work when installingand running the salt-master on the target salt-ssh minion. I tested this on the following salt versions with the same results: |
Working with 2016.3 HEAD, I find that while
salt-ssh minion state.show_sls test
works,salt-ssh minion state.show_low_sls test
does not, complaining about "No matching sls found for 'test' in env 'base'".The text was updated successfully, but these errors were encountered: