mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Fix config timeout issue for network modules (#28261)
* Fix config timeout issue for network modules * Re-enable network test * Remove unwanted persistent connection timer * Minor changes in description
This commit is contained in:
parent
016cd0691c
commit
8a6e1531b7
3 changed files with 8 additions and 24 deletions
|
@ -1279,14 +1279,6 @@ PARAMIKO_RECORD_HOST_KEYS:
|
||||||
- {key: record_host_keys, section: paramiko_connection}
|
- {key: record_host_keys, section: paramiko_connection}
|
||||||
type: boolean
|
type: boolean
|
||||||
yaml: {key: paramiko_connection.record_host_keys}
|
yaml: {key: paramiko_connection.record_host_keys}
|
||||||
PERSISTENT_CONNECT_INTERVAL:
|
|
||||||
default: 1
|
|
||||||
description: 'TODO: write it'
|
|
||||||
env: [{name: ANSIBLE_PERSISTENT_CONNECT_INTERVAL}]
|
|
||||||
ini:
|
|
||||||
- {key: connect_interval, section: persistent_connection}
|
|
||||||
type: integer
|
|
||||||
yaml: {key: persistent_connection.connect_interval}
|
|
||||||
PERSISTENT_CONTROL_PATH_DIR:
|
PERSISTENT_CONTROL_PATH_DIR:
|
||||||
default: ~/.ansible/pc
|
default: ~/.ansible/pc
|
||||||
description: 'TODO: write it'
|
description: 'TODO: write it'
|
||||||
|
@ -1294,17 +1286,9 @@ PERSISTENT_CONTROL_PATH_DIR:
|
||||||
ini:
|
ini:
|
||||||
- {key: control_path_dir, section: persistent_connection}
|
- {key: control_path_dir, section: persistent_connection}
|
||||||
yaml: {key: persistent_connection.control_path_dir}
|
yaml: {key: persistent_connection.control_path_dir}
|
||||||
PERSISTENT_CONNECT_RETRIES:
|
|
||||||
default: 30
|
|
||||||
description: 'TODO: write it'
|
|
||||||
env: [{name: ANSIBLE_PERSISTENT_CONNECT_RETRIES}]
|
|
||||||
ini:
|
|
||||||
- {key: connect_retries, section: persistent_connection}
|
|
||||||
type: integer
|
|
||||||
yaml: {key: persistent_connection.connect_retries}
|
|
||||||
PERSISTENT_CONNECT_TIMEOUT:
|
PERSISTENT_CONNECT_TIMEOUT:
|
||||||
default: 30
|
default: 30
|
||||||
description: 'TODO: write it'
|
description: This controls how long the persistent connection will remain idle before it is destroyed.
|
||||||
env: [{name: ANSIBLE_PERSISTENT_CONNECT_TIMEOUT}]
|
env: [{name: ANSIBLE_PERSISTENT_CONNECT_TIMEOUT}]
|
||||||
ini:
|
ini:
|
||||||
- {key: connect_timeout, section: persistent_connection}
|
- {key: connect_timeout, section: persistent_connection}
|
||||||
|
@ -1312,21 +1296,19 @@ PERSISTENT_CONNECT_TIMEOUT:
|
||||||
yaml: {key: persistent_connection.connect_timeout}
|
yaml: {key: persistent_connection.connect_timeout}
|
||||||
PERSISTENT_CONNECT_RETRY_TIMEOUT:
|
PERSISTENT_CONNECT_RETRY_TIMEOUT:
|
||||||
default: 15
|
default: 15
|
||||||
desc: 'TODO: write it'
|
description: This contorls the retry timeout for presistent connection to connect to the local domain socket.
|
||||||
env: [{name: ANSIBLE_PERSISTENT_CONNECT_RETRY_TIMEOUT}]
|
env: [{name: ANSIBLE_PERSISTENT_CONNECT_RETRY_TIMEOUT}]
|
||||||
ini:
|
ini:
|
||||||
- {key: connect_retry_timeout, section: persistent_connection}
|
- {key: connect_retry_timeout, section: persistent_connection}
|
||||||
value_type: integer
|
type: integer
|
||||||
vars: []
|
|
||||||
yaml: {key: persistent_connection.connect_retry_timeout}
|
yaml: {key: persistent_connection.connect_retry_timeout}
|
||||||
PERSISTENT_COMMAND_TIMEOUT:
|
PERSISTENT_COMMAND_TIMEOUT:
|
||||||
default: 10
|
default: 10
|
||||||
desc: 'TODO: write it'
|
description: This controls the amount of time to wait for response from remote device before timing out presistent connection.
|
||||||
env: [{name: ANSIBLE_PERSISTENT_COMMAND_TIMEOUT}]
|
env: [{name: ANSIBLE_PERSISTENT_COMMAND_TIMEOUT}]
|
||||||
ini:
|
ini:
|
||||||
- {key: command_timeout, section: persistent_connection}
|
- {key: command_timeout, section: persistent_connection}
|
||||||
value_type: integer
|
type: integer
|
||||||
vars: []
|
|
||||||
yaml: {key: persistent_connection.command_timeout}
|
yaml: {key: persistent_connection.command_timeout}
|
||||||
RETRY_FILES_ENABLED:
|
RETRY_FILES_ENABLED:
|
||||||
default: True
|
default: True
|
||||||
|
|
|
@ -340,7 +340,7 @@ class PlayContext(Base):
|
||||||
# general flags (should we move out?)
|
# general flags (should we move out?)
|
||||||
# for flag in ('connection', 'remote_user', 'private_key_file', 'verbosity', 'force_handlers', 'step', 'start_at_task', 'diff'):
|
# for flag in ('connection', 'remote_user', 'private_key_file', 'verbosity', 'force_handlers', 'step', 'start_at_task', 'diff'):
|
||||||
# should only be 'non plugin' flags
|
# should only be 'non plugin' flags
|
||||||
for flag in ('connection', 'private_key_file', 'verbosity', 'force_handlers', 'step', 'start_at_task', 'diff'):
|
for flag in ('connection', 'remote_user', 'private_key_file', 'verbosity', 'force_handlers', 'step', 'start_at_task', 'diff'):
|
||||||
attribute = getattr(options, flag, False)
|
attribute = getattr(options, flag, False)
|
||||||
if attribute:
|
if attribute:
|
||||||
setattr(self, flag, attribute)
|
setattr(self, flag, attribute)
|
||||||
|
|
|
@ -24,6 +24,8 @@ matrix:
|
||||||
|
|
||||||
- env: TEST=windows
|
- env: TEST=windows
|
||||||
|
|
||||||
|
- env: TEST=network
|
||||||
|
|
||||||
- env: TEST=linux/centos6/1
|
- env: TEST=linux/centos6/1
|
||||||
- env: TEST=linux/centos7/1
|
- env: TEST=linux/centos7/1
|
||||||
- env: TEST=linux/fedora24/1
|
- env: TEST=linux/fedora24/1
|
||||||
|
|
Loading…
Reference in a new issue