Advertisement
Guest User

Ansible fortigate test ansible.log

a guest
Nov 13th, 2019
234
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 16.15 KB | None | 0 0
  1. 2019-11-13 11:17:37,810 p=xxxxxxxx u=107001 | ansible-playbook 2.9.0
  2. config file = /home/xxxxxxxx/ansible/ansible.cfg
  3. configured module search path = [u'/home/xxxxxxxx/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
  4. ansible python module location = /usr/lib/python2.7/site-packages/ansible
  5. executable location = /usr/bin/ansible-playbook
  6. python version = 2.7.5 (default, Jun 20 2019, 20:27:34) [GCC 4.8.5 20150623 (Red Hat 4.8.5-36)]
  7. 2019-11-13 11:17:37,810 p=xxxxxxxx u=107001 | Using /home/xxxxxxxx/ansible/ansible.cfg as config file
  8. 2019-11-13 11:17:37,811 p=xxxxxxxx u=107001 | setting up inventory plugins
  9. 2019-11-13 11:17:37,817 p=xxxxxxxx u=107001 | host_list declined parsing /home/xxxxxxxx/ansible/hosts as it did not pass its verify_file() method
  10. 2019-11-13 11:17:37,818 p=xxxxxxxx u=107001 | script declined parsing /home/xxxxxxxx/ansible/hosts as it did not pass its verify_file() method
  11. 2019-11-13 11:17:37,818 p=xxxxxxxx u=107001 | auto declined parsing /home/xxxxxxxx/ansible/hosts as it did not pass its verify_file() method
  12. 2019-11-13 11:17:37,822 p=xxxxxxxx u=107001 | Parsed /home/xxxxxxxx/ansible/hosts inventory source with ini plugin
  13. 2019-11-13 11:17:37,823 p=xxxxxxxx u=107001 | [WARNING]: Found both group and host with same name: fgt1
  14.  
  15. 2019-11-13 11:17:38,150 p=xxxxxxxx u=107001 | Loading callback plugin default of type stdout, v2.0 from /usr/lib/python2.7/site-packages/ansible/plugins/callback/default.pyc
  16. 2019-11-13 11:17:38,192 p=xxxxxxxx u=107001 | PLAYBOOK: getfacts.yml *******************************************************************************************************************************************************
  17. 2019-11-13 11:17:38,192 p=xxxxxxxx u=107001 | 1 plays in getfacts.yml
  18. 2019-11-13 11:17:38,196 p=xxxxxxxx u=107001 | PLAY [Test FortiOS Facts 01 - with fortios httpapi] **************************************************************************************************************************
  19. 2019-11-13 11:17:38,200 p=xxxxxxxx u=107001 | META: ran handlers
  20. 2019-11-13 11:17:38,205 p=xxxxxxxx u=107001 | TASK [gather basic system status facts] **************************************************************************************************************************************
  21. 2019-11-13 11:17:38,251 p=xxxxxxxx u=107012 | <xx.xx.xx.xx> attempting to start connection
  22. 2019-11-13 11:17:38,251 p=xxxxxxxx u=107012 | <xx.xx.xx.xx> using connection plugin httpapi
  23. 2019-11-13 11:17:38,668 p=xxxxxxxx u=107022 | jsonrpc request: {"params": [[], {}], "jsonrpc": "2.0", "method": "pop_messages", "id": "bc9684fe-1da7-493c-aec9-73a68b84c9fd"}
  24. 2019-11-13 11:17:38,668 p=xxxxxxxx u=107022 | jsonrpc response: {"jsonrpc": "2.0", "id": "bc9684fe-1da7-493c-aec9-73a68b84c9fd", "result": [["vvvv", "loaded API plugin for network_os fortios"], ["log", "network_os is set to fortios"], ["warning", "Persistent connection logging is enabled for xx.xx.xx.xx. This will log ALL interactions to /home/xxxxxxxx/ansible/ansible.log and WILL NOT redact sensitive configuration like passwords. USE WITH CAUTION!"]]}
  25. 2019-11-13 11:17:38,705 p=xxxxxxxx u=107012 | <xx.xx.xx.xx> local domain socket does not exist, starting it
  26. 2019-11-13 11:17:38,705 p=xxxxxxxx u=107012 | <xx.xx.xx.xx> control socket path is /home/xxxxxxxx/.ansible/pc/2bfa84d16b
  27. 2019-11-13 11:17:38,705 p=xxxxxxxx u=107012 | <xx.xx.xx.xx> 107013 1573640258.58498: trying /usr/share/ansible/plugins/connection
  28. 2019-11-13 11:17:38,705 p=xxxxxxxx u=107012 | <xx.xx.xx.xx> 107013 1573640258.58505: trying /usr/lib/python2.7/site-packages/ansible/plugins/connection
  29. 2019-11-13 11:17:38,705 p=xxxxxxxx u=107012 | <xx.xx.xx.xx> 107013 1573640258.59553: Loaded config def from plugin (connection/ssh)
  30. 2019-11-13 11:17:38,705 p=xxxxxxxx u=107012 | <xx.xx.xx.xx> 107013 1573640258.59564: Loading Connection 'ssh' from /usr/lib/python2.7/site-packages/ansible/plugins/connection/ssh.py (searched paths: /usr/lib/python2.7/site-packages/ansible/plugins/connection:/usr/share/ansible/plugins/connection) (found_in_cache=False, class_only=True)
  31. 2019-11-13 11:17:38,705 p=xxxxxxxx u=107012 | <xx.xx.xx.xx> 107022 1573640258.65818: Loaded config def from plugin (connection/httpapi)
  32. 2019-11-13 11:17:38,705 p=xxxxxxxx u=107012 | <xx.xx.xx.xx> 107022 1573640258.65837: Loading Connection 'httpapi' from /usr/lib/python2.7/site-packages/ansible/plugins/connection/httpapi.py (searched paths: /usr/lib/python2.7/site-packages/ansible/plugins/connection:/usr/share/ansible/plugins/connection)
  33. 2019-11-13 11:17:38,705 p=xxxxxxxx u=107012 | <xx.xx.xx.xx> 107022 1573640258.65875: trying /usr/lib/python2.7/site-packages/ansible/plugins/shell
  34. 2019-11-13 11:17:38,705 p=xxxxxxxx u=107012 | <xx.xx.xx.xx> 107022 1573640258.66088: trying /usr/share/ansible/plugins/doc_fragments
  35. 2019-11-13 11:17:38,705 p=xxxxxxxx u=107012 | <xx.xx.xx.xx> 107022 1573640258.66094: trying /usr/lib/python2.7/site-packages/ansible/plugins/doc_fragments
  36. 2019-11-13 11:17:38,705 p=xxxxxxxx u=107012 | <xx.xx.xx.xx> 107022 1573640258.66341: Loading ModuleDocFragment 'shell_common' from /usr/lib/python2.7/site-packages/ansible/plugins/doc_fragments/shell_common.py (searched paths: /usr/lib/python2.7/site-packages/ansible/plugins/doc_fragments:/usr/share/ansible/plugins/doc_fragments)
  37. 2019-11-13 11:17:38,706 p=xxxxxxxx u=107012 | <xx.xx.xx.xx> 107022 1573640258.66435: Loaded config def from plugin (shell/sh)
  38. 2019-11-13 11:17:38,706 p=xxxxxxxx u=107012 | <xx.xx.xx.xx> 107022 1573640258.66440: Loading ShellModule 'sh' from /usr/lib/python2.7/site-packages/ansible/plugins/shell/sh.py
  39. 2019-11-13 11:17:38,706 p=xxxxxxxx u=107012 | <xx.xx.xx.xx> 107022 1573640258.66445: Loading ShellModule 'sh' from /usr/lib/python2.7/site-packages/ansible/plugins/shell/sh.py (found_in_cache=True, class_only=False)
  40. 2019-11-13 11:17:38,706 p=xxxxxxxx u=107012 | <xx.xx.xx.xx> 107022 1573640258.66487: Loading Connection 'local' from /usr/lib/python2.7/site-packages/ansible/plugins/connection/local.py (searched paths: /usr/lib/python2.7/site-packages/ansible/plugins/connection:/usr/share/ansible/plugins/connection)
  41. 2019-11-13 11:17:38,706 p=xxxxxxxx u=107012 | <xx.xx.xx.xx> 107022 1573640258.66493: Loading ShellModule 'sh' from /usr/lib/python2.7/site-packages/ansible/plugins/shell/sh.py (found_in_cache=True, class_only=False)
  42. 2019-11-13 11:17:38,706 p=xxxxxxxx u=107012 | <xx.xx.xx.xx> 107022 1573640258.66497: Loading ShellModule 'sh' from /usr/lib/python2.7/site-packages/ansible/plugins/shell/sh.py (found_in_cache=True, class_only=False)
  43. 2019-11-13 11:17:38,706 p=xxxxxxxx u=107012 | <xx.xx.xx.xx> 107022 1573640258.66503: Loading Connection 'ssh' from /usr/lib/python2.7/site-packages/ansible/plugins/connection/ssh.py (searched paths: /usr/lib/python2.7/site-packages/ansible/plugins/connection:/usr/share/ansible/plugins/connection) (found_in_cache=True, class_only=True)
  44. 2019-11-13 11:17:38,706 p=xxxxxxxx u=107012 | <xx.xx.xx.xx> 107022 1573640258.66625: trying /usr/share/ansible/plugins/httpapi
  45. 2019-11-13 11:17:38,706 p=xxxxxxxx u=107012 | <xx.xx.xx.xx> 107022 1573640258.66630: trying /usr/lib/python2.7/site-packages/ansible/plugins/httpapi
  46. 2019-11-13 11:17:38,706 p=xxxxxxxx u=107012 | <xx.xx.xx.xx> 107022 1573640258.66695: Loading HttpApi 'fortios' from /usr/lib/python2.7/site-packages/ansible/plugins/httpapi/fortios.py (searched paths: /usr/share/ansible/plugins/httpapi:/usr/lib/python2.7/site-packages/ansible/plugins/httpapi)
  47. 2019-11-13 11:17:38,706 p=xxxxxxxx u=107012 | <xx.xx.xx.xx> local domain socket listeners started successfully
  48. 2019-11-13 11:17:38,706 p=xxxxxxxx u=107012 | <xx.xx.xx.xx> loaded API plugin for network_os fortios
  49. 2019-11-13 11:17:38,706 p=xxxxxxxx u=107012 | network_os is set to fortios
  50. 2019-11-13 11:17:38,707 p=xxxxxxxx u=107012 | [WARNING]: Persistent connection logging is enabled for xx.xx.xx.xx. This will log ALL interactions to /home/xxxxxxxx/ansible/ansible.log and WILL NOT redact sensitive
  51. configuration like passwords. USE WITH CAUTION!
  52.  
  53. 2019-11-13 11:17:38,707 p=xxxxxxxx u=107012 | <xx.xx.xx.xx> 107013 1573640258.58498: trying /usr/share/ansible/plugins/connection
  54. 107013 1573640258.58505: trying /usr/lib/python2.7/site-packages/ansible/plugins/connection
  55. 107013 1573640258.59553: Loaded config def from plugin (connection/ssh)
  56. 107013 1573640258.59564: Loading Connection 'ssh' from /usr/lib/python2.7/site-packages/ansible/plugins/connection/ssh.py (searched paths: /usr/lib/python2.7/site-packages/ansible/plugins/connection:/usr/share/ansible/plugins/connection) (found_in_cache=False, class_only=True)
  57.  
  58. 2019-11-13 11:17:38,707 p=xxxxxxxx u=107012 | <xx.xx.xx.xx> local domain socket path is /home/xxxxxxxx/.ansible/pc/2bfa84d16b
  59. 2019-11-13 11:17:38,895 p=xxxxxxxx u=107012 | <fgt1> Attempting python interpreter discovery
  60. 2019-11-13 11:17:38,895 p=xxxxxxxx u=107012 | <xx.xx.xx.xx> ESTABLISH LOCAL CONNECTION FOR USER: xxxxxxxx
  61. 2019-11-13 11:17:38,896 p=xxxxxxxx u=107012 | <xx.xx.xx.xx> EXEC /bin/sh -c 'echo PLATFORM; uname; echo FOUND; command -v '"'"'/usr/bin/python'"'"'; command -v '"'"'python3.7'"'"'; command -v '"'"'python3.6'"'"'; command -v '"'"'python3.5'"'"'; command -v '"'"'python2.7'"'"'; command -v '"'"'python2.6'"'"'; command -v '"'"'/usr/libexec/platform-python'"'"'; command -v '"'"'/usr/bin/python3'"'"'; command -v '"'"'python'"'"'; echo ENDFOUND && sleep 0'
  62. 2019-11-13 11:17:38,904 p=xxxxxxxx u=107012 | <xx.xx.xx.xx> EXEC /bin/sh -c '/usr/bin/python && sleep 0'
  63. 2019-11-13 11:17:38,928 p=xxxxxxxx u=107012 | Using module file /usr/lib/python2.7/site-packages/ansible/modules/network/fortios/fortios_facts.py
  64. 2019-11-13 11:17:38,929 p=xxxxxxxx u=107012 | Pipelining is enabled.
  65. 2019-11-13 11:17:38,929 p=xxxxxxxx u=107012 | <xx.xx.xx.xx> EXEC /bin/sh -c '/usr/bin/python && sleep 0'
  66. 2019-11-13 11:17:39,065 p=xxxxxxxx u=107022 | jsonrpc request: {"params": [[], {"url": "/api/v2/monitor/system/status/select?vdom=root", "params": null, "method": "GET"}], "jsonrpc": "2.0", "method": "send_request", "id": "537428e7-267d-4bf4-b434-09225d66925d"}
  67. 2019-11-13 11:17:39,145 p=xxxxxxxx u=107022 | Traceback (most recent call last):
  68. File "/usr/lib/python2.7/site-packages/ansible/utils/jsonrpc.py", line 45, in handle_request
  69. result = rpc_method(*args, **kwargs)
  70. File "/usr/lib/python2.7/site-packages/ansible/plugins/httpapi/fortios.py", line 125, in send_request
  71. raise Exception(err)
  72. Exception: addinfourl instance has no attribute 'getheaders'
  73.  
  74. 2019-11-13 11:17:39,146 p=xxxxxxxx u=107022 | jsonrpc response: {"jsonrpc": "2.0", "id": "537428e7-267d-4bf4-b434-09225d66925d", "error": {"message": "Internal error", "code": -32603, "data": "addinfourl instance has no attribute 'getheaders'"}}
  75. 2019-11-13 11:17:39,166 p=xxxxxxxx u=107001 | The full traceback is:
  76. Traceback (most recent call last):
  77. File "<stdin>", line 102, in <module>
  78. File "<stdin>", line 94, in _ansiballz_main
  79. File "<stdin>", line 40, in invoke_module
  80. File "/usr/lib64/python2.7/runpy.py", line 180, in run_module
  81. fname, loader, pkg_name)
  82. File "/usr/lib64/python2.7/runpy.py", line 72, in _run_code
  83. exec code in run_globals
  84. File "/tmp/ansible_fortios_facts_payload_ObUF26/ansible_fortios_facts_payload.zip/ansible/modules/network/fortios/fortios_facts.py", line 282, in <module>
  85. File "/tmp/ansible_fortios_facts_payload_ObUF26/ansible_fortios_facts_payload.zip/ansible/modules/network/fortios/fortios_facts.py", line 253, in main
  86. File "/tmp/ansible_fortios_facts_payload_ObUF26/ansible_fortios_facts_payload.zip/ansible/module_utils/network/fortios/facts/facts.py", line 90, in get_facts
  87. File "/tmp/ansible_fortios_facts_payload_ObUF26/ansible_fortios_facts_payload.zip/ansible/module_utils/network/fortios/facts/facts.py", line 81, in get_network_legacy_facts
  88. File "/tmp/ansible_fortios_facts_payload_ObUF26/ansible_fortios_facts_payload.zip/ansible/module_utils/network/fortios/facts/system/system.py", line 40, in populate_facts
  89. File "/tmp/ansible_fortios_facts_payload_ObUF26/ansible_fortios_facts_payload.zip/ansible/module_utils/network/fortios/facts/system/system.py", line 49, in system_fact
  90. File "/tmp/ansible_fortios_facts_payload_ObUF26/ansible_fortios_facts_payload.zip/ansible/module_utils/network/fortios/fortios.py", line 156, in monitor
  91. File "/tmp/ansible_fortios_facts_payload_ObUF26/ansible_fortios_facts_payload.zip/ansible/module_utils/connection.py", line 185, in __rpc__
  92. ansible.module_utils.connection.ConnectionError: addinfourl instance has no attribute 'getheaders'
  93.  
  94. 2019-11-13 11:17:39,166 p=xxxxxxxx u=107001 | fatal: [fgt1]: FAILED! => {
  95. "ansible_facts": {
  96. "discovered_interpreter_python": "/usr/bin/python"
  97. },
  98. "changed": false,
  99. "module_stderr": "Traceback (most recent call last):\n File \"<stdin>\", line 102, in <module>\n File \"<stdin>\", line 94, in _ansiballz_main\n File \"<stdin>\", line 40, in invoke_module\n File \"/usr/lib64/python2.7/runpy.py\", line 180, in run_module\n fname, loader, pkg_name)\n File \"/usr/lib64/python2.7/runpy.py\", line 72, in _run_code\n exec code in run_globals\n File \"/tmp/ansible_fortios_facts_payload_ObUF26/ansible_fortios_facts_payload.zip/ansible/modules/network/fortios/fortios_facts.py\", line 282, in <module>\n File \"/tmp/ansible_fortios_facts_payload_ObUF26/ansible_fortios_facts_payload.zip/ansible/modules/network/fortios/fortios_facts.py\", line 253, in main\n File \"/tmp/ansible_fortios_facts_payload_ObUF26/ansible_fortios_facts_payload.zip/ansible/module_utils/network/fortios/facts/facts.py\", line 90, in get_facts\n File \"/tmp/ansible_fortios_facts_payload_ObUF26/ansible_fortios_facts_payload.zip/ansible/module_utils/network/fortios/facts/facts.py\", line 81, in get_network_legacy_facts\n File \"/tmp/ansible_fortios_facts_payload_ObUF26/ansible_fortios_facts_payload.zip/ansible/module_utils/network/fortios/facts/system/system.py\", line 40, in populate_facts\n File \"/tmp/ansible_fortios_facts_payload_ObUF26/ansible_fortios_facts_payload.zip/ansible/module_utils/network/fortios/facts/system/system.py\", line 49, in system_fact\n File \"/tmp/ansible_fortios_facts_payload_ObUF26/ansible_fortios_facts_payload.zip/ansible/module_utils/network/fortios/fortios.py\", line 156, in monitor\n File \"/tmp/ansible_fortios_facts_payload_ObUF26/ansible_fortios_facts_payload.zip/ansible/module_utils/connection.py\", line 185, in __rpc__\nansible.module_utils.connection.ConnectionError: addinfourl instance has no attribute 'getheaders'\n",
  100. "module_stdout": "",
  101. "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error",
  102. "rc": 1
  103. }
  104. 2019-11-13 11:17:39,168 p=xxxxxxxx u=107022 | jsonrpc request: {"params": [[], {}], "jsonrpc": "2.0", "method": "reset", "id": "8a85eb37-69e5-4c94-8fd7-ab1cd8a1bc9e"}
  105. 2019-11-13 11:17:39,247 p=xxxxxxxx u=107022 | Traceback (most recent call last):
  106. File "/usr/lib/python2.7/site-packages/ansible/utils/jsonrpc.py", line 45, in handle_request
  107. result = rpc_method(*args, **kwargs)
  108. File "/usr/lib/python2.7/site-packages/ansible/plugins/connection/__init__.py", line 335, in reset
  109. self.close()
  110. File "/usr/lib/python2.7/site-packages/ansible/plugins/connection/httpapi.py", line 257, in close
  111. self.logout()
  112. File "/usr/lib/python2.7/site-packages/ansible/plugins/httpapi/fortios.py", line 76, in logout
  113. self.send_request(url='/logout', method="POST")
  114. File "/usr/lib/python2.7/site-packages/ansible/plugins/httpapi/fortios.py", line 125, in send_request
  115. raise Exception(err)
  116. Exception: addinfourl instance has no attribute 'getheaders'
  117.  
  118. 2019-11-13 11:17:39,248 p=xxxxxxxx u=107022 | jsonrpc response: {"jsonrpc": "2.0", "id": "8a85eb37-69e5-4c94-8fd7-ab1cd8a1bc9e", "error": {"message": "Internal error", "code": -32603, "data": "addinfourl instance has no attribute 'getheaders'"}}
  119. 2019-11-13 11:17:39,249 p=xxxxxxxx u=107001 | PLAY RECAP *******************************************************************************************************************************************************************
  120. 2019-11-13 11:17:39,249 p=xxxxxxxx u=107001 | fgt1 : ok=0 changed=0 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0
  121. 2019-11-13 11:17:49,248 p=xxxxxxxx u=107022 | persistent connection idle timeout triggered, timeout value is 10 secs.
  122. See the timeout setting options in the Network Debug and Troubleshooting Guide.
  123. 2019-11-13 11:17:49,421 p=xxxxxxxx u=107022 | shutdown complete
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement