Advertisement
Izya12

Untitled

Feb 26th, 2020
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 41.52 KB | None | 0 0
  1. 10:49:29 TEST-TOWER ~ # tail -n 500 /opt/tower/var/tower/log/jobs/304.log
  2. "mode": "0644",
  3. "owner": "root",
  4. "path": "/etc/systemd/system/noc.service",
  5. "size": 504,
  6. "state": "file",
  7. "uid": 0
  8. }
  9. Read vars_file '../../vars/main.yml'
  10. Read vars_file '../../vars/{{ ansible_distribution }}.yml'
  11. Using module file /opt/tower/lib/python2.7/site-packages/ansible/modules/system/group.py
  12. <10.220.21.122> ESTABLISH SSH CONNECTION FOR USER: ansible
  13. <10.220.21.122> SSH: ansible.cfg set ssh_args: (-C)(-o)(ControlMaster=auto)(-o)(ControlPersist=60s)
  14. <10.220.21.122> SSH: ANSIBLE_HOST_KEY_CHECKING/host_key_checking disabled: (-o)(StrictHostKeyChecking=no)
  15. <10.220.21.122> SSH: ANSIBLE_REMOTE_PORT/remote_port/ansible_port set: (-o)(Port=22)
  16. <10.220.21.122> SSH: ANSIBLE_PRIVATE_KEY_FILE/private_key_file/ansible_ssh_private_key_file set: (-o)(IdentityFile="/opt/tower/var/tower/data/deploy_keys/id_rsa")
  17. <10.220.21.122> SSH: ansible_password/ansible_ssh_pass not set: (-o)(KbdInteractiveAuthentication=no)(-o)(PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey)(-o)(PasswordAuthentication=no)
  18. <10.220.21.122> SSH: ANSIBLE_REMOTE_USER/remote_user/ansible_user/user/-u set: (-o)(User=ansible)
  19. <10.220.21.122> SSH: ANSIBLE_TIMEOUT/timeout set: (-o)(ConnectTimeout=10)
  20. <10.220.21.122> SSH: found only ControlPersist; added ControlPath: (-o)(ControlPath=/root/.ansible/cp/ansible-ssh-%r-%h-%r)
  21. <10.220.21.122> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o Port=22 -o 'IdentityFile="/opt/tower/var/tower/data/deploy_keys/id_rsa"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ansible -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/ansible-ssh-%r-%h-%r 10.220.21.122 '/bin/sh -c '"'"'sudo -H -S -n -u root /bin/sh -c '"'"'"'"'"'"'"'"'echo BECOME-SUCCESS-ruawcpclaxpgvwysksbwyhoqewrgrtoc; /usr/bin/python'"'"'"'"'"'"'"'"' && sleep 0'"'"''
  22. Escalation succeeded
  23. <10.220.21.122> (0, '\n{"name": "noc", "changed": false, "system": false, "state": "present", "gid": 1000, "invocation": {"module_args": {"state": "present", "gid": null, "local": false, "name": "noc", "system": false}}}\n', 'OpenSSH_7.9p1, OpenSSL 1.1.1d 10 Sep 2019\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug2: resolve_canonicalize: hostname 10.220.21.122 is address\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 4 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 4361\r\ndebug3: mux_client_request_session: session request sent\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
  24.  
  25. TASK [noc : Create NOC group] **************************************************
  26. task path: /opt/tower/var/tower/playbooks/NOC/noc_roles/noc/tasks/main.yml:11
  27. ok: [Node1] => {
  28. "changed": false,
  29. "gid": 1000,
  30. "invocation": {
  31. "module_args": {
  32. "gid": null,
  33. "local": false,
  34. "name": "noc",
  35. "state": "present",
  36. "system": false
  37. }
  38. },
  39. "name": "noc",
  40. "state": "present",
  41. "system": false
  42. }
  43. Read vars_file '../../vars/main.yml'
  44. Read vars_file '../../vars/{{ ansible_distribution }}.yml'
  45. Using module file /opt/tower/lib/python2.7/site-packages/ansible/modules/system/user.py
  46. <10.220.21.122> ESTABLISH SSH CONNECTION FOR USER: ansible
  47. <10.220.21.122> SSH: ansible.cfg set ssh_args: (-C)(-o)(ControlMaster=auto)(-o)(ControlPersist=60s)
  48. <10.220.21.122> SSH: ANSIBLE_HOST_KEY_CHECKING/host_key_checking disabled: (-o)(StrictHostKeyChecking=no)
  49. <10.220.21.122> SSH: ANSIBLE_REMOTE_PORT/remote_port/ansible_port set: (-o)(Port=22)
  50. <10.220.21.122> SSH: ANSIBLE_PRIVATE_KEY_FILE/private_key_file/ansible_ssh_private_key_file set: (-o)(IdentityFile="/opt/tower/var/tower/data/deploy_keys/id_rsa")
  51. <10.220.21.122> SSH: ansible_password/ansible_ssh_pass not set: (-o)(KbdInteractiveAuthentication=no)(-o)(PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey)(-o)(PasswordAuthentication=no)
  52. <10.220.21.122> SSH: ANSIBLE_REMOTE_USER/remote_user/ansible_user/user/-u set: (-o)(User=ansible)
  53. <10.220.21.122> SSH: ANSIBLE_TIMEOUT/timeout set: (-o)(ConnectTimeout=10)
  54. <10.220.21.122> SSH: found only ControlPersist; added ControlPath: (-o)(ControlPath=/root/.ansible/cp/ansible-ssh-%r-%h-%r)
  55. <10.220.21.122> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o Port=22 -o 'IdentityFile="/opt/tower/var/tower/data/deploy_keys/id_rsa"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ansible -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/ansible-ssh-%r-%h-%r 10.220.21.122 '/bin/sh -c '"'"'sudo -H -S -n -u root /bin/sh -c '"'"'"'"'"'"'"'"'echo BECOME-SUCCESS-pwnapfgrrzkxdzigsstzwycetxcxwmvr; /usr/bin/python'"'"'"'"'"'"'"'"' && sleep 0'"'"''
  56. Escalation succeeded
  57. <10.220.21.122> (0, '\n{"comment": "NOC user", "shell": "/bin/bash", "group": 1000, "name": "noc", "changed": false, "state": "present", "invocation": {"module_args": {"comment": "NOC user", "ssh_key_bits": 0, "update_password": "always", "non_unique": false, "force": false, "ssh_key_type": "rsa", "create_home": true, "password_lock": null, "ssh_key_passphrase": null, "uid": null, "home": null, "append": false, "skeleton": null, "ssh_key_comment": "ansible-generated on Node1", "group": "noc", "system": false, "state": "present", "hidden": null, "local": null, "shell": null, "expires": null, "ssh_key_file": null, "groups": null, "move_home": false, "password": null, "name": "noc", "seuser": null, "remove": false, "login_class": null, "generate_ssh_key": null}}, "home": "/home/noc", "move_home": false, "append": false, "uid": 1000}\n', 'OpenSSH_7.9p1, OpenSSL 1.1.1d 10 Sep 2019\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug2: resolve_canonicalize: hostname 10.220.21.122 is address\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 4 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 4361\r\ndebug3: mux_client_request_session: session request sent\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
  58.  
  59. TASK [noc : Create NOC user] ***************************************************
  60. task path: /opt/tower/var/tower/playbooks/NOC/noc_roles/noc/tasks/main.yml:16
  61. ok: [Node1] => {
  62. "append": false,
  63. "changed": false,
  64. "comment": "NOC user",
  65. "group": 1000,
  66. "home": "/home/noc",
  67. "invocation": {
  68. "module_args": {
  69. "append": false,
  70. "comment": "NOC user",
  71. "create_home": true,
  72. "expires": null,
  73. "force": false,
  74. "generate_ssh_key": null,
  75. "group": "noc",
  76. "groups": null,
  77. "hidden": null,
  78. "home": null,
  79. "local": null,
  80. "login_class": null,
  81. "move_home": false,
  82. "name": "noc",
  83. "non_unique": false,
  84. "password": null,
  85. "password_lock": null,
  86. "remove": false,
  87. "seuser": null,
  88. "shell": null,
  89. "skeleton": null,
  90. "ssh_key_bits": 0,
  91. "ssh_key_comment": "ansible-generated on Node1",
  92. "ssh_key_file": null,
  93. "ssh_key_passphrase": null,
  94. "ssh_key_type": "rsa",
  95. "state": "present",
  96. "system": false,
  97. "uid": null,
  98. "update_password": "always"
  99. }
  100. },
  101. "move_home": false,
  102. "name": "noc",
  103. "shell": "/bin/bash",
  104. "state": "present",
  105. "uid": 1000
  106. }
  107. Read vars_file '../../vars/main.yml'
  108. Read vars_file '../../vars/{{ ansible_distribution }}.yml'
  109. Read vars_file '../../vars/main.yml'
  110. Read vars_file '../../vars/{{ ansible_distribution }}.yml'
  111. included: /opt/tower/var/tower/playbooks/NOC/noc_roles/noc/tasks/git.yml for Node1
  112. Read vars_file '../../vars/main.yml'
  113. skipping vars_file '../../vars/{{ ansible_distribution }}.yml' due to an undefined variable
  114. Read vars_file '../../vars/main.yml'
  115. skipping vars_file '../../vars/{{ ansible_distribution }}.yml' due to an undefined variable
  116. Read vars_file '../../vars/main.yml'
  117. skipping vars_file '../../vars/{{ ansible_distribution }}.yml' due to an undefined variable
  118. Read vars_file '../../vars/main.yml'
  119. Read vars_file '../../vars/{{ ansible_distribution }}.yml'
  120. Using module file /opt/tower/lib/python2.7/site-packages/ansible/modules/files/stat.py
  121. <10.220.21.122> ESTABLISH SSH CONNECTION FOR USER: ansible
  122. <10.220.21.122> SSH: ansible.cfg set ssh_args: (-C)(-o)(ControlMaster=auto)(-o)(ControlPersist=60s)
  123. <10.220.21.122> SSH: ANSIBLE_HOST_KEY_CHECKING/host_key_checking disabled: (-o)(StrictHostKeyChecking=no)
  124. <10.220.21.122> SSH: ANSIBLE_REMOTE_PORT/remote_port/ansible_port set: (-o)(Port=22)
  125. <10.220.21.122> SSH: ANSIBLE_PRIVATE_KEY_FILE/private_key_file/ansible_ssh_private_key_file set: (-o)(IdentityFile="/opt/tower/var/tower/data/deploy_keys/id_rsa")
  126. <10.220.21.122> SSH: ansible_password/ansible_ssh_pass not set: (-o)(KbdInteractiveAuthentication=no)(-o)(PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey)(-o)(PasswordAuthentication=no)
  127. <10.220.21.122> SSH: ANSIBLE_REMOTE_USER/remote_user/ansible_user/user/-u set: (-o)(User=ansible)
  128. <10.220.21.122> SSH: ANSIBLE_TIMEOUT/timeout set: (-o)(ConnectTimeout=10)
  129. <10.220.21.122> SSH: found only ControlPersist; added ControlPath: (-o)(ControlPath=/root/.ansible/cp/ansible-ssh-%r-%h-%r)
  130. <10.220.21.122> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o Port=22 -o 'IdentityFile="/opt/tower/var/tower/data/deploy_keys/id_rsa"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ansible -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/ansible-ssh-%r-%h-%r 10.220.21.122 '/bin/sh -c '"'"'sudo -H -S -n -u root /bin/sh -c '"'"'"'"'"'"'"'"'echo BECOME-SUCCESS-bujqpxfvnuiltszgwcphgucuesvcfrnf; /usr/bin/python'"'"'"'"'"'"'"'"' && sleep 0'"'"''
  131. Escalation succeeded
  132. <10.220.21.122> (0, '\n{"invocation": {"module_args": {"checksum_algorithm": "sha1", "get_checksum": true, "follow": false, "path": "/opt/noc", "get_md5": null, "get_mime": true, "get_attributes": true}}, "stat": {"charset": "binary", "uid": 0, "exists": true, "attr_flags": "e", "woth": false, "isreg": false, "device_type": 0, "mtime": 1580474375.7530458, "block_size": 4096, "inode": 524943, "isgid": false, "size": 4096, "executable": true, "isuid": false, "readable": true, "version": "4122519995", "pw_name": "root", "gid": 0, "ischr": false, "wusr": true, "writeable": true, "mimetype": "inode/directory", "blocks": 8, "xoth": true, "islnk": false, "nlink": 49, "issock": false, "rgrp": true, "gr_name": "root", "path": "/opt/noc", "xusr": true, "atime": 1582708448.7715285, "isdir": true, "ctime": 1580474375.7530458, "isblk": false, "wgrp": false, "xgrp": true, "dev": 65024, "roth": true, "isfifo": false, "mode": "0755", "rusr": true, "attributes": ["extents"]}, "changed": false}\n', 'OpenSSH_7.9p1, OpenSSL 1.1.1d 10 Sep 2019\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug2: resolve_canonicalize: hostname 10.220.21.122 is address\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 4 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 4361\r\ndebug3: mux_client_request_session: session request sent\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
  133.  
  134. TASK [noc : check if noc_root exists] ******************************************
  135. task path: /opt/tower/var/tower/playbooks/NOC/noc_roles/noc/tasks/git.yml:2
  136. ok: [Node1] => {
  137. "changed": false,
  138. "invocation": {
  139. "module_args": {
  140. "checksum_algorithm": "sha1",
  141. "follow": false,
  142. "get_attributes": true,
  143. "get_checksum": true,
  144. "get_md5": null,
  145. "get_mime": true,
  146. "path": "/opt/noc"
  147. }
  148. },
  149. "stat": {
  150. "atime": 1582708448.7715285,
  151. "attr_flags": "e",
  152. "attributes": [
  153. "extents"
  154. ],
  155. "block_size": 4096,
  156. "blocks": 8,
  157. "charset": "binary",
  158. "ctime": 1580474375.7530458,
  159. "dev": 65024,
  160. "device_type": 0,
  161. "executable": true,
  162. "exists": true,
  163. "gid": 0,
  164. "gr_name": "root",
  165. "inode": 524943,
  166. "isblk": false,
  167. "ischr": false,
  168. "isdir": true,
  169. "isfifo": false,
  170. "isgid": false,
  171. "islnk": false,
  172. "isreg": false,
  173. "issock": false,
  174. "isuid": false,
  175. "mimetype": "inode/directory",
  176. "mode": "0755",
  177. "mtime": 1580474375.7530458,
  178. "nlink": 49,
  179. "path": "/opt/noc",
  180. "pw_name": "root",
  181. "readable": true,
  182. "rgrp": true,
  183. "roth": true,
  184. "rusr": true,
  185. "size": 4096,
  186. "uid": 0,
  187. "version": "4122519995",
  188. "wgrp": false,
  189. "woth": false,
  190. "writeable": true,
  191. "wusr": true,
  192. "xgrp": true,
  193. "xoth": true,
  194. "xusr": true
  195. }
  196. }
  197. Read vars_file '../../vars/main.yml'
  198. Read vars_file '../../vars/{{ ansible_distribution }}.yml'
  199.  
  200. TASK [noc : Clone NOC] *********************************************************
  201. task path: /opt/tower/var/tower/playbooks/NOC/noc_roles/noc/tasks/git.yml:8
  202. skipping: [Node1] => {
  203. "changed": false,
  204. "skip_reason": "Conditional result was False"
  205. }
  206. Read vars_file '../../vars/main.yml'
  207. Read vars_file '../../vars/{{ ansible_distribution }}.yml'
  208.  
  209. TASK [noc : set up dummy git user email] ***************************************
  210. task path: /opt/tower/var/tower/playbooks/NOC/noc_roles/noc/tasks/git.yml:13
  211. skipping: [Node1] => {
  212. "changed": false,
  213. "skip_reason": "Conditional result was False"
  214. }
  215. Read vars_file '../../vars/main.yml'
  216. Read vars_file '../../vars/{{ ansible_distribution }}.yml'
  217.  
  218. TASK [noc : set up dummy git user name] ****************************************
  219. task path: /opt/tower/var/tower/playbooks/NOC/noc_roles/noc/tasks/git.yml:20
  220. skipping: [Node1] => {
  221. "changed": false,
  222. "skip_reason": "Conditional result was False"
  223. }
  224. Read vars_file '../../vars/main.yml'
  225. Read vars_file '../../vars/{{ ansible_distribution }}.yml'
  226.  
  227. TASK [noc : Fetch changes from upstream] ***************************************
  228. task path: /opt/tower/var/tower/playbooks/NOC/noc_roles/noc/tasks/git.yml:31
  229. skipping: [Node1] => {
  230. "changed": false,
  231. "skip_reason": "Conditional result was False"
  232. }
  233. Read vars_file '../../vars/main.yml'
  234. Read vars_file '../../vars/{{ ansible_distribution }}.yml'
  235. Using module_utils file /opt/tower/lib/python2.7/site-packages/ansible/module_utils/basic.py
  236. Using module_utils file /opt/tower/lib/python2.7/site-packages/ansible/module_utils/_text.py
  237. Using module_utils file /opt/tower/lib/python2.7/site-packages/ansible/module_utils/six/__init__.py
  238. Using module_utils file /opt/tower/lib/python2.7/site-packages/ansible/module_utils/parsing/convert_bool.py
  239. Using module_utils file /opt/tower/lib/python2.7/site-packages/ansible/module_utils/common/_collections_compat.py
  240. Using module_utils file /opt/tower/lib/python2.7/site-packages/ansible/module_utils/common/file.py
  241. Using module_utils file /opt/tower/lib/python2.7/site-packages/ansible/module_utils/parsing/__init__.py
  242. Using module_utils file /opt/tower/lib/python2.7/site-packages/ansible/module_utils/pycompat24.py
  243. Using module_utils file /opt/tower/lib/python2.7/site-packages/ansible/module_utils/common/process.py
  244. Using module_utils file /opt/tower/lib/python2.7/site-packages/ansible/module_utils/common/__init__.py
  245. Using module file /opt/tower/lib/python2.7/site-packages/ansible/modules/source_control/git.py
  246. <10.220.21.122> ESTABLISH SSH CONNECTION FOR USER: ansible
  247. <10.220.21.122> SSH: ansible.cfg set ssh_args: (-C)(-o)(ControlMaster=auto)(-o)(ControlPersist=60s)
  248. <10.220.21.122> SSH: ANSIBLE_HOST_KEY_CHECKING/host_key_checking disabled: (-o)(StrictHostKeyChecking=no)
  249. <10.220.21.122> SSH: ANSIBLE_REMOTE_PORT/remote_port/ansible_port set: (-o)(Port=22)
  250. <10.220.21.122> SSH: ANSIBLE_PRIVATE_KEY_FILE/private_key_file/ansible_ssh_private_key_file set: (-o)(IdentityFile="/opt/tower/var/tower/data/deploy_keys/id_rsa")
  251. <10.220.21.122> SSH: ansible_password/ansible_ssh_pass not set: (-o)(KbdInteractiveAuthentication=no)(-o)(PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey)(-o)(PasswordAuthentication=no)
  252. <10.220.21.122> SSH: ANSIBLE_REMOTE_USER/remote_user/ansible_user/user/-u set: (-o)(User=ansible)
  253. <10.220.21.122> SSH: ANSIBLE_TIMEOUT/timeout set: (-o)(ConnectTimeout=10)
  254. <10.220.21.122> SSH: found only ControlPersist; added ControlPath: (-o)(ControlPath=/root/.ansible/cp/ansible-ssh-%r-%h-%r)
  255. <10.220.21.122> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o Port=22 -o 'IdentityFile="/opt/tower/var/tower/data/deploy_keys/id_rsa"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ansible -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/ansible-ssh-%r-%h-%r 10.220.21.122 '/bin/sh -c '"'"'sudo -H -S -n -u root /bin/sh -c '"'"'"'"'"'"'"'"'echo BECOME-SUCCESS-znozhkjgrepfcmpjqdqmaveseydggdxo; https_proxy=http://10.220.21.122:8888 /usr/bin/python'"'"'"'"'"'"'"'"' && sleep 0'"'"''
  256. Escalation succeeded
  257. <10.220.21.122> (0, '\n{"changed": true, "warnings": [], "after": "1358b5a005650f841bac2c9c658dcb077f223199", "remote_url_changed": false, "invocation": {"module_args": {"depth": null, "executable": null, "force": false, "track_submodules": false, "reference": null, "dest": "/opt/noc", "recursive": true, "clone": true, "verify_commit": false, "update": true, "accept_hostkey": false, "ssh_opts": null, "repo": "https://github.com/nocproject/noc.git", "umask": null, "version": "release-19.4", "bare": false, "remote": "origin", "key_file": null, "separate_git_dir": null, "archive": null, "refspec": null}}, "before": "5abd73dc52a192e62938fa3e4b20023f3ba687e1"}\n', 'OpenSSH_7.9p1, OpenSSL 1.1.1d 10 Sep 2019\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug2: resolve_canonicalize: hostname 10.220.21.122 is address\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 4 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 4361\r\ndebug3: mux_client_request_session: session request sent\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
  258.  
  259. TASK [noc : Pull NOC] **********************************************************
  260. task path: /opt/tower/var/tower/playbooks/NOC/noc_roles/noc/tasks/git.yml:41
  261. changed: [Node1] => {
  262. "after": "1358b5a005650f841bac2c9c658dcb077f223199",
  263. "before": "5abd73dc52a192e62938fa3e4b20023f3ba687e1",
  264. "changed": true,
  265. "invocation": {
  266. "module_args": {
  267. "accept_hostkey": false,
  268. "archive": null,
  269. "bare": false,
  270. "clone": true,
  271. "depth": null,
  272. "dest": "/opt/noc",
  273. "executable": null,
  274. "force": false,
  275. "key_file": null,
  276. "recursive": true,
  277. "reference": null,
  278. "refspec": null,
  279. "remote": "origin",
  280. "repo": "https://github.com/nocproject/noc.git",
  281. "separate_git_dir": null,
  282. "ssh_opts": null,
  283. "track_submodules": false,
  284. "umask": null,
  285. "update": true,
  286. "verify_commit": false,
  287. "version": "release-19.4"
  288. }
  289. },
  290. "remote_url_changed": false
  291. }
  292. Read vars_file '../../vars/main.yml'
  293. Read vars_file '../../vars/{{ ansible_distribution }}.yml'
  294.  
  295. TASK [noc : fail if local modifications found] *********************************
  296. task path: /opt/tower/var/tower/playbooks/NOC/noc_roles/noc/tasks/git.yml:56
  297. skipping: [Node1] => {
  298. "changed": false,
  299. "skip_reason": "Conditional result was False"
  300. }
  301. Read vars_file '../../vars/main.yml'
  302. Read vars_file '../../vars/{{ ansible_distribution }}.yml'
  303. Read vars_file '../../vars/main.yml'
  304. Read vars_file '../../vars/{{ ansible_distribution }}.yml'
  305. Read vars_file '../../vars/main.yml'
  306. skipping vars_file '../../vars/{{ ansible_distribution }}.yml' due to an undefined variable
  307. included: /opt/tower/var/tower/playbooks/NOC/noc_roles/noc/tasks/init_venv_python3.yml for Node1
  308. Read vars_file '../../vars/main.yml'
  309. skipping vars_file '../../vars/{{ ansible_distribution }}.yml' due to an undefined variable
  310. Read vars_file '../../vars/main.yml'
  311. skipping vars_file '../../vars/{{ ansible_distribution }}.yml' due to an undefined variable
  312. Read vars_file '../../vars/main.yml'
  313. skipping vars_file '../../vars/{{ ansible_distribution }}.yml' due to an undefined variable
  314. Read vars_file '../../vars/main.yml'
  315. Read vars_file '../../vars/{{ ansible_distribution }}.yml'
  316. Using module file /opt/tower/lib/python2.7/site-packages/ansible/modules/system/setup.py
  317. <10.220.21.122> ESTABLISH SSH CONNECTION FOR USER: ansible
  318. <10.220.21.122> SSH: ansible.cfg set ssh_args: (-C)(-o)(ControlMaster=auto)(-o)(ControlPersist=60s)
  319. <10.220.21.122> SSH: ANSIBLE_HOST_KEY_CHECKING/host_key_checking disabled: (-o)(StrictHostKeyChecking=no)
  320. <10.220.21.122> SSH: ANSIBLE_REMOTE_PORT/remote_port/ansible_port set: (-o)(Port=22)
  321. <10.220.21.122> SSH: ANSIBLE_PRIVATE_KEY_FILE/private_key_file/ansible_ssh_private_key_file set: (-o)(IdentityFile="/opt/tower/var/tower/data/deploy_keys/id_rsa")
  322. <10.220.21.122> SSH: ansible_password/ansible_ssh_pass not set: (-o)(KbdInteractiveAuthentication=no)(-o)(PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey)(-o)(PasswordAuthentication=no)
  323. <10.220.21.122> SSH: ANSIBLE_REMOTE_USER/remote_user/ansible_user/user/-u set: (-o)(User=ansible)
  324. <10.220.21.122> SSH: ANSIBLE_TIMEOUT/timeout set: (-o)(ConnectTimeout=10)
  325. <10.220.21.122> SSH: found only ControlPersist; added ControlPath: (-o)(ControlPath=/root/.ansible/cp/ansible-ssh-%r-%h-%r)
  326. <10.220.21.122> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o Port=22 -o 'IdentityFile="/opt/tower/var/tower/data/deploy_keys/id_rsa"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ansible -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/ansible-ssh-%r-%h-%r 10.220.21.122 '/bin/sh -c '"'"'sudo -H -S -n -u root /bin/sh -c '"'"'"'"'"'"'"'"'echo BECOME-SUCCESS-tdfjcsjehyoozgnxqceyxprvtoakqszo; /usr/bin/python3'"'"'"'"'"'"'"'"' && sleep 0'"'"''
  327. Escalation succeeded
  328. <10.220.21.122> (0, '\n{"invocation": {"module_args": {"filter": "*", "gather_subset": ["min"], "gather_timeout": 10, "fact_path": "/etc/ansible/facts.d"}}, "ansible_facts": {"ansible_python": {"executable": "/usr/bin/python3", "type": "cpython", "version": {"major": 3, "releaselevel": "final", "micro": 3, "minor": 5, "serial": 0}, "has_sslcontext": true, "version_info": [3, 5, 3, "final", 0]}, "ansible_ssh_host_key_ecdsa_public": "AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBIl5JV3ETV1oebBcwlqKLGLsoHWlicKHkgEpbdnkf3OGFgc82A5Gayy+XYIZDPoRi1vnJhnJyQOJm0or26PBpmU=", "gather_subset": ["min"], "ansible_dns": {"nameservers": ["10.220.12.4", "10.220.12.5"], "search": ["knd-oil.ru"]}, "ansible_userspace_architecture": "x86_64", "ansible_machine": "x86_64", "ansible_user_gecos": "root", "ansible_userspace_bits": "64", "ansible_distribution_release": "stretch", "ansible_system": "Linux", "ansible_distribution_major_version": "9", "ansible_system_capabilities_enforced": "True", "ansible_real_user_id": 0, "ansible_lsb": {"id": "Debian", "codename": "stretch", "release": "9.9", "description": "Debian GNU/Linux 9.9 (stretch)", "major_release": "9"}, "ansible_domain": "knd-oil.ru", "ansible_fqdn": "node1.knd-oil.ru", "ansible_nodename": "Node1", "ansible_effective_user_id": 0, "ansible_date_time": {"hour": "15", "epoch": "1582713836", "date": "2020-02-26", "minute": "43", "weeknumber": "08", "iso8601_basic_short": "20200226T154356", "time": "15:43:56", "year": "2020", "iso8601": "2020-02-26T10:43:56Z", "iso8601_micro": "2020-02-26T10:43:56.483635Z", "second": "56", "iso8601_basic": "20200226T154356483452", "tz": "+05", "day": "26", "month": "02", "weekday": "\\u0421\\u0440\\u0435\\u0434\\u0430", "tz_offset": "+0500", "weekday_number": "3"}, "ansible_ssh_host_key_ed25519_public": "AAAAC3NzaC1lZDI1NTE5AAAAINgrvuHgiJywNxZzU/JOBYwVThTEyJunJalBZteO7ABS", "ansible_machine_id": "a186f0b107b4403096418c7b0dc6defa", "ansible_user_shell": "/bin/bash", "ansible_local": {}, "ansible_env": {"PATH": "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin", "SUDO_USER": "ansible", "LANG": "ru_RU.UTF-8", "TERM": "unknown", "SUDO_UID": "1001", "SHELL": "/bin/bash", "LOGNAME": "root", "MAIL": "/var/mail/root", "SUDO_GID": "1001", "PWD": "/home/ansible", "HOME": "/root", "SUDO_COMMAND": "/bin/sh -c echo BECOME-SUCCESS-tdfjcsjehyoozgnxqceyxprvtoakqszo; /usr/bin/python3", "USER": "root", "USERNAME": "root"}, "ansible_service_mgr": "systemd", "module_setup": true, "ansible_ssh_host_key_rsa_public": "AAAAB3NzaC1yc2EAAAADAQABAAABAQCyh0ZSAs64qG77JzQOyWaPL1exwU0Ke/sZFU8t1q+rxcd5l0I/gfb9f+9V3eilkEPBEmskuK7jwb1WhSfqN+Llz0vZDt4KraYeyTrUJhqb3k8jt0ewgJMeG56383aBetU4F4FvAVEkU40OcbBkTYQ3dduLalvYVu3HmBDhTOWgexRL7oj3V9BgoTCSgAWO4YCM/HNjYeHrVsoW6M952Ofq4B3gjoj97ydhigmoOVMqxf2DxwoxYXGulwEPPtg4Ld5QjPG36HkKV9FcCkS5rvkNsnzWxbM8hdMsBnilhcXjbC0LV/xp70TD9EG5U5P9v55Cwvj/+kNnZmGD2xM8ufWl", "ansible_python_version": "3.5.3", "ansible_system_capabilities": ["cap_chown", "cap_dac_override", "cap_dac_read_search", "cap_fowner", "cap_fsetid", "cap_kill", "cap_setgid", "cap_setuid", "cap_setpcap", "cap_linux_immutable", "cap_net_bind_service", "cap_net_broadcast", "cap_net_admin", "cap_net_raw", "cap_ipc_lock", "cap_ipc_owner", "cap_sys_module", "cap_sys_rawio", "cap_sys_chroot", "cap_sys_ptrace", "cap_sys_pacct", "cap_sys_admin", "cap_sys_boot", "cap_sys_nice", "cap_sys_resource", "cap_sys_time", "cap_sys_tty_config", "cap_mknod", "cap_lease", "cap_audit_write", "cap_audit_control", "cap_setfcap", "cap_mac_override", "cap_mac_admin", "cap_syslog", "cap_wake_alarm", "cap_block_suspend", "cap_audit_read+ep"], "ansible_distribution_file_variety": "Debian", "ansible_user_id": "root", "ansible_cmdline": {"BOOT_IMAGE": "/vmlinuz-4.9.0-9-amd64", "quiet": true, "ro": true, "root": "/dev/mapper/node1--vg-root"}, "ansible_os_family": "Debian", "ansible_distribution_file_parsed": true, "ansible_apparmor": {"status": "disabled"}, "ansible_effective_group_id": 0, "ansible_fips": false, "ansible_ssh_host_key_dsa_public": "AAAAB3NzaC1kc3MAAACBAPvoNFnY9H0HtAyv3MSLpQXwQOvV+RuRRfD1RpmoHgURYab1Cr7PBm2/UgBB8iMM2XZog0a9MzBZGjJqkUhqbuzEVEGEwZ9mZ8uSE6crSFrg3uidsqkg8k/EtqQ8EpxAQNCOy/LE3zbJyzfD2q75CTZgods20p+6ZjKzABYU3gEhAAAAFQCOrn8M/nSewheQmO6T3AVk1xL0WwAAAIA9/kdXIZkte0l0JaJb4ntoVlXJ6tlZNh/jBxUrifrrnWkUWjDAn8wrEfKqhdmW/JFum4I6e85qw2Ya2UnFkMDar7dEfymOoUcfj83lP9riGt7kLecy+7TpCUaDlN0l4sHoDWWNkjKk9eTgTEIzIBQx38bmG6onxZG1jhvENkWY9gAAAIBn/pNUctLj+rE3vxebnp6a2RgYzpd9EmpC3Jinxh7jxHEcuv/r6ZqFJuMA5t4sai3amecT/cF0sTi6/BhtrOkrB5FIeebDEPyXr8HHdGVw/huly/qGuBpTKVEyp0ZMm5wba4ZT4DK3FU83AAd917X8rCAQGv66JHZ68/7Ts7Dqpg==", "ansible_user_uid": 0, "ansible_hostname": "Node1", "ansible_distribution_version": "9.9", "ansible_real_group_id": 0, "ansible_distribution": "Debian", "ansible_pkg_mgr": "apt", "ansible_selinux": {"status": "Missing selinux Python library"}, "ansible_user_gid": 0, "ansible_user_dir": "/root", "ansible_architecture": "x86_64", "ansible_distribution_file_path": "/etc/os-release", "ansible_selinux_python_present": false, "ansible_kernel": "4.9.0-9-amd64"}}\n', 'OpenSSH_7.9p1, OpenSSL 1.1.1d 10 Sep 2019\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug2: resolve_canonicalize: hostname 10.220.21.122 is address\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 4 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 4361\r\ndebug3: mux_client_request_session: session request sent\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
  329.  
  330. TASK [noc : gather py3 facts] **************************************************
  331. task path: /opt/tower/var/tower/playbooks/NOC/noc_roles/noc/tasks/init_venv_python3.yml:2
  332. ok: [Node1]
  333. Read vars_file '../../vars/main.yml'
  334. Read vars_file '../../vars/{{ ansible_distribution }}.yml'
  335. Using module file /opt/tower/lib/python2.7/site-packages/ansible/modules/files/stat.py
  336. <10.220.21.122> ESTABLISH SSH CONNECTION FOR USER: ansible
  337. <10.220.21.122> SSH: ansible.cfg set ssh_args: (-C)(-o)(ControlMaster=auto)(-o)(ControlPersist=60s)
  338. <10.220.21.122> SSH: ANSIBLE_HOST_KEY_CHECKING/host_key_checking disabled: (-o)(StrictHostKeyChecking=no)
  339. <10.220.21.122> SSH: ANSIBLE_REMOTE_PORT/remote_port/ansible_port set: (-o)(Port=22)
  340. <10.220.21.122> SSH: ANSIBLE_PRIVATE_KEY_FILE/private_key_file/ansible_ssh_private_key_file set: (-o)(IdentityFile="/opt/tower/var/tower/data/deploy_keys/id_rsa")
  341. <10.220.21.122> SSH: ansible_password/ansible_ssh_pass not set: (-o)(KbdInteractiveAuthentication=no)(-o)(PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey)(-o)(PasswordAuthentication=no)
  342. <10.220.21.122> SSH: ANSIBLE_REMOTE_USER/remote_user/ansible_user/user/-u set: (-o)(User=ansible)
  343. <10.220.21.122> SSH: ANSIBLE_TIMEOUT/timeout set: (-o)(ConnectTimeout=10)
  344. <10.220.21.122> SSH: found only ControlPersist; added ControlPath: (-o)(ControlPath=/root/.ansible/cp/ansible-ssh-%r-%h-%r)
  345. <10.220.21.122> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o Port=22 -o 'IdentityFile="/opt/tower/var/tower/data/deploy_keys/id_rsa"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ansible -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/ansible-ssh-%r-%h-%r 10.220.21.122 '/bin/sh -c '"'"'sudo -H -S -n -u root /bin/sh -c '"'"'"'"'"'"'"'"'echo BECOME-SUCCESS-sowyrhaiecfkzpkgzgzjblfwhdubcmau; /usr/bin/python'"'"'"'"'"'"'"'"' && sleep 0'"'"''
  346. Escalation succeeded
  347. <10.220.21.122> (0, '\n{"invocation": {"module_args": {"checksum_algorithm": "sha1", "get_checksum": true, "follow": false, "path": "/opt/noc/bin/python2", "get_md5": null, "get_mime": true, "get_attributes": true}}, "stat": {"charset": "binary", "uid": 0, "exists": true, "attr_flags": "e", "woth": false, "isreg": true, "device_type": 0, "mtime": 1537428140.9439983, "block_size": 4096, "inode": 657573, "isgid": false, "size": 3781768, "executable": true, "isuid": false, "readable": true, "version": "4122526866", "pw_name": "root", "gid": 0, "ischr": false, "wusr": true, "writeable": true, "mimetype": "application/x-executable", "blocks": 7392, "xoth": true, "islnk": false, "nlink": 1, "issock": false, "rgrp": true, "gr_name": "root", "path": "/opt/noc/bin/python2", "xusr": true, "atime": 1582708435.5640008, "isdir": false, "ctime": 1537428140.9439983, "isblk": false, "wgrp": false, "checksum": "35675f42b1e4e184932134e8badf060d0278889f", "dev": 65024, "roth": true, "isfifo": false, "mode": "0755", "xgrp": true, "rusr": true, "attributes": ["extents"]}, "changed": false}\n', 'OpenSSH_7.9p1, OpenSSL 1.1.1d 10 Sep 2019\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug2: resolve_canonicalize: hostname 10.220.21.122 is address\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 4 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 4361\r\ndebug3: mux_client_request_session: session request sent\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
  348.  
  349. TASK [noc : Check if we have NOC/bin/ folder with py2] *************************
  350. task path: /opt/tower/var/tower/playbooks/NOC/noc_roles/noc/tasks/init_venv_python3.yml:9
  351. ok: [Node1] => {
  352. "changed": false,
  353. "invocation": {
  354. "module_args": {
  355. "checksum_algorithm": "sha1",
  356. "follow": false,
  357. "get_attributes": true,
  358. "get_checksum": true,
  359. "get_md5": null,
  360. "get_mime": true,
  361. "path": "/opt/noc/bin/python2"
  362. }
  363. },
  364. "stat": {
  365. "atime": 1582708435.5640008,
  366. "attr_flags": "e",
  367. "attributes": [
  368. "extents"
  369. ],
  370. "block_size": 4096,
  371. "blocks": 7392,
  372. "charset": "binary",
  373. "checksum": "35675f42b1e4e184932134e8badf060d0278889f",
  374. "ctime": 1537428140.9439983,
  375. "dev": 65024,
  376. "device_type": 0,
  377. "executable": true,
  378. "exists": true,
  379. "gid": 0,
  380. "gr_name": "root",
  381. "inode": 657573,
  382. "isblk": false,
  383. "ischr": false,
  384. "isdir": false,
  385. "isfifo": false,
  386. "isgid": false,
  387. "islnk": false,
  388. "isreg": true,
  389. "issock": false,
  390. "isuid": false,
  391. "mimetype": "application/x-executable",
  392. "mode": "0755",
  393. "mtime": 1537428140.9439983,
  394. "nlink": 1,
  395. "path": "/opt/noc/bin/python2",
  396. "pw_name": "root",
  397. "readable": true,
  398. "rgrp": true,
  399. "roth": true,
  400. "rusr": true,
  401. "size": 3781768,
  402. "uid": 0,
  403. "version": "4122526866",
  404. "wgrp": false,
  405. "woth": false,
  406. "writeable": true,
  407. "wusr": true,
  408. "xgrp": true,
  409. "xoth": true,
  410. "xusr": true
  411. }
  412. }
  413. Read vars_file '../../vars/main.yml'
  414. Read vars_file '../../vars/{{ ansible_distribution }}.yml'
  415. Using module_utils file /opt/tower/lib/python2.7/site-packages/ansible/module_utils/_text.py
  416. Using module_utils file /opt/tower/lib/python2.7/site-packages/ansible/module_utils/basic.py
  417. Using module_utils file /opt/tower/lib/python2.7/site-packages/ansible/module_utils/six/__init__.py
  418. Using module_utils file /opt/tower/lib/python2.7/site-packages/ansible/module_utils/parsing/convert_bool.py
  419. Using module_utils file /opt/tower/lib/python2.7/site-packages/ansible/module_utils/common/_collections_compat.py
  420. Using module_utils file /opt/tower/lib/python2.7/site-packages/ansible/module_utils/common/file.py
  421. Using module_utils file /opt/tower/lib/python2.7/site-packages/ansible/module_utils/parsing/__init__.py
  422. Using module_utils file /opt/tower/lib/python2.7/site-packages/ansible/module_utils/pycompat24.py
  423. Using module_utils file /opt/tower/lib/python2.7/site-packages/ansible/module_utils/common/process.py
  424. Using module_utils file /opt/tower/lib/python2.7/site-packages/ansible/module_utils/common/__init__.py
  425. Using module file /opt/tower/lib/python2.7/site-packages/ansible/modules/files/archive.py
  426. <10.220.21.122> ESTABLISH SSH CONNECTION FOR USER: ansible
  427. <10.220.21.122> SSH: ansible.cfg set ssh_args: (-C)(-o)(ControlMaster=auto)(-o)(ControlPersist=60s)
  428. <10.220.21.122> SSH: ANSIBLE_HOST_KEY_CHECKING/host_key_checking disabled: (-o)(StrictHostKeyChecking=no)
  429. <10.220.21.122> SSH: ANSIBLE_REMOTE_PORT/remote_port/ansible_port set: (-o)(Port=22)
  430. <10.220.21.122> SSH: ANSIBLE_PRIVATE_KEY_FILE/private_key_file/ansible_ssh_private_key_file set: (-o)(IdentityFile="/opt/tower/var/tower/data/deploy_keys/id_rsa")
  431. <10.220.21.122> SSH: ansible_password/ansible_ssh_pass not set: (-o)(KbdInteractiveAuthentication=no)(-o)(PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey)(-o)(PasswordAuthentication=no)
  432. <10.220.21.122> SSH: ANSIBLE_REMOTE_USER/remote_user/ansible_user/user/-u set: (-o)(User=ansible)
  433. <10.220.21.122> SSH: ANSIBLE_TIMEOUT/timeout set: (-o)(ConnectTimeout=10)
  434. <10.220.21.122> SSH: found only ControlPersist; added ControlPath: (-o)(ControlPath=/root/.ansible/cp/ansible-ssh-%r-%h-%r)
  435. <10.220.21.122> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o Port=22 -o 'IdentityFile="/opt/tower/var/tower/data/deploy_keys/id_rsa"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ansible -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/ansible-ssh-%r-%h-%r 10.220.21.122 '/bin/sh -c '"'"'sudo -H -S -n -u root /bin/sh -c '"'"'"'"'"'"'"'"'echo BECOME-SUCCESS-vuqzizkszpqdsnotyuvjajzcektnbpsk; /usr/bin/python'"'"'"'"'"'"'"'"' && sleep 0'"'"''
  436. Escalation succeeded
  437. <10.220.21.122> (1, '\n{"msg": "Error when writing tar.bz2 archive at /opt/noc/../noc_on_python2.tbz: [Errno 2] \\u041d\\u0435\\u0442 \\u0442\\u0430\\u043a\\u043e\\u0433\\u043e \\u0444\\u0430\\u0439\\u043b\\u0430 \\u0438\\u043b\\u0438 \\u043a\\u0430\\u0442\\u0430\\u043b\\u043e\\u0433\\u0430: \'/opt/noc/local/.style.yapf\'", "failed": true, "exception": "Traceback (most recent call last):\\n File \\"/tmp/ansible_archive_payload_hXszDT/__main__.py\\", line 351, in main\\n if not filecmp.cmp(fullpath, dest):\\n File \\"/usr/lib/python2.7/filecmp.py\\", line 42, in cmp\\n s1 = _sig(os.stat(f1))\\nOSError: [Errno 2] \\u041d\\u0435\\u0442 \\u0442\\u0430\\u043a\\u043e\\u0433\\u043e \\u0444\\u0430\\u0439\\u043b\\u0430 \\u0438\\u043b\\u0438 \\u043a\\u0430\\u0442\\u0430\\u043b\\u043e\\u0433\\u0430: \'/opt/noc/local/.style.yapf\'\\n", "invocation": {"module_args": {"directory_mode": null, "force": null, "remote_src": null, "path": ["/opt/noc"], "owner": null, "follow": false, "exclude_path": null, "group": null, "unsafe_writes": null, "setype": null, "content": null, "serole": null, "format": "bz2", "dest": "/opt/noc/../noc_on_python2.tbz", "selevel": null, "regexp": null, "src": null, "seuser": null, "remove": false, "delimiter": null, "mode": null, "attributes": null, "backup": null}}}\n', 'OpenSSH_7.9p1, OpenSSL 1.1.1d 10 Sep 2019\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug2: resolve_canonicalize: hostname 10.220.21.122 is address\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 4 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 4361\r\ndebug3: mux_client_request_session: session request sent\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 1\r\n')
  438. <10.220.21.122> Failed to connect to the host via ssh: OpenSSH_7.9p1, OpenSSL 1.1.1d 10 Sep 2019
  439. debug1: Reading configuration data /etc/ssh/ssh_config
  440. debug2: resolve_canonicalize: hostname 10.220.21.122 is address
  441. debug1: auto-mux: Trying existing master
  442. debug2: fd 4 setting O_NONBLOCK
  443. debug2: mux_client_hello_exchange: master version 4
  444. debug3: mux_client_forwards: request forwardings: 0 local, 0 remote
  445. debug3: mux_client_request_session: entering
  446. debug3: mux_client_request_alive: entering
  447. debug3: mux_client_request_alive: done pid = 4361
  448. debug3: mux_client_request_session: session request sent
  449. debug3: mux_client_read_packet: read header failed: Broken pipe
  450. debug2: Received exit status from master 1
  451.  
  452. TASK [noc : archive current noc dir] *******************************************
  453. task path: /opt/tower/var/tower/playbooks/NOC/noc_roles/noc/tasks/init_venv_python3.yml:16
  454. The full traceback is:
  455. Traceback (most recent call last):
  456. File "/tmp/ansible_archive_payload_hXszDT/__main__.py", line 351, in main
  457. if not filecmp.cmp(fullpath, dest):
  458. File "/usr/lib/python2.7/filecmp.py", line 42, in cmp
  459. s1 = _sig(os.stat(f1))
  460. OSError: [Errno 2] Нет такого файла или каталога: '/opt/noc/local/.style.yapf'
  461. fatal: [Node1]: FAILED! => {
  462. "changed": false,
  463. "invocation": {
  464. "module_args": {
  465. "attributes": null,
  466. "backup": null,
  467. "content": null,
  468. "delimiter": null,
  469. "dest": "/opt/noc/../noc_on_python2.tbz",
  470. "directory_mode": null,
  471. "exclude_path": null,
  472. "follow": false,
  473. "force": null,
  474. "format": "bz2",
  475. "group": null,
  476. "mode": null,
  477. "owner": null,
  478. "path": [
  479. "/opt/noc"
  480. ],
  481. "regexp": null,
  482. "remote_src": null,
  483. "remove": false,
  484. "selevel": null,
  485. "serole": null,
  486. "setype": null,
  487. "seuser": null,
  488. "src": null,
  489. "unsafe_writes": null
  490. }
  491. }
  492. }
  493.  
  494. MSG:
  495.  
  496. Error when writing tar.bz2 archive at /opt/noc/../noc_on_python2.tbz: [Errno 2] Нет такого файла или каталога: '/opt/noc/local/.style.yapf'
  497. to retry, use: --limit @/opt/tower/var/tower/playbooks/NOC/site.retry
  498.  
  499. PLAY RECAP *********************************************************************
  500. Node1 : ok=332 changed=7 unreachable=0 failed=1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement