-
Notifications
You must be signed in to change notification settings - Fork 23.7k
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
gather_timeout from ansible.cfg is ignored when running a playbook. #23753
Comments
Looks like the function get_mount_facts timed out. |
Or probably it failed to run lsblk command. Could you run this command manually on the host?
|
It is a bug. The root cause is the variable from ansible.cfg didn't take effect, but the variable from command can:
|
Dup #17316 |
I believe @i1caro 's initial analysis is correct and this is a new bug. Looking for a fix now. |
The timeout for gathering facts needs to be settable from three places (highest precedence to lowest): * programmatically * ansible.cfg (equivalent to the user specifying it explicitly when calling setup) * from the default value The code was changed in b4bd6c8 to allow programmatically and the default value to work correctly but setting via ansible.cfg/parameter was broken. This change should fix setting via ansible.cfg and adds unittests for all three cases Fixes ansible#23753
The timeout for gathering facts needs to be settable from three places (highest precedence to lowest): * programmatically * ansible.cfg (equivalent to the user specifying it explicitly when calling setup) * from the default value The code was changed in b4bd6c8 to allow programmatically and the default value to work correctly but setting via ansible.cfg/parameter was broken. This change should fix setting via ansible.cfg and adds unittests for all three cases Fixes #23753 (cherry picked from commit d088030)
The timeout for gathering facts needs to be settable from three places (highest precedence to lowest): * programmatically * ansible.cfg (equivalent to the user specifying it explicitly when calling setup) * from the default value The code was changed in b4bd6c8 to allow programmatically and the default value to work correctly but setting via ansible.cfg/parameter was broken. This change should fix setting via ansible.cfg and adds unittests for all three cases Fixes #23753
Hello, I tried with
And
I still reproduce this error. So it appears that Any ideas ? |
ISSUE TYPE
COMPONENT NAME
Timeout Module
ANSIBLE VERSION
CONFIGURATION
OS / ENVIRONMENT
Ubuntu 15
SUMMARY
The variable
gather_timeout
is being ignored. This changed from Ansible 2.2 to 2.3 since after the upgrade some servers started to timeout. In order to debug I changed the ansible code to spit the following line by. Changing facts to.Output:
This means that on the instantiation of the decorator
globals().get('GATHER_TIMEOUT')
is eitherNone
or10
. On a brief look I would sayNone
and then it's changed to the configuration value. I would say here:Which at this point is to late since the decorator was timeout was already set to 10.
STEPS TO REPRODUCE
Set
gather_timeout
in ansible.cfgEXPECTED RESULTS
Expect timeout to match
gather_timeout
value.ACTUAL RESULTS
Timeout is always 10.
The text was updated successfully, but these errors were encountered: