-
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
"RuntimeError: maximum recursion depth exceeded" in salt/utils/lazy.py, using Salt-SSH #32591
Comments
@AndrewPashkin, thanks for reporting. |
I can't seem to reproduce this. It does look like your prereq references a different state than the one you posted, though. Could you reduce this to a minimal test case? |
@cachedout |
@AndrewPashkin Many thanks. |
@cachedout foo:
file.managed:
- name: /tmp/foo
# If remove this, the error goes away
- unless: true
state1:
cmd.run:
- name: echo changed=yes
- stateful:
- test_name: echo changed=yes
- require:
- file: foo
hello:
cmd.run:
- name: echo hello
- prereq:
- cmd: state1
|
Ok, this is a type checking issue, the root of the problem is that the value passed to |
Did #34838 make it into 2016.11? I've just encountered this issue, and I only have a single prereq in my state– reset-networking:
cmd.run:
- name: |
for iface in $(find /sys/class/net -maxdepth 1 -type l -printf "%f\n") ; do
ip route flush dev $iface;
ip addr flush $iface;
ifdown --force $iface;
done
- order: last
- prereq:
- module: apply-networking
apply-networking:
module.run:
- name: ip.apply_network_settings
- order: last
- onchanges:
- file: /etc/network/interfaces
|
I also just encountered the issue. I'm using tons of prereqs, but will try to create a test Edit: ok turned out to be a logical failure of mine. The poisonous part was:
When changed to the following, it worked again:
|
Description of Issue/Question
I got such traceback, calling such command
sudo salt-ssh -ldebug -w "*some-expr*" state.apply test=True pillarenv='my_env' saltenv='my_env'
:I have two such states:
When I remove
prepreq
- everyting runs normally.Versions Report
$sudo salt-ssh --versions-report
Salt Version:
Salt: 2016.3.0rc2
Dependency Versions:
Jinja2: 2.7.2
M2Crypto: 0.21.1
Mako: 0.9.1
PyYAML: 3.10
PyZMQ: 14.0.1
Python: 2.7.6 (default, Jun 22 2015, 17:58:13)
RAET: Not Installed
Tornado: 4.2.1
ZMQ: 4.0.4
cffi: Not Installed
cherrypy: Not Installed
dateutil: 2.4.2
gitdb: 0.5.4
gitpython: 0.3.2 RC1
ioflo: Not Installed
libgit2: Not Installed
libnacl: Not Installed
msgpack-pure: Not Installed
msgpack-python: 0.3.0
mysql-python: Not Installed
pycparser: Not Installed
pycrypto: 2.6.1
pygit2: Not Installed
python-gnupg: Not Installed
smmap: 0.8.2
timelib: Not Installed
System Versions:
dist: LinuxMint 17.3 rosa
machine: x86_64
release: 3.19.0-32-generic
system: Linux
version: LinuxMint 17.3 rosa
The text was updated successfully, but these errors were encountered: