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
maximum recursion depth exceeded while getting the str of an object #71786
Comments
Files identified in the description: If these files are incorrect, please update the |
Please create a simple reproducer so we can investigate this further. needs_info |
Unfortunately it belongs to the 'easier said than done' category. I did not succeed in isolating the failure. However, I noticed that different scenarios fail at different tasks, and hence different vars.
And the error is:
It looks as if something destroys some internal state during the execution and it will fail on sufficiently long scenarios. Please tell me how I can show stack trace of that failure to let us see some details. I could not find a way. |
Cross-ref links: https://bugs.launchpad.net/kolla-ansible/+bug/1896594 & https://review.opendev.org/752420 I managed to scope it to our Neutron role. Other tested do not exhibit this behaviour. |
This is likely a duplicate of #71920. (Well, that one is a duplicate of this because this is older, but that one has a MWE and is closer to a solution.) |
#71920 has just been closed with a PR, so I think this ticket should be closed too. |
Closing per above. |
SUMMARY
On Ansible 2.10.0rc1 (Ansible base version 2.10.1) we get: "maximum recursion depth exceeded while getting the str of an object" on CentOS 8 (running Python 3.6).
We don't have this error on Ansible before 2.10 and with Ansible 2.10 but on Debian Buster (Python 3.7) or Ubuntu Focal (Python 3.8).
The full error is attached because it includes the variable expansion that failed and that's quite lengthy (but still finite and the dictionary is not that deep).
ISSUE TYPE
COMPONENT NAME
ANSIBLE VERSION
CONFIGURATION
OS / ENVIRONMENT
CentOS 8 stream
STEPS TO REPRODUCE
Sorry, I haven't had a chance to distill a minimal test-case yet.
EXPECTED RESULTS
Variable expands just fine (like it did and can do but on other platforms).
ACTUAL RESULTS
expansion_error.txt
The text was updated successfully, but these errors were encountered: