[BUG] [v3000] [vRC1 Sodium] [v3001] slsutil.renderer when called through salt-call not exiting after run
See original GitHub issueDescription Running salt-call slsutil.renderer is causing a freeze after the output.
Setup
install salt and render a file with saltutil.renderer salt-call slsutil.renderer
watch it stick and have to hit ctrl+c to get a prompt back.
Steps to Reproduce the behavior
salt-call slsutil.renderer salt://test/init.sls
file doesn’t need to exist.
Expected behavior salt-call exists after modules return.
Screenshots If applicable, add screenshots to help explain your problem.
Versions Report
salt-call test.versions
local:
Salt Version:
Salt: 3001rc1
Dependency Versions:
cffi: Not Installed
cherrypy: 8.9.1
dateutil: 2.7.3
docker-py: Not Installed
gitdb: 2.0.6
gitpython: 3.0.7
Jinja2: 2.10.1
libgit2: 0.28.3
M2Crypto: Not Installed
Mako: Not Installed
msgpack-pure: Not Installed
msgpack-python: 0.6.2
mysql-python: Not Installed
pycparser: Not Installed
pycrypto: 2.6.1
pycryptodome: 3.6.1
pygit2: 1.0.3
Python: 3.8.2 (default, Apr 27 2020, 15:53:34)
python-gnupg: 0.4.5
PyYAML: 5.3.1
PyZMQ: 18.1.1
smmap: 2.0.5
timelib: Not Installed
Tornado: 4.5.3
ZMQ: 4.3.2
System Versions:
dist: ubuntu 20.04 focal
locale: utf-8
machine: x86_64
release: 5.4.0-29-generic
system: Linux
version: Ubuntu 20.04 focal
Issue Analytics
- State:
- Created 3 years ago
- Comments:27 (12 by maintainers)
Top Results From Across the Web
A debugging example of Salt Win-Repo issues
C:\Users\Administrator>salt-call slsutil.renderer ... after the software is installed (despite the error when running the state file).
Read more >salt.modules.slsutil - Salt Project Documentation
One possible use is to allow writing "map files", as are commonly seen in Salt formulas, but without tying the renderer of the...
Read more >Salt State Rendering: Can I See the Output of the Jinja Phase?
get_template . Test file: % cat test.sls {%- for x in [1, 2] -%} Test {{ x }}: cmd.run: - ...
Read more >What's new in Salt 3000 Neon
sls and chroot.highstate unpack a Salt thin archive and run it inside a chroot, so having Python installed is also necessary. Freezer.
Read more >How to examine Jinja output in Saltstack?
Check out the slsutil.renderer module. This should do what you want salt my-minion-id slsutil.renderer /srv/salt/network/init.sls 'jinja'.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Definitely something screwy going on here.
Thanks to @xcorvis I was finally able to repro this:
Running salt-call with
strace -y
, we get this:That’s where it hangs indefinitely. From the
poll
manpage we can see:So whatever we’re polling for here, we’re doing it for-ev-errrr. I’ll post updates as I find them.
@whytewolf I believe I have the fix for your hang. It works for my environment. I would appreciate it if you tested it in your environment to make sure it works for you so you don’t need to wait for another release.