You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Summary
When running a playbook with multiple tasks using loop to make vlan changes in a single RUCKUS ICX switch, sometimes I get the warning message 'TerminalModule' object has no attribute 'close'. The affected task completes, but I cannot explain the root cause. The message is triggered by the TerminalModule class, invoked by the icx.py module.
OS / Environment
Ubuntu 18.04.3 LTS
Playbook using the commscope.icx galaxy collection running against RUCKUS ICX switch, software release 9.0.00
Steps to Reproduce
Install the collection using ansible-galaxy collection install commscope.icx. Run the playbook below against a single ICX switch. Even when the switch is local to the Ansible server, with no network delays, sometimes the warning message 'TerminalModule' object has no attribute 'close' shows during a task execution:
The rate for this error is around 1% of the executed tasks. icx.py contains a class used by many vendors (the module uses different names for each vendor). icx.py seems to take care of opening and closing a terminal session, reporting error messages and moving to privilege escalation.
Actual Results
Sometimes the warning message 'TerminalModule' object has no attribute 'close' shows during a task execution. See details in section Steps to Reproduce
The text was updated successfully, but these errors were encountered:
Summary
When running a playbook with multiple tasks using loop to make vlan changes in a single RUCKUS ICX switch, sometimes I get the warning message 'TerminalModule' object has no attribute 'close'. The affected task completes, but I cannot explain the root cause. The message is triggered by the TerminalModule class, invoked by the icx.py module.
Issue Type
Bug Report
Component Name
TerminalModule class in icx.py
Ansible Version
$ ansible --version
ansible 2.10.15
config file = /etc/ansible/ansible.cfg
configured module search path = ['/etc/ansible/moduless']
ansible python module location = /usr/local/lib/python3.6/dist-packages/ansible
executable location = /usr/local/bin/ansible
python version = 3.6.9 (default, Jan 26 2021, 15:33:00) [GCC 8.4.0]
Configuration
$ ansible-config dump --only-changed
ANSIBLE_SSH_ARGS(/etc/ansible/ansible.cfg) = -o ControlMaster=auto -o ControlPersist=3600s -o PreferredAuth
ANSIBLE_SSH_CONTROL_PATH_DIR(/etc/ansible/ansible.cfg) = ~/.ansible/cp
DEFAULT_CALLBACK_WHITELIST(/etc/ansible/ansible.cfg) = ['profile_tasks']
DEFAULT_HOST_LIST(/etc/ansible/ansible.cfg) = ['/etc/ansible/hosts']
DEFAULT_MODULE_PATH(/etc/ansible/ansible.cfg) = ['/etc/ansible/moduless']
DEFAULT_STDOUT_CALLBACK(/etc/ansible/ansible.cfg) = debug
DEFAULT_TRANSPORT(/etc/ansible/ansible.cfg) = network_cli
INTERPRETER_PYTHON(/etc/ansible/ansible.cfg) = auto_silent
PARAMIKO_HOST_KEY_AUTO_ADD(/etc/ansible/ansible.cfg) = True
PERSISTENT_COMMAND_TIMEOUT(/etc/ansible/ansible.cfg) = 60
PERSISTENT_CONNECT_TIMEOUT(/etc/ansible/ansible.cfg) = 30
SYSTEM_WARNINGS(/etc/ansible/ansible.cfg) = False
OS / Environment
Ubuntu 18.04.3 LTS
Playbook using the commscope.icx galaxy collection running against RUCKUS ICX switch, software release 9.0.00
Steps to Reproduce
Install the collection using ansible-galaxy collection install commscope.icx. Run the playbook below against a single ICX switch. Even when the switch is local to the Ansible server, with no network delays, sometimes the warning message 'TerminalModule' object has no attribute 'close' shows during a task execution:
The rate for this error is around 1% of the executed tasks.
icx.py contains a class used by many vendors (the module uses different names for each vendor). icx.py seems to take care of opening and closing a terminal session, reporting error messages and moving to privilege escalation.
Playbook used in tests
Expected Results
Do not see any warning messages
Actual Results
Sometimes the warning message 'TerminalModule' object has no attribute 'close' shows during a task execution. See details in section Steps to Reproduce
The text was updated successfully, but these errors were encountered: