Closed wsf535 closed 6 years ago
Hi wsf535 , I’m sure that the ansible community and also us have had a similar problem many times. If you use cloudengine switch, the most possibility issue is that of the switch's configuration releate to ssh and netconf. So please add your device's configuration, after that we do have to check the env of ansible itself.
Best wishes.
测试的结果是只有 ansible2.2+CloudEngine-Ansiblev0.2.0的组合是好的。上面的错误是ansible2.3报的错。2.4报的错更怪。
What‘s your ansible version and CloudEngine-Ansible version?
ansible --version ansible 2.3.3.0 config file = configured module search path = Default w/o overrides python version = 2.7.5 (default, Nov 20 2015, 02:00:19) [GCC 4.8.5 20150623 (Red Hat 4.8.5-4)]
CloudEngine-Ansible-master
2017-12-25 21:33 GMT+08:00 Biao Liu notifications@github.com:
What‘s your ansible version and CloudEngine-Ansible version?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/HuaweiSwitch/CloudEngine-Ansible/issues/29#issuecomment-353869955, or mute the thread https://github.com/notifications/unsubscribe-auth/AchVEUA9zPGiELuuvcnP8G8d7CMhXErlks5tD6Q8gaJpZM4RJUKe .
@wsf535 ,不要用CloudEngine-Ansible-master,用她的分支版本,适配2.3的
@justbiaoliu 用2.3还是一样的报错。 localhost | FAILED! => { "changed": false, "failed": true, "msg": "unable to open shell. Please see: https://docs.ansible.com/ansible/network_debug_troubleshooting.html#unable-to-open-shell", "rc": 255 } [root@10-57-22-228 CloudEngine-Ansible-devel-2.3]# ansible --version ansible 2.3.0.0 config file = configured module search path = Default w/o overrides python version = 2.7.5 (default, Aug 4 2017, 00:39:18) [GCC 4.8.5 20150623 (Red Hat 4.8.5-16)] [root@10-57-22-228 CloudEngine-Ansible-devel-2.3]
参考下如下的问题,是否能解决 https://github.com/ansible/ansible/issues/27136
ANSIBLE_HOST_KEY_CHECKING=false
是在不行,能QQ或者啥的共享一下环境,我可以看下
参考上述操作了一下还是不行。QQ:136965777 可以远程我,谢谢回复
2018-01-19 9:25 GMT+08:00 Biao Liu notifications@github.com:
参考下如下的问题,是否能解决 ansible/ansible#27136 https://github.com/ansible/ansible/issues/27136
是在不行,能QQ或者啥的共享一下环境,我可以看下
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/HuaweiSwitch/CloudEngine-Ansible/issues/29#issuecomment-358837782, or mute the thread https://github.com/notifications/unsubscribe-auth/AchVETc7_4rPIbrcPKHVxXwkPuRsNJp4ks5tL-8AgaJpZM4RJUKe .
你好,我近期长期的在外出差,刚回来,方便的话,怎么联系您呢?我加您qq了
https://github.com/ansible/ansible/issues/27136
export ANSIBLE_HOST_KEY_CHECKING=false可以解决改问题
[root@10-57-22-79 ansible]# cat ~/ansible.log 2017-12-20 22:24:30,086 p=15733 u=root | 15733 1513826670.08578: starting run 2017-12-20 22:24:30,214 p=15733 u=root | No config file found; using defaults 2017-12-20 22:24:30,216 p=15733 u=root | 15733 1513826670.21614: Loading CacheModule 'memory' from /usr/lib/python2.7/site-packages/ansible-2.3.3.0-py2.7.egg/ansible/plugins/cache/memory.py 2017-12-20 22:24:30,261 p=15733 u=root | 15733 1513826670.26117: Loading CallbackModule 'minimal' from /usr/lib/python2.7/site-packages/ansible-2.3.3.0-py2.7.egg/ansible/plugins/callback/minimal.py 2017-12-20 22:24:30,261 p=15733 u=root | Loading callback plugin minimal of type stdout, v2.0 from /usr/lib/python2.7/site-packages/ansible-2.3.3.0-py2.7.egg/ansible/plugins/callback/init.pyc 2017-12-20 22:24:30,262 p=15733 u=root | 15733 1513826670.26265: Loading CallbackModule 'actionable' from /usr/lib/python2.7/site-packages/ansible-2.3.3.0-py2.7.egg/ansible/plugins/callback/actionable.py (found_in_cache=False, class_only=True) 2017-12-20 22:24:30,263 p=15733 u=root | 15733 1513826670.26296: Loading CallbackModule 'context_demo' from /usr/lib/python2.7/site-packages/ansible-2.3.3.0-py2.7.egg/ansible/plugins/callback/context_demo.py (found_in_cache=False, class_only=True) 2017-12-20 22:24:30,263 p=15733 u=root | 15733 1513826670.26330: Loading CallbackModule 'debug' from /usr/lib/python2.7/site-packages/ansible-2.3.3.0-py2.7.egg/ansible/plugins/callback/debug.py (found_in_cache=False, class_only=True) 2017-12-20 22:24:30,263 p=15733 u=root | 15733 1513826670.26365: Loading CallbackModule 'default' from /usr/lib/python2.7/site-packages/ansible-2.3.3.0-py2.7.egg/ansible/plugins/callback/default.py (found_in_cache=False, class_only=True) 2017-12-20 22:24:30,264 p=15733 u=root | 15733 1513826670.26405: Loading CallbackModule 'dense' from /usr/lib/python2.7/site-packages/ansible-2.3.3.0-py2.7.egg/ansible/plugins/callback/dense.py (found_in_cache=False, class_only=True) 2017-12-20 22:24:30,264 p=15733 u=root | 15733 1513826670.26448: Loading CallbackModule 'foreman' from /usr/lib/python2.7/site-packages/ansible-2.3.3.0-py2.7.egg/ansible/plugins/callback/foreman.py (found_in_cache=False, class_only=True) 2017-12-20 22:24:30,268 p=15733 u=root | 15733 1513826670.26839: Loading CallbackModule 'hipchat' from /usr/lib/python2.7/site-packages/ansible-2.3.3.0-py2.7.egg/ansible/plugins/callback/hipchat.py (found_in_cache=False, class_only=True) 2017-12-20 22:24:30,268 p=15733 u=root | 15733 1513826670.26886: Loading CallbackModule 'jabber' from /usr/lib/python2.7/site-packages/ansible-2.3.3.0-py2.7.egg/ansible/plugins/callback/jabber.py (found_in_cache=False, class_only=True) 2017-12-20 22:24:30,269 p=15733 u=root | 15733 1513826670.26917: Loading CallbackModule 'json' from /usr/lib/python2.7/site-packages/ansible-2.3.3.0-py2.7.egg/ansible/plugins/callback/json.py (found_in_cache=False, class_only=True) 2017-12-20 22:24:30,269 p=15733 u=root | 15733 1513826670.26959: Loading CallbackModule 'junit' from /usr/lib/python2.7/site-packages/ansible-2.3.3.0-py2.7.egg/ansible/plugins/callback/junit.py (found_in_cache=False, class_only=True) 2017-12-20 22:24:30,269 p=15733 u=root | 15733 1513826670.26993: Loading CallbackModule 'log_plays' from /usr/lib/python2.7/site-packages/ansible-2.3.3.0-py2.7.egg/ansible/plugins/callback/log_plays.py (found_in_cache=False, class_only=True) 2017-12-20 22:24:30,270 p=15733 u=root | 15733 1513826670.27044: Loading CallbackModule 'logentries' from /usr/lib/python2.7/site-packages/ansible-2.3.3.0-py2.7.egg/ansible/plugins/callback/logentries.py (found_in_cache=False, class_only=True) 2017-12-20 22:24:30,270 p=15733 u=root | 15733 1513826670.27087: Loading CallbackModule 'logstash' from /usr/lib/python2.7/site-packages/ansible-2.3.3.0-py2.7.egg/ansible/plugins/callback/logstash.py (found_in_cache=False, class_only=True) 2017-12-20 22:24:30,274 p=15733 u=root | 15733 1513826670.27460: Loading CallbackModule 'mail' from /usr/lib/python2.7/site-packages/ansible-2.3.3.0-py2.7.egg/ansible/plugins/callback/mail.py (found_in_cache=False, class_only=True) 2017-12-20 22:24:30,274 p=15733 u=root | 15733 1513826670.27481: Loading CallbackModule 'minimal' from /usr/lib/python2.7/site-packages/ansible-2.3.3.0-py2.7.egg/ansible/plugins/callback/minimal.py (found_in_cache=False, class_only=True) 2017-12-20 22:24:30,275 p=15733 u=root | 15733 1513826670.27509: Loading CallbackModule 'oneline' from /usr/lib/python2.7/site-packages/ansible-2.3.3.0-py2.7.egg/ansible/plugins/callback/oneline.py (found_in_cache=False, class_only=True) 2017-12-20 22:24:30,275 p=15733 u=root | 15733 1513826670.27554: Loading CallbackModule 'osx_say' from /usr/lib/python2.7/site-packages/ansible-2.3.3.0-py2.7.egg/ansible/plugins/callback/osx_say.py (found_in_cache=False, class_only=True) 2017-12-20 22:24:30,275 p=15733 u=root | 15733 1513826670.27586: Loading CallbackModule 'profile_tasks' from /usr/lib/python2.7/site-packages/ansible-2.3.3.0-py2.7.egg/ansible/plugins/callback/profile_tasks.py (found_in_cache=False, class_only=True) 2017-12-20 22:24:30,276 p=15733 u=root | 15733 1513826670.27623: Loading CallbackModule 'selective' from /usr/lib/python2.7/site-packages/ansible-2.3.3.0-py2.7.egg/ansible/plugins/callback/selective.py (found_in_cache=False, class_only=True) 2017-12-20 22:24:30,276 p=15733 u=root | 15733 1513826670.27646: Loading CallbackModule 'skippy' from /usr/lib/python2.7/site-packages/ansible-2.3.3.0-py2.7.egg/ansible/plugins/callback/skippy.py (found_in_cache=False, class_only=True) 2017-12-20 22:24:30,276 p=15733 u=root | 15733 1513826670.27687: Loading CallbackModule 'slack' from /usr/lib/python2.7/site-packages/ansible-2.3.3.0-py2.7.egg/ansible/plugins/callback/slack.py (found_in_cache=False, class_only=True) 2017-12-20 22:24:30,277 p=15733 u=root | 15733 1513826670.27786: Loading CallbackModule 'syslog_json' from /usr/lib/python2.7/site-packages/ansible-2.3.3.0-py2.7.egg/ansible/plugins/callback/syslog_json.py (found_in_cache=False, class_only=True) 2017-12-20 22:24:30,278 p=15733 u=root | 15733 1513826670.27810: Loading CallbackModule 'timer' from /usr/lib/python2.7/site-packages/ansible-2.3.3.0-py2.7.egg/ansible/plugins/callback/timer.py (found_in_cache=False, class_only=True) 2017-12-20 22:24:30,278 p=15733 u=root | 15733 1513826670.27841: Loading CallbackModule 'tree' from /usr/lib/python2.7/site-packages/ansible-2.3.3.0-py2.7.egg/ansible/plugins/callback/tree.py (found_in_cache=False, class_only=True) 2017-12-20 22:24:30,278 p=15733 u=root | 15733 1513826670.27853: in VariableManager get_vars() 2017-12-20 22:24:30,296 p=15733 u=root | 15733 1513826670.29684: Loading FilterModule 'core' from /usr/lib/python2.7/site-packages/ansible-2.3.3.0-py2.7.egg/ansible/plugins/filter/core.py 2017-12-20 22:24:30,297 p=15733 u=root | 15733 1513826670.29745: Loading FilterModule 'ipaddr' from /usr/lib/python2.7/site-packages/ansible-2.3.3.0-py2.7.egg/ansible/plugins/filter/ipaddr.py 2017-12-20 22:24:30,299 p=15733 u=root | 15733 1513826670.29980: Loading FilterModule 'json_query' from /usr/lib/python2.7/site-packages/ansible-2.3.3.0-py2.7.egg/ansible/plugins/filter/json_query.py 2017-12-20 22:24:30,300 p=15733 u=root | 15733 1513826670.30014: Loading FilterModule 'mathstuff' from /usr/lib/python2.7/site-packages/ansible-2.3.3.0-py2.7.egg/ansible/plugins/filter/mathstuff.py 2017-12-20 22:24:30,302 p=15733 u=root | 15733 1513826670.30197: Loading TestModule 'core' from /usr/lib/python2.7/site-packages/ansible-2.3.3.0-py2.7.egg/ansible/plugins/test/core.py 2017-12-20 22:24:30,302 p=15733 u=root | 15733 1513826670.30222: Loading TestModule 'files' from /usr/lib/python2.7/site-packages/ansible-2.3.3.0-py2.7.egg/ansible/plugins/test/files.py 2017-12-20 22:24:30,302 p=15733 u=root | 15733 1513826670.30243: Loading TestModule 'mathstuff' from /usr/lib/python2.7/site-packages/ansible-2.3.3.0-py2.7.egg/ansible/plugins/test/mathstuff.py 2017-12-20 22:24:30,305 p=15733 u=root | 15733 1513826670.30531: done with get_vars() 2017-12-20 22:24:30,330 p=15733 u=root | 15733 1513826670.33000: Loading StrategyModule 'linear' from /usr/lib/python2.7/site-packages/ansible-2.3.3.0-py2.7.egg/ansible/plugins/strategy/linear.py 2017-12-20 22:24:30,332 p=15733 u=root | 15733 1513826670.33197: getting the remaining hosts for this loop 2017-12-20 22:24:30,332 p=15733 u=root | 15733 1513826670.33217: done getting the remaining hosts for this loop 2017-12-20 22:24:30,332 p=15733 u=root | 15733 1513826670.33229: building list of next tasks for hosts 2017-12-20 22:24:30,332 p=15733 u=root | 15733 1513826670.33238: getting the next task for host localhost 2017-12-20 22:24:30,332 p=15733 u=root | 15733 1513826670.33249: done getting next task for host localhost 2017-12-20 22:24:30,332 p=15733 u=root | 15733 1513826670.33261: ^ task is: TASK: meta (flush_handlers) 2017-12-20 22:24:30,332 p=15733 u=root | 15733 1513826670.33277: ^ 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 2017-12-20 22:24:30,332 p=15733 u=root | 15733 1513826670.33291: done building task lists 2017-12-20 22:24:30,333 p=15733 u=root | 15733 1513826670.33303: counting tasks in each state of execution 2017-12-20 22:24:30,333 p=15733 u=root | 15733 1513826670.33312: done counting tasks in each state of execution: num_setups: 0 num_tasks: 1 num_rescue: 0 num_always: 0 2017-12-20 22:24:30,333 p=15733 u=root | 15733 1513826670.33325: advancing hosts in ITERATING_TASKS 2017-12-20 22:24:30,333 p=15733 u=root | 15733 1513826670.33332: starting to advance hosts 2017-12-20 22:24:30,333 p=15733 u=root | 15733 1513826670.33340: getting the next task for host localhost 2017-12-20 22:24:30,333 p=15733 u=root | 15733 1513826670.33349: done getting next task for host localhost 2017-12-20 22:24:30,333 p=15733 u=root | 15733 1513826670.33357: ^ task is: TASK: meta (flush_handlers) 2017-12-20 22:24:30,333 p=15733 u=root | 15733 1513826670.33371: ^ 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 2017-12-20 22:24:30,333 p=15733 u=root | 15733 1513826670.33383: done advancing hosts to next task 2017-12-20 22:24:30,338 p=15733 u=root | META: ran handlers 2017-12-20 22:24:30,338 p=15733 u=root | 15733 1513826670.33854: done queuing things up, now waiting for results queue to drain 2017-12-20 22:24:30,338 p=15733 u=root | 15733 1513826670.33865: results queue empty 2017-12-20 22:24:30,338 p=15733 u=root | 15733 1513826670.33876: checking for any_errors_fatal 2017-12-20 22:24:30,338 p=15733 u=root | 15733 1513826670.33885: done checking for any_errors_fatal 2017-12-20 22:24:30,338 p=15733 u=root | 15733 1513826670.33893: checking for max_fail_percentage 2017-12-20 22:24:30,339 p=15733 u=root | 15733 1513826670.33902: done checking for max_fail_percentage 2017-12-20 22:24:30,339 p=15733 u=root | 15733 1513826670.33911: checking to see if all hosts have failed and the running result is not ok 2017-12-20 22:24:30,339 p=15733 u=root | 15733 1513826670.33919: done checking to see if all hosts have failed 2017-12-20 22:24:30,339 p=15733 u=root | 15733 1513826670.33927: getting the remaining hosts for this loop 2017-12-20 22:24:30,339 p=15733 u=root | 15733 1513826670.33935: done getting the remaining hosts for this loop 2017-12-20 22:24:30,339 p=15733 u=root | 15733 1513826670.33945: building list of next tasks for hosts 2017-12-20 22:24:30,339 p=15733 u=root | 15733 1513826670.33953: getting the next task for host localhost 2017-12-20 22:24:30,339 p=15733 u=root | 15733 1513826670.33963: done getting next task for host localhost 2017-12-20 22:24:30,339 p=15733 u=root | 15733 1513826670.33974: ^ task is: TASK: ce_command 2017-12-20 22:24:30,339 p=15733 u=root | 15733 1513826670.33983: ^ 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 2017-12-20 22:24:30,339 p=15733 u=root | 15733 1513826670.33992: done building task lists 2017-12-20 22:24:30,340 p=15733 u=root | 15733 1513826670.34000: counting tasks in each state of execution 2017-12-20 22:24:30,340 p=15733 u=root | 15733 1513826670.34008: done counting tasks in each state of execution: num_setups: 0 num_tasks: 1 num_rescue: 0 num_always: 0 2017-12-20 22:24:30,340 p=15733 u=root | 15733 1513826670.34018: advancing hosts in ITERATING_TASKS 2017-12-20 22:24:30,340 p=15733 u=root | 15733 1513826670.34026: starting to advance hosts 2017-12-20 22:24:30,340 p=15733 u=root | 15733 1513826670.34034: getting the next task for host localhost 2017-12-20 22:24:30,340 p=15733 u=root | 15733 1513826670.34043: done getting next task for host localhost 2017-12-20 22:24:30,340 p=15733 u=root | 15733 1513826670.34052: ^ task is: TASK: ce_command 2017-12-20 22:24:30,340 p=15733 u=root | 15733 1513826670.34061: ^ 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 2017-12-20 22:24:30,340 p=15733 u=root | 15733 1513826670.34077: done advancing hosts to next task 2017-12-20 22:24:30,340 p=15733 u=root | 15733 1513826670.34091: getting variables 2017-12-20 22:24:30,341 p=15733 u=root | 15733 1513826670.34101: in VariableManager get_vars() 2017-12-20 22:24:30,341 p=15733 u=root | 15733 1513826670.34150: Loading FilterModule 'core' from /usr/lib/python2.7/site-packages/ansible-2.3.3.0-py2.7.egg/ansible/plugins/filter/core.py (found_in_cache=True, class_only=False) 2017-12-20 22:24:30,341 p=15733 u=root | 15733 1513826670.34161: Loading FilterModule 'ipaddr' from /usr/lib/python2.7/site-packages/ansible-2.3.3.0-py2.7.egg/ansible/plugins/filter/ipaddr.py (found_in_cache=True, class_only=False) 2017-12-20 22:24:30,341 p=15733 u=root | 15733 1513826670.34172: Loading FilterModule 'json_query' from /usr/lib/python2.7/site-packages/ansible-2.3.3.0-py2.7.egg/ansible/plugins/filter/json_query.py (found_in_cache=True, class_only=False) 2017-12-20 22:24:30,341 p=15733 u=root | 15733 1513826670.34184: Loading FilterModule 'mathstuff' from /usr/lib/python2.7/site-packages/ansible-2.3.3.0-py2.7.egg/ansible/plugins/filter/mathstuff.py (found_in_cache=True, class_only=False) 2017-12-20 22:24:30,342 p=15733 u=root | 15733 1513826670.34212: Loading TestModule 'core' from /usr/lib/python2.7/site-packages/ansible-2.3.3.0-py2.7.egg/ansible/plugins/test/core.py (found_in_cache=True, class_only=False) 2017-12-20 22:24:30,342 p=15733 u=root | 15733 1513826670.34224: Loading TestModule 'files' from /usr/lib/python2.7/site-packages/ansible-2.3.3.0-py2.7.egg/ansible/plugins/test/files.py (found_in_cache=True, class_only=False) 2017-12-20 22:24:30,342 p=15733 u=root | 15733 1513826670.34233: Loading TestModule 'mathstuff' from /usr/lib/python2.7/site-packages/ansible-2.3.3.0-py2.7.egg/ansible/plugins/test/mathstuff.py (found_in_cache=True, class_only=False) 2017-12-20 22:24:30,343 p=15733 u=root | 15733 1513826670.34332: done with get_vars() 2017-12-20 22:24:30,343 p=15733 u=root | 15733 1513826670.34352: done getting variables 2017-12-20 22:24:30,343 p=15733 u=root | 15733 1513826670.34365: sending task start callback, copying the task so we can template it temporarily 2017-12-20 22:24:30,343 p=15733 u=root | 15733 1513826670.34380: done copying, going to template now 2017-12-20 22:24:30,343 p=15733 u=root | 15733 1513826670.34393: done templating 2017-12-20 22:24:30,344 p=15733 u=root | 15733 1513826670.34401: here goes the callback... 2017-12-20 22:24:30,344 p=15733 u=root | 15733 1513826670.34414: sending task start callback 2017-12-20 22:24:30,344 p=15733 u=root | 15733 1513826670.34423: entering _queue_task() for localhost/ce_command 2017-12-20 22:24:30,344 p=15733 u=root | 15733 1513826670.34432: Creating lock for ce_command 2017-12-20 22:24:30,346 p=15733 u=root | 15733 1513826670.34575: worker is 1 (out of 1 available) 2017-12-20 22:24:30,346 p=15733 u=root | 15733 1513826670.34652: exiting _queue_task() for localhost/ce_command 2017-12-20 22:24:30,346 p=15733 u=root | 15733 1513826670.34678: done queuing things up, now waiting for results queue to drain 2017-12-20 22:24:30,346 p=15733 u=root | 15733 1513826670.34690: waiting for pending results... 2017-12-20 22:24:30,350 p=15733 u=root | 15741 1513826670.35018: running TaskExecutor() for localhost/TASK: ce_command 2017-12-20 22:24:30,350 p=15733 u=root | 15741 1513826670.35089: in run() - task fa11b077-a300-741b-a405-000000000006 2017-12-20 22:24:30,351 p=15733 u=root | 15741 1513826670.35137: calling self._execute() 2017-12-20 22:24:30,356 p=15733 u=root | 15741 1513826670.35642: Loading Connection 'local' from /usr/lib/python2.7/site-packages/ansible-2.3.3.0-py2.7.egg/ansible/plugins/connection/local.py 2017-12-20 22:24:30,357 p=15733 u=root | 15741 1513826670.35704: Loading ShellModule 'csh' from /usr/lib/python2.7/site-packages/ansible-2.3.3.0-py2.7.egg/ansible/plugins/shell/csh.py 2017-12-20 22:24:30,357 p=15733 u=root | 15741 1513826670.35745: Loading ShellModule 'fish' from /usr/lib/python2.7/site-packages/ansible-2.3.3.0-py2.7.egg/ansible/plugins/shell/fish.py 2017-12-20 22:24:30,358 p=15733 u=root | 15741 1513826670.35810: Loading ShellModule 'powershell' from /usr/lib/python2.7/site-packages/ansible-2.3.3.0-py2.7.egg/ansible/plugins/shell/powershell.py 2017-12-20 22:24:30,358 p=15733 u=root | 15741 1513826670.35847: Loading ShellModule 'sh' from /usr/lib/python2.7/site-packages/ansible-2.3.3.0-py2.7.egg/ansible/plugins/shell/sh.py 2017-12-20 22:24:30,359 p=15733 u=root | 15741 1513826670.35891: Loading ShellModule 'sh' from /usr/lib/python2.7/site-packages/ansible-2.3.3.0-py2.7.egg/ansible/plugins/shell/sh.py (found_in_cache=True, class_only=False) 2017-12-20 22:24:30,402 p=15733 u=root | 15741 1513826670.40263: Loading ActionModule 'ce' from /usr/lib/python2.7/site-packages/ansible-2.3.3.0-py2.7.egg/ansible/plugins/action/ce.py 2017-12-20 22:24:30,402 p=15733 u=root | 15741 1513826670.40294: starting attempt loop 2017-12-20 22:24:30,403 p=15733 u=root | 15741 1513826670.40306: running the handler 2017-12-20 22:24:30,404 p=15733 u=root | 15741 1513826670.40428: Loading Connection 'persistent' from /usr/lib/python2.7/site-packages/ansible-2.3.3.0-py2.7.egg/ansible/plugins/connection/persistent.py 2017-12-20 22:24:30,404 p=15733 u=root | 15741 1513826670.40459: Loading ShellModule 'csh' from /usr/lib/python2.7/site-packages/ansible-2.3.3.0-py2.7.egg/ansible/plugins/shell/csh.py (found_in_cache=True, class_only=False) 2017-12-20 22:24:30,404 p=15733 u=root | 15741 1513826670.40475: Loading ShellModule 'fish' from /usr/lib/python2.7/site-packages/ansible-2.3.3.0-py2.7.egg/ansible/plugins/shell/fish.py (found_in_cache=True, class_only=False) 2017-12-20 22:24:30,404 p=15733 u=root | 15741 1513826670.40490: Loading ShellModule 'powershell' from /usr/lib/python2.7/site-packages/ansible-2.3.3.0-py2.7.egg/ansible/plugins/shell/powershell.py (found_in_cache=True, class_only=False) 2017-12-20 22:24:30,405 p=15733 u=root | 15741 1513826670.40506: Loading ShellModule 'sh' from /usr/lib/python2.7/site-packages/ansible-2.3.3.0-py2.7.egg/ansible/plugins/shell/sh.py (found_in_cache=True, class_only=False) 2017-12-20 22:24:30,405 p=15733 u=root | 15741 1513826670.40521: Loading ShellModule 'sh' from /usr/lib/python2.7/site-packages/ansible-2.3.3.0-py2.7.egg/ansible/plugins/shell/sh.py (found_in_cache=True, class_only=False) 2017-12-20 22:24:30,405 p=15733 u=root | 15741 1513826670.40585: Loading Connection 'ssh' from /usr/lib/python2.7/site-packages/ansible-2.3.3.0-py2.7.egg/ansible/plugins/connection/ssh.py (found_in_cache=False, class_only=True) 2017-12-20 22:24:30,605 p=15742 u=root | 15742 1513826670.60514: Loading Connection 'ssh' from /usr/lib/python2.7/site-packages/ansible-2.3.3.0-py2.7.egg/ansible/plugins/connection/ssh.py (found_in_cache=False, class_only=True) 2017-12-20 22:24:30,608 p=15742 u=root | creating new control socket for host 172.16.200.6:22 as user shanfu.wu 2017-12-20 22:24:30,608 p=15742 u=root | control socket path is /root/.ansible/pc/0ebb0f6ca7 2017-12-20 22:24:30,609 p=15742 u=root | current working directory is /etc/ansible 2017-12-20 22:24:30,609 p=15742 u=root | using connection plugin network_cli 15748 1513826670.63937: Loading Connection 'network_cli' from /usr/lib/python2.7/site-packages/ansible-2.3.3.0-py2.7.egg/ansible/plugins/connection/network_cli.py 2017-12-20 22:24:30,639 p=15742 u=root | 15748 1513826670.63937: Loading Connection 'network_cli' from /usr/lib/python2.7/site-packages/ansible-2.3.3.0-py2.7.egg/ansible/plugins/connection/network_cli.py 15748 1513826670.64084: Loading ShellModule 'csh' from /usr/lib/python2.7/site-packages/ansible-2.3.3.0-py2.7.egg/ansible/plugins/shell/csh.py 2017-12-20 22:24:30,640 p=15742 u=root | 15748 1513826670.64084: Loading ShellModule 'csh' from /usr/lib/python2.7/site-packages/ansible-2.3.3.0-py2.7.egg/ansible/plugins/shell/csh.py 15748 1513826670.64123: Loading ShellModule 'fish' from /usr/lib/python2.7/site-packages/ansible-2.3.3.0-py2.7.egg/ansible/plugins/shell/fish.py 2017-12-20 22:24:30,641 p=15742 u=root | 15748 1513826670.64123: Loading ShellModule 'fish' from /usr/lib/python2.7/site-packages/ansible-2.3.3.0-py2.7.egg/ansible/plugins/shell/fish.py 15748 1513826670.64182: Loading ShellModule 'powershell' from /usr/lib/python2.7/site-packages/ansible-2.3.3.0-py2.7.egg/ansible/plugins/shell/powershell.py 2017-12-20 22:24:30,641 p=15742 u=root | 15748 1513826670.64182: Loading ShellModule 'powershell' from /usr/lib/python2.7/site-packages/ansible-2.3.3.0-py2.7.egg/ansible/plugins/shell/powershell.py 15748 1513826670.64206: Loading ShellModule 'sh' from /usr/lib/python2.7/site-packages/ansible-2.3.3.0-py2.7.egg/ansible/plugins/shell/sh.py 2017-12-20 22:24:30,642 p=15742 u=root | 15748 1513826670.64206: Loading ShellModule 'sh' from /usr/lib/python2.7/site-packages/ansible-2.3.3.0-py2.7.egg/ansible/plugins/shell/sh.py 15748 1513826670.64235: Loading ShellModule 'sh' from /usr/lib/python2.7/site-packages/ansible-2.3.3.0-py2.7.egg/ansible/plugins/shell/sh.py (found_in_cache=True, class_only=False) 2017-12-20 22:24:30,642 p=15742 u=root | 15748 1513826670.64235: Loading ShellModule 'sh' from /usr/lib/python2.7/site-packages/ansible-2.3.3.0-py2.7.egg/ansible/plugins/shell/sh.py (found_in_cache=True, class_only=False) 2017-12-20 22:24:30,796 paramiko.transport starting thread (client mode): 0x19cb7d0L 2017-12-20 22:24:30,797 paramiko.transport Local version/idstring: SSH-2.0-paramiko_2.1.1 2017-12-20 22:24:31,002 paramiko.transport Remote version/idstring: SSH-2.0-- 2017-12-20 22:24:31,003 paramiko.transport Connected (version 2.0, client -) 2017-12-20 22:24:31,006 paramiko.transport kex algos:[u'diffie-hellman-group1-sha1', u'ecdh-sha2-nistp521', u'ecdh-sha2-nistp384', u'ecdh-sha2-nistp256', u'diffie-hellman-group-exchange-sha256', u'diffie-hellman-group-exchange-sha1', u'sm2kep-sha2-nistp256'] server key:[u'ssh-dss', u'ssh-rsa', u'ecdsa-sha2-nistp521'] client encrypt:[u'aes256-ctr', u'aes128-ctr', u'aes256-cbc', u'aes128-cbc', u'blowfish-cbc', u'3des-cbc'] server encrypt:[u'aes256-ctr', u'aes128-ctr', u'aes256-cbc', u'aes128-cbc', u'blowfish-cbc', u'3des-cbc'] client mac:[u'hmac-sha2-256', u'hmac-sha2-256-96', u'hmac-sha1', u'hmac-sha1-96'] server mac:[u'hmac-sha2-256', u'hmac-sha2-256-96', u'hmac-sha1', u'hmac-sha1-96'] client compress:[u'none', u'zlib'] server compress:[u'none', u'zlib'] client lang:[u''] server lang:[u''] kex follows?False 2017-12-20 22:24:31,006 paramiko.transport Kex agreed: diffie-hellman-group1-sha1 2017-12-20 22:24:31,006 paramiko.transport Cipher agreed: aes128-ctr 2017-12-20 22:24:31,007 paramiko.transport MAC agreed: hmac-sha2-256 2017-12-20 22:24:31,007 paramiko.transport Compression agreed: none 2017-12-20 22:24:31,293 paramiko.transport kex engine KexGroup1 specified hash_algo
2017-12-20 22:24:31,293 paramiko.transport Switch to new keys ...
2017-12-20 22:24:31,298 p=15742 u=root | connecting to host 172.16.200.6 returned an error
2017-12-20 22:24:31,298 p=15742 u=root | (14, 'Bad address')
2017-12-20 22:24:31,394 paramiko.transport EOF in transport thread
2017-12-20 22:25:00,637 p=15742 u=root | number of connection attempts exceeded, unable to connect to control socket
2017-12-20 22:25:00,637 p=15742 u=root | persistent_connect_interval=1, persistent_connect_retries=30
2017-12-20 22:25:00,653 p=15733 u=root | open_shell() returned 255 15742 1513826670.60514: Loading Connection 'ssh' from /usr/lib/python2.7/site-packages/ansible-2.3.3.0-py2.7.egg/ansible/plugins/connection/ssh.py (found_in_cache=False, class_only=True)
failed to connect to control socket
2017-12-20 22:25:00,654 p=15733 u=root | 15741 1513826700.65419: handler run complete
2017-12-20 22:25:00,654 p=15733 u=root | 15741 1513826700.65438: attempt loop complete, returning result
2017-12-20 22:25:00,654 p=15733 u=root | 15741 1513826700.65450: _execute() done
2017-12-20 22:25:00,654 p=15733 u=root | 15741 1513826700.65461: dumping result to json
2017-12-20 22:25:00,654 p=15733 u=root | 15741 1513826700.65476: done dumping result, returning
2017-12-20 22:25:00,655 p=15733 u=root | 15741 1513826700.65497: done running TaskExecutor() for localhost/TASK: ce_command [fa11b077-a300-741b-a405-000000000006]
2017-12-20 22:25:00,655 p=15733 u=root | 15741 1513826700.65516: sending task result for task fa11b077-a300-741b-a405-000000000006
2017-12-20 22:25:00,656 p=15733 u=root | 15741 1513826700.65569: done sending task result for task fa11b077-a300-741b-a405-000000000006
2017-12-20 22:25:00,656 p=15733 u=root | 15741 1513826700.65612: WORKER PROCESS EXITING
2017-12-20 22:25:00,657 p=15733 u=root | 15733 1513826700.65747: marking localhost as failed
2017-12-20 22:25:00,657 p=15733 u=root | 15733 1513826700.65780: marking host localhost 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
2017-12-20 22:25:00,658 p=15733 u=root | 15733 1513826700.65795: ^ 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
2017-12-20 22:25:00,658 p=15733 u=root | 15733 1513826700.65807: getting the next task for host localhost
2017-12-20 22:25:00,658 p=15733 u=root | 15733 1513826700.65820: host localhost is done iterating, returning
2017-12-20 22:25:00,658 p=15733 u=root | localhost | FAILED! => {
"changed": false,
"failed": true,
"msg": "unable to open shell. Please see: https://docs.ansible.com/ansible/network_debug_troubleshooting.html#unable-to-open-shell",
"rc": 255
}
2017-12-20 22:25:00,658 p=15733 u=root | 15733 1513826700.65861: no more pending results, returning what we have
2017-12-20 22:25:00,658 p=15733 u=root | 15733 1513826700.65879: results queue empty
2017-12-20 22:25:00,658 p=15733 u=root | 15733 1513826700.65892: checking for any_errors_fatal
2017-12-20 22:25:00,659 p=15733 u=root | 15733 1513826700.65901: done checking for any_errors_fatal
2017-12-20 22:25:00,659 p=15733 u=root | 15733 1513826700.65912: checking for max_fail_percentage
2017-12-20 22:25:00,659 p=15733 u=root | 15733 1513826700.65919: done checking for max_fail_percentage
2017-12-20 22:25:00,659 p=15733 u=root | 15733 1513826700.65928: checking to see if all hosts have failed and the running result is not ok
2017-12-20 22:25:00,659 p=15733 u=root | 15733 1513826700.65936: done checking to see if all hosts have failed
2017-12-20 22:25:00,659 p=15733 u=root | 15733 1513826700.65945: getting the remaining hosts for this loop
2017-12-20 22:25:00,659 p=15733 u=root | 15733 1513826700.65958: done getting the remaining hosts for this loop
2017-12-20 22:25:00,659 p=15733 u=root | 15733 1513826700.65970: building list of next tasks for hosts
2017-12-20 22:25:00,659 p=15733 u=root | 15733 1513826700.65981: getting the next task for host localhost
2017-12-20 22:25:00,659 p=15733 u=root | 15733 1513826700.65990: host localhost is done iterating, returning
2017-12-20 22:25:00,660 p=15733 u=root | 15733 1513826700.65998: done building task lists
2017-12-20 22:25:00,660 p=15733 u=root | 15733 1513826700.66005: counting tasks in each state of execution
2017-12-20 22:25:00,660 p=15733 u=root | 15733 1513826700.66013: done counting tasks in each state of execution:
num_setups: 0
num_tasks: 0
num_rescue: 0
num_always: 0
2017-12-20 22:25:00,660 p=15733 u=root | 15733 1513826700.66021: all hosts are done, so returning None's for all hosts
2017-12-20 22:25:00,660 p=15733 u=root | 15733 1513826700.66029: done queuing things up, now waiting for results queue to drain
2017-12-20 22:25:00,660 p=15733 u=root | 15733 1513826700.66037: results queue empty
2017-12-20 22:25:00,660 p=15733 u=root | 15733 1513826700.66047: checking for any_errors_fatal
2017-12-20 22:25:00,660 p=15733 u=root | 15733 1513826700.66056: done checking for any_errors_fatal
2017-12-20 22:25:00,660 p=15733 u=root | 15733 1513826700.66064: checking for max_fail_percentage
2017-12-20 22:25:00,660 p=15733 u=root | 15733 1513826700.66075: done checking for max_fail_percentage
2017-12-20 22:25:00,660 p=15733 u=root | 15733 1513826700.66085: checking to see if all hosts have failed and the running result is not ok
2017-12-20 22:25:00,660 p=15733 u=root | 15733 1513826700.66093: done checking to see if all hosts have failed
2017-12-20 22:25:00,661 p=15733 u=root | 15733 1513826700.66103: getting the next task for host localhost
2017-12-20 22:25:00,661 p=15733 u=root | 15733 1513826700.66111: host localhost is done iterating, returning
2017-12-20 22:25:00,661 p=15733 u=root | 15733 1513826700.66119: running handlers
2017-12-20 22:25:00,661 p=15733 u=root | 15733 1513826700.66191: RUNNING CLEANUP