Created
April 21, 2017 04:01
-
-
Save LukeDRussell/0636cacbbbe186d268961dc06f92c97e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[luke@cit-config-01 deployPSN]$ ./network_facts.yml -i tmy -l SwitchB -u test -k -vvvv | |
19920 1492747005.39305: starting run | |
Using /home/luke/deployPSN/ansible.cfg as config file | |
SSH password: | |
19920 1492747007.25852: Loading CacheModule 'memory' from /home/luke/ansible/lib/ansible/plugins/cache/memory.py | |
19920 1492747007.30163: Loading CallbackModule 'default' from /home/luke/ansible/lib/ansible/plugins/callback/default.py | |
Loading callback plugin default of type stdout, v2.0 from /home/luke/ansible/lib/ansible/plugins/callback/__init__.pyc | |
19920 1492747007.30271: Loading CallbackModule 'actionable' from /home/luke/ansible/lib/ansible/plugins/callback/actionable.py (found_in_cache=False, class_only=True) | |
19920 1492747007.30297: Loading CallbackModule 'context_demo' from /home/luke/ansible/lib/ansible/plugins/callback/context_demo.py (found_in_cache=False, class_only=True) | |
19920 1492747007.30321: Loading CallbackModule 'debug' from /home/luke/ansible/lib/ansible/plugins/callback/debug.py (found_in_cache=False, class_only=True) | |
19920 1492747007.30334: Loading CallbackModule 'default' from /home/luke/ansible/lib/ansible/plugins/callback/default.py (found_in_cache=False, class_only=True) | |
19920 1492747007.30372: Loading CallbackModule 'dense' from /home/luke/ansible/lib/ansible/plugins/callback/dense.py (found_in_cache=False, class_only=True) | |
19920 1492747007.33710: Loading CallbackModule 'foreman' from /home/luke/ansible/lib/ansible/plugins/callback/foreman.py (found_in_cache=False, class_only=True) | |
19920 1492747007.33869: Loading CallbackModule 'hipchat' from /home/luke/ansible/lib/ansible/plugins/callback/hipchat.py (found_in_cache=False, class_only=True) | |
19920 1492747007.33914: Loading CallbackModule 'jabber' from /home/luke/ansible/lib/ansible/plugins/callback/jabber.py (found_in_cache=False, class_only=True) | |
19920 1492747007.33940: Loading CallbackModule 'json' from /home/luke/ansible/lib/ansible/plugins/callback/json.py (found_in_cache=False, class_only=True) | |
19920 1492747007.33990: Loading CallbackModule 'junit' from /home/luke/ansible/lib/ansible/plugins/callback/junit.py (found_in_cache=False, class_only=True) | |
19920 1492747007.34021: Loading CallbackModule 'log_plays' from /home/luke/ansible/lib/ansible/plugins/callback/log_plays.py (found_in_cache=False, class_only=True) | |
19920 1492747007.34084: Loading CallbackModule 'logentries' from /home/luke/ansible/lib/ansible/plugins/callback/logentries.py (found_in_cache=False, class_only=True) | |
19920 1492747007.34127: Loading CallbackModule 'logstash' from /home/luke/ansible/lib/ansible/plugins/callback/logstash.py (found_in_cache=False, class_only=True) | |
19920 1492747007.34239: Loading CallbackModule 'mail' from /home/luke/ansible/lib/ansible/plugins/callback/mail.py (found_in_cache=False, class_only=True) | |
19920 1492747007.34268: Loading CallbackModule 'minimal' from /home/luke/ansible/lib/ansible/plugins/callback/minimal.py (found_in_cache=False, class_only=True) | |
19920 1492747007.34301: Loading CallbackModule 'oneline' from /home/luke/ansible/lib/ansible/plugins/callback/oneline.py (found_in_cache=False, class_only=True) | |
19920 1492747007.34329: Loading CallbackModule 'osx_say' from /home/luke/ansible/lib/ansible/plugins/callback/osx_say.py (found_in_cache=False, class_only=True) | |
19920 1492747007.34358: Loading CallbackModule 'profile_tasks' from /home/luke/ansible/lib/ansible/plugins/callback/profile_tasks.py (found_in_cache=False, class_only=True) | |
19920 1492747007.34391: Loading CallbackModule 'selective' from /home/luke/ansible/lib/ansible/plugins/callback/selective.py (found_in_cache=False, class_only=True) | |
19920 1492747007.34419: Loading CallbackModule 'skippy' from /home/luke/ansible/lib/ansible/plugins/callback/skippy.py (found_in_cache=False, class_only=True) | |
19920 1492747007.34455: Loading CallbackModule 'slack' from /home/luke/ansible/lib/ansible/plugins/callback/slack.py (found_in_cache=False, class_only=True) | |
19920 1492747007.34557: Loading CallbackModule 'syslog_json' from /home/luke/ansible/lib/ansible/plugins/callback/syslog_json.py (found_in_cache=False, class_only=True) | |
19920 1492747007.34592: Loading CallbackModule 'timer' from /home/luke/ansible/lib/ansible/plugins/callback/timer.py (found_in_cache=False, class_only=True) | |
19920 1492747007.34620: Loading CallbackModule 'tree' from /home/luke/ansible/lib/ansible/plugins/callback/tree.py (found_in_cache=False, class_only=True) | |
PLAYBOOK: network_facts.yml ********************************************************************************************************************************************************************************************************************************* | |
1 plays in ./network_facts.yml | |
19920 1492747007.34667: in VariableManager get_vars() | |
19920 1492747007.34693: done with get_vars() | |
19920 1492747007.34805: in VariableManager get_vars() | |
19920 1492747007.34844: done with get_vars() | |
PLAY [all] ************************************************************************************************************************************************************************************************************************************************** | |
19920 1492747007.38056: Loading StrategyModule 'linear' from /home/luke/ansible/lib/ansible/plugins/strategy/linear.py | |
19920 1492747007.38230: getting the remaining hosts for this loop | |
19920 1492747007.38249: done getting the remaining hosts for this loop | |
19920 1492747007.38264: building list of next tasks for hosts | |
19920 1492747007.38279: getting the next task for host SwitchB | |
19920 1492747007.38294: done getting next task for host SwitchB | |
19920 1492747007.38305: ^ task is: TASK: meta (flush_handlers) | |
19920 1492747007.38316: ^ state is: HOST STATE: block=1, task=1, rescue=0, always=0, run_state=ITERATING_TASKS, fail_state=FAILED_NONE, pending_setup=False, tasks child state? (None), rescue child state? (None), always child state? (None), did rescue? False, did start at task? False | |
19920 1492747007.38329: done building task lists | |
19920 1492747007.38341: counting tasks in each state of execution | |
19920 1492747007.38352: done counting tasks in each state of execution: | |
num_setups: 0 | |
num_tasks: 1 | |
num_rescue: 0 | |
num_always: 0 | |
19920 1492747007.38362: advancing hosts in ITERATING_TASKS | |
19920 1492747007.38370: starting to advance hosts | |
19920 1492747007.38382: getting the next task for host SwitchB | |
19920 1492747007.38393: done getting next task for host SwitchB | |
19920 1492747007.38406: ^ task is: TASK: meta (flush_handlers) | |
19920 1492747007.38419: ^ state is: HOST STATE: block=1, task=1, rescue=0, always=0, run_state=ITERATING_TASKS, fail_state=FAILED_NONE, pending_setup=False, tasks child state? (None), rescue child state? (None), always child state? (None), did rescue? False, did start at task? False | |
19920 1492747007.38430: done advancing hosts to next task | |
META: ran handlers | |
19920 1492747007.38760: done queuing things up, now waiting for results queue to drain | |
19920 1492747007.38776: results queue empty | |
19920 1492747007.38786: checking for any_errors_fatal | |
19920 1492747007.38796: done checking for any_errors_fatal | |
19920 1492747007.38805: checking for max_fail_percentage | |
19920 1492747007.38814: done checking for max_fail_percentage | |
19920 1492747007.38822: checking to see if all hosts have failed and the running result is not ok | |
19920 1492747007.38831: done checking to see if all hosts have failed | |
19920 1492747007.38839: getting the remaining hosts for this loop | |
19920 1492747007.38850: done getting the remaining hosts for this loop | |
19920 1492747007.38863: building list of next tasks for hosts | |
19920 1492747007.38874: getting the next task for host SwitchB | |
19920 1492747007.38888: done getting next task for host SwitchB | |
19920 1492747007.38898: ^ task is: TASK: Gather network facts | |
19920 1492747007.38908: ^ state is: HOST STATE: block=2, task=1, rescue=0, always=0, run_state=ITERATING_TASKS, fail_state=FAILED_NONE, pending_setup=False, tasks child state? (None), rescue child state? (None), always child state? (None), did rescue? False, did start at task? False | |
19920 1492747007.38917: done building task lists | |
19920 1492747007.38925: counting tasks in each state of execution | |
19920 1492747007.38935: done counting tasks in each state of execution: | |
num_setups: 0 | |
num_tasks: 1 | |
num_rescue: 0 | |
num_always: 0 | |
19920 1492747007.38948: advancing hosts in ITERATING_TASKS | |
19920 1492747007.38959: starting to advance hosts | |
19920 1492747007.38968: getting the next task for host SwitchB | |
19920 1492747007.38981: done getting next task for host SwitchB | |
19920 1492747007.38991: ^ task is: TASK: Gather network facts | |
19920 1492747007.39000: ^ state is: HOST STATE: block=2, task=1, rescue=0, always=0, run_state=ITERATING_TASKS, fail_state=FAILED_NONE, pending_setup=False, tasks child state? (None), rescue child state? (None), always child state? (None), did rescue? False, did start at task? False | |
19920 1492747007.39010: done advancing hosts to next task | |
19920 1492747007.39023: getting variables | |
19920 1492747007.39033: in VariableManager get_vars() | |
19920 1492747007.39082: done with get_vars() | |
19920 1492747007.39103: done getting variables | |
19920 1492747007.39120: sending task start callback, copying the task so we can template it temporarily | |
19920 1492747007.39131: done copying, going to template now | |
19920 1492747007.39141: done templating | |
19920 1492747007.39149: here goes the callback... | |
TASK [Gather network facts] ********************************************************************************************************************************************************************************************************************************* | |
task path: /home/luke/deployPSN/network_facts.yml:6 | |
19920 1492747007.39181: sending task start callback | |
19920 1492747007.39193: entering _queue_task() for SwitchB/ios_facts | |
19920 1492747007.39203: Creating lock for ios_facts | |
19920 1492747007.39322: worker is 1 (out of 1 available) | |
19920 1492747007.39405: exiting _queue_task() for SwitchB/ios_facts | |
19920 1492747007.39428: done queuing things up, now waiting for results queue to drain | |
19920 1492747007.39442: waiting for pending results... | |
19929 1492747007.39664: running TaskExecutor() for SwitchB/TASK: Gather network facts | |
19929 1492747007.39740: in run() | |
19929 1492747007.39833: calling self._execute() | |
19929 1492747007.40372: Loading Connection 'local' from /home/luke/ansible/lib/ansible/plugins/connection/local.py | |
19929 1492747007.40434: Loading ShellModule 'csh' from /home/luke/ansible/lib/ansible/plugins/shell/csh.py | |
19929 1492747007.40482: Loading ShellModule 'fish' from /home/luke/ansible/lib/ansible/plugins/shell/fish.py | |
19929 1492747007.40532: Loading ShellModule 'powershell' from /home/luke/ansible/lib/ansible/plugins/shell/powershell.py | |
19929 1492747007.40558: Loading ShellModule 'sh' from /home/luke/ansible/lib/ansible/plugins/shell/sh.py | |
19929 1492747007.40586: Loading ShellModule 'sh' from /home/luke/ansible/lib/ansible/plugins/shell/sh.py (found_in_cache=True, class_only=False) | |
19929 1492747007.40707: Loading ActionModule 'ios' from /home/luke/ansible/lib/ansible/plugins/action/ios.py | |
19929 1492747007.40729: starting attempt loop | |
19929 1492747007.40741: running the handler | |
<SwitchB> using connection plugin network_cli | |
19929 1492747007.40873: Loading Connection 'persistent' from /home/luke/ansible/lib/ansible/plugins/connection/persistent.py | |
19929 1492747007.40901: Loading ShellModule 'csh' from /home/luke/ansible/lib/ansible/plugins/shell/csh.py (found_in_cache=True, class_only=False) | |
19929 1492747007.40915: Loading ShellModule 'fish' from /home/luke/ansible/lib/ansible/plugins/shell/fish.py (found_in_cache=True, class_only=False) | |
19929 1492747007.40928: Loading ShellModule 'powershell' from /home/luke/ansible/lib/ansible/plugins/shell/powershell.py (found_in_cache=True, class_only=False) | |
19929 1492747007.40941: Loading ShellModule 'sh' from /home/luke/ansible/lib/ansible/plugins/shell/sh.py (found_in_cache=True, class_only=False) | |
19929 1492747007.40954: Loading ShellModule 'sh' from /home/luke/ansible/lib/ansible/plugins/shell/sh.py (found_in_cache=True, class_only=False) | |
19929 1492747007.41030: Loading Connection 'ssh' from /home/luke/ansible/lib/ansible/plugins/connection/ssh.py (found_in_cache=False, class_only=True) | |
<SwitchB> socket_path: /home/luke/.ansible/pc/589fdd5eb2 | |
open_shell() returned 0 19930 1492747007.57636: Loading Connection 'ssh' from /home/luke/ansible/lib/ansible/plugins/connection/ssh.py (found_in_cache=False, class_only=True) | |
ok | |
19929 1492747009.14958: ANSIBALLZ: Using lock for ios_facts | |
19929 1492747009.14972: ANSIBALLZ: Acquiring lock | |
19929 1492747009.14990: ANSIBALLZ: Lock acquired: 46114000 | |
19929 1492747009.15005: ANSIBALLZ: Creating module | |
19929 1492747009.26102: ANSIBALLZ: Writing module | |
19929 1492747009.26139: ANSIBALLZ: Renaming module | |
19929 1492747009.26153: ANSIBALLZ: Done creating module | |
Using module file /home/luke/ansible/lib/ansible/modules/network/ios/ios_facts.py | |
19929 1492747009.26230: _low_level_execute_command(): starting | |
19929 1492747009.26243: _low_level_execute_command(): executing: /bin/sh -c 'echo ~ && sleep 0' | |
<SwitchB> ESTABLISH LOCAL CONNECTION FOR USER: luke | |
19929 1492747009.26262: in local.exec_command() | |
<SwitchB> EXEC /bin/sh -c 'echo ~ && sleep 0' | |
19929 1492747009.26277: opening command with Popen() | |
19929 1492747009.26596: done running command with Popen() | |
19929 1492747009.26625: getting output with communicate() | |
19929 1492747009.26841: done communicating | |
19929 1492747009.26855: done with local.exec_command() | |
19929 1492747009.26871: _low_level_execute_command() done: rc=0, stdout=/home/luke | |
, stderr= | |
19929 1492747009.26889: _low_level_execute_command(): starting | |
19929 1492747009.26902: _low_level_execute_command(): executing: /bin/sh -c '( umask 77 && mkdir -p "` echo /home/luke/.ansible/tmp/ansible-tmp-1492747009.26-247387916451777 `" && echo ansible-tmp-1492747009.26-247387916451777="` echo /home/luke/.ansible/tmp/ansible-tmp-1492747009.26-247387916451777 `" ) && sleep 0' | |
19929 1492747009.26916: in local.exec_command() | |
<SwitchB> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /home/luke/.ansible/tmp/ansible-tmp-1492747009.26-247387916451777 `" && echo ansible-tmp-1492747009.26-247387916451777="` echo /home/luke/.ansible/tmp/ansible-tmp-1492747009.26-247387916451777 `" ) && sleep 0' | |
19929 1492747009.26931: opening command with Popen() | |
19929 1492747009.27216: done running command with Popen() | |
19929 1492747009.27243: getting output with communicate() | |
19929 1492747009.27623: done communicating | |
19929 1492747009.27637: done with local.exec_command() | |
19929 1492747009.27652: _low_level_execute_command() done: rc=0, stdout=ansible-tmp-1492747009.26-247387916451777=/home/luke/.ansible/tmp/ansible-tmp-1492747009.26-247387916451777 | |
, stderr= | |
19929 1492747009.27668: transferring module to remote /home/luke/.ansible/tmp/ansible-tmp-1492747009.26-247387916451777/ios_facts.py | |
<SwitchB> PUT /tmp/tmpjE3kyU TO /home/luke/.ansible/tmp/ansible-tmp-1492747009.26-247387916451777/ios_facts.py | |
19929 1492747009.27746: done transferring module to remote | |
19929 1492747009.27774: _low_level_execute_command(): starting | |
19929 1492747009.27790: _low_level_execute_command(): executing: /bin/sh -c 'chmod u+x /home/luke/.ansible/tmp/ansible-tmp-1492747009.26-247387916451777/ /home/luke/.ansible/tmp/ansible-tmp-1492747009.26-247387916451777/ios_facts.py && sleep 0' | |
19929 1492747009.27803: in local.exec_command() | |
<SwitchB> EXEC /bin/sh -c 'chmod u+x /home/luke/.ansible/tmp/ansible-tmp-1492747009.26-247387916451777/ /home/luke/.ansible/tmp/ansible-tmp-1492747009.26-247387916451777/ios_facts.py && sleep 0' | |
19929 1492747009.27818: opening command with Popen() | |
19929 1492747009.28154: done running command with Popen() | |
19929 1492747009.28182: getting output with communicate() | |
19929 1492747009.28471: done communicating | |
19929 1492747009.28486: done with local.exec_command() | |
19929 1492747009.28502: _low_level_execute_command() done: rc=0, stdout=, stderr= | |
19929 1492747009.28514: _low_level_execute_command(): starting | |
19929 1492747009.28528: _low_level_execute_command(): executing: /bin/sh -c '/usr/bin/python /home/luke/.ansible/tmp/ansible-tmp-1492747009.26-247387916451777/ios_facts.py; rm -rf "/home/luke/.ansible/tmp/ansible-tmp-1492747009.26-247387916451777/" > /dev/null 2>&1 && sleep 0' | |
19929 1492747009.28541: in local.exec_command() | |
<SwitchB> EXEC /bin/sh -c '/usr/bin/python /home/luke/.ansible/tmp/ansible-tmp-1492747009.26-247387916451777/ios_facts.py; rm -rf "/home/luke/.ansible/tmp/ansible-tmp-1492747009.26-247387916451777/" > /dev/null 2>&1 && sleep 0' | |
19929 1492747009.28555: opening command with Popen() | |
19929 1492747009.28834: done running command with Popen() | |
19929 1492747009.28860: getting output with communicate() | |
19929 1492747019.40065: done communicating | |
19929 1492747019.40092: done with local.exec_command() | |
19929 1492747019.40109: _low_level_execute_command() done: rc=0, stdout= | |
{"msg": "unable to connect to socket", "failed": true, "err": "[Errno 111] Connection refused", "invocation": {"module_args": {"username": null, "authorize": null, "ssh_keyfile": null, "auth_pass": null, "host": null, "gather_subset": ["hardware"], "timeout": null, "provider": null, "password": null, "port": null}}} | |
, stderr= | |
19929 1492747019.40138: done with _execute_module (ios_facts, {'_ansible_version': '2.3.0.0', '_ansible_selinux_special_fs': [u'fuse', u'nfs', u'vboxsf', u'ramfs', u'9p'], '_ansible_no_log': False, '_ansible_module_name': u'ios_facts', '_ansible_verbosity': 4, '_ansible_syslog_facility': u'LOG_USER', '_ansible_socket': u'/home/luke/.ansible/pc/589fdd5eb2', u'gather_subset': [u'hardware'], '_ansible_diff': False, '_ansible_debug': True, '_ansible_check_mode': False}) | |
19929 1492747019.40158: handler run complete | |
19929 1492747019.40178: attempt loop complete, returning result | |
19929 1492747019.40193: _execute() done | |
19929 1492747019.40203: dumping result to json | |
19929 1492747019.40216: done dumping result, returning | |
19929 1492747019.40231: done running TaskExecutor() for SwitchB/TASK: Gather network facts | |
19929 1492747019.40247: sending task result | |
19929 1492747019.40292: done sending task result | |
19929 1492747019.40308: WORKER PROCESS EXITING | |
19920 1492747019.41003: marking SwitchB as failed | |
19920 1492747019.41028: marking host SwitchB failed, current state: HOST STATE: block=2, task=1, rescue=0, always=0, run_state=ITERATING_TASKS, fail_state=FAILED_NONE, pending_setup=False, tasks child state? (None), rescue child state? (None), always child state? (None), did rescue? False, did start at task? False | |
19920 1492747019.41042: ^ failed state is now: HOST STATE: block=2, task=1, rescue=0, always=0, run_state=ITERATING_COMPLETE, fail_state=FAILED_TASKS, pending_setup=False, tasks child state? (None), rescue child state? (None), always child state? (None), did rescue? False, did start at task? False | |
19920 1492747019.41054: getting the next task for host SwitchB | |
19920 1492747019.41065: host SwitchB is done iterating, returning | |
fatal: [SwitchB]: FAILED! => { | |
"changed": false, | |
"err": "[Errno 111] Connection refused", | |
"failed": true, | |
"invocation": { | |
"module_args": { | |
"auth_pass": null, | |
"authorize": null, | |
"gather_subset": [ | |
"hardware" | |
], | |
"host": null, | |
"password": null, | |
"port": null, | |
"provider": null, | |
"ssh_keyfile": null, | |
"timeout": null, | |
"username": null | |
} | |
}, | |
"msg": "unable to connect to socket" | |
} | |
19920 1492747019.41115: no more pending results, returning what we have | |
19920 1492747019.41127: results queue empty | |
19920 1492747019.41136: checking for any_errors_fatal | |
19920 1492747019.41145: done checking for any_errors_fatal | |
19920 1492747019.41154: checking for max_fail_percentage | |
19920 1492747019.41163: done checking for max_fail_percentage | |
19920 1492747019.41171: checking to see if all hosts have failed and the running result is not ok | |
19920 1492747019.41186: done checking to see if all hosts have failed | |
19920 1492747019.41200: getting the remaining hosts for this loop | |
19920 1492747019.41221: done getting the remaining hosts for this loop | |
19920 1492747019.41240: building list of next tasks for hosts | |
19920 1492747019.41256: getting the next task for host SwitchB | |
19920 1492747019.41273: host SwitchB is done iterating, returning | |
19920 1492747019.41291: done building task lists | |
19920 1492747019.41307: counting tasks in each state of execution | |
19920 1492747019.41324: done counting tasks in each state of execution: | |
num_setups: 0 | |
num_tasks: 0 | |
num_rescue: 0 | |
num_always: 0 | |
19920 1492747019.41341: all hosts are done, so returning None's for all hosts | |
19920 1492747019.41358: done queuing things up, now waiting for results queue to drain | |
19920 1492747019.41374: results queue empty | |
19920 1492747019.41392: checking for any_errors_fatal | |
19920 1492747019.41408: done checking for any_errors_fatal | |
19920 1492747019.41424: checking for max_fail_percentage | |
19920 1492747019.41442: done checking for max_fail_percentage | |
19920 1492747019.41458: checking to see if all hosts have failed and the running result is not ok | |
19920 1492747019.41472: done checking to see if all hosts have failed | |
19920 1492747019.41491: getting the next task for host SwitchB | |
19920 1492747019.41506: host SwitchB is done iterating, returning | |
19920 1492747019.41522: running handlers | |
to retry, use: --limit @/home/luke/deployPSN/network_facts.retry | |
PLAY RECAP ************************************************************************************************************************************************************************************************************************************************** | |
SwitchB : ok=0 changed=0 unreachable=0 failed=1 | |
19920 1492747019.41691: RUNNING CLEANUP |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Further investigation:
It seems to be connected to the provider arguments "authorize: true" and "auth_pass: "test"".
If I explicitly tell ios_facts (or ios_config) to authorize and the auth pass to use it works. Both are required.
Note: target 3850s currently only have local credentials applied.