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
When you construct a json_template that references a non-existing (or perhaps null) parsed variable, ansible hangs. It should fail explicitly with a useful message.
When network engine tries to construct the key restart_time (link) which is null / doesn't exist because the previous regex didn't match anything, it should produce a meaningful error.
ACTUAL RESULTS
TASK [lukedrussell.cisco_ios : run command and parse output] ****************************************************************
task path: /home/4032956/repos/network-automation/roles/lukedrussell.cisco_ios/includes/run_cli.yaml:6
<snip> attempting to start connection
<snip> using connection plugin network_cli
<snip> found existing local domain socket, using it!<snip> updating play_context for connection
<snip><snip>local domain socket path is /home/4032956/.ansible/pc/c96ac4390e
Traceback (most recent call last):
File "/home/4032956/.pyenv/versions/3.7.1/lib/python3.7/multiprocessing/queues.py", line 236, in _feed
obj = _ForkingPickler.dumps(obj)
File "/home/4032956/.pyenv/versions/3.7.1/lib/python3.7/multiprocessing/reduction.py", line 51, in dumps
cls(buf, protocol).dump(obj)
TypeError: can't pickle StrictUndefined objects
The playbook hangs at this point for all hosts, and must Ctrl+C to break it.
The text was updated successfully, but these errors were encountered:
@LukeDRussell I am unable to reproduce the issue. network-engine sets the key to null if there is no match which caused the following test failure which is expected, it didn't hang for me.
I think this might be related to connection plugin, copying @Qalthos here.
ISSUE TYPE
ANSIBLE VERSION
Network OS
Not relevant
SUMMARY
When you construct a json_template that references a non-existing (or perhaps null) parsed variable, ansible hangs. It should fail explicitly with a useful message.
STEPS TO REPRODUCE
From inside ansible-network.cisco_ios
ansible-playbook tests/test_parser_templates.yaml -i tests/inventory
EXPECTED RESULTS
When network engine tries to construct the key
restart_time
(link) which is null / doesn't exist because the previous regex didn't match anything, it should produce a meaningful error.ACTUAL RESULTS
The playbook hangs at this point for all hosts, and must Ctrl+C to break it.
The text was updated successfully, but these errors were encountered: