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] file.exists + "retry"+ "parallel" in SLS causes recursion error #62344
Comments
I initially thought the issue was the combination of names and file.exists since I was sure I had used file.exists with names elsewhere, but it was actually file.managed. Realized this was not the case when my attempt to use jinja templating for a work-around also causes a recursion exceptiion: pre_tomcat:
module.run:
- service.systemctl_reload:
tomcat:
service.running:
- enable: False
- require:
- module: pre_tomcat
{%- for file in [ "/usr/cps/apache-tomcat/tomcat.pid", "/var/cps/access_log.txt", "/var/cps/catalina.log", "/var/cps/catalina.out" ] %}
{{ file }}:
file.exists:
- parallel: True
- retry:
attempts: 300
interval: 1
- require:
- service: tomcat
{%- endfor %} |
One more update: This works: re_tomcat:
module.run:
- service.systemctl_reload:
tomcat:
service.running:
- enable: False
- require:
- module: pre_tomcat
tomcat_logs:
file.exists:
- names:
- "/usr/cps/apache-tomcat/tomcat.pid"
- "/var/cps/access_log.txt"
- "/var/cps/catalina.log"
- "/var/cps/catalina.out"
- retry:
attempts: 300
interval: 1
- require:
- service: tomcat |
trace from minion:
|
Description
When using
multiplenamesfile.exists in combination with retries and parallel, a recursion error takes placeSetup
The following will cause an exception:
The following with the retry section removed will return results:
Trace
Versions Report
Salt Version:
Salt: 3004.2
Dependency Versions:
cffi: 1.9.1
cherrypy: Not Installed
dateutil: 2.8.2
docker-py: Not Installed
gitdb: Not Installed
gitpython: Not Installed
Jinja2: 2.11.1
libgit2: Not Installed
M2Crypto: 0.35.2
Mako: Not Installed
msgpack: 0.6.2
msgpack-pure: Not Installed
mysql-python: Not Installed
pycparser: 2.14
pycrypto: Not Installed
pycryptodome: Not Installed
pygit2: Not Installed
Python: 3.6.8 (default, Nov 18 2021, 10:07:16)
python-gnupg: Not Installed
PyYAML: 3.13
PyZMQ: 17.0.0
smmap: Not Installed
timelib: Not Installed
Tornado: 4.5.3
ZMQ: 4.1.4
System Versions:
dist: ol 7.9
locale: UTF-8
machine: x86_64
release: 5.4.17-2136.305.5.3.el7uek.x86_64
system: Linux
version: Oracle Linux Server 7.9
The text was updated successfully, but these errors were encountered: