-
Notifications
You must be signed in to change notification settings - Fork 23.9k
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
Speedup inventory breaks include_role over with_items #30903
Comments
... wrong deserialization, should be host names .. |
@willthames Thanks for the repro, it helped me isolate the issue faster than running it through CI. The timeout issue we're seeing in CI is intermittent, and only on Python 3, but this repro triggers it and yields the same error. It occurs while deserializing a Group which has multiple Host references. During deserialization of Group, it tries to add all the Host objects to a set. However, not all of the Host objects have been deserialized yet, so they are missing attributes, causing the AttributeError. |
@willthames Can you test the fix in #31033 to see if it resolves your issue? |
hopefully fixes ansible#30903
|
hopefully bpyass srlz10n issues to fix ansible#30903
set _hosts on access if None to bpyass srlz10n issues to fix #30903
set _hosts on access if None to bpyass srlz10n issues to fix ansible#30903
ISSUE TYPE
COMPONENT NAME
include_role
ANSIBLE VERSION
CONFIGURATION
N/A
OS / ENVIRONMENT
N/A
SUMMARY
include_role combined with with_items no longer works after the inventory speedup #30587
STEPS TO REPRODUCE
playbook:
inventory file:
To see the working version (it's not needed for the failure)
EXPECTED RESULTS
With Ansible 2.4.0, I get:
ACTUAL RESULTS
At which point the playbook just hangs.
The text was updated successfully, but these errors were encountered: