New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Var is not set before a role call from a playbook #336

Closed
nikitakazantsev12 opened this Issue Aug 3, 2018 · 3 comments

Comments

Projects
None yet
2 participants
@nikitakazantsev12

nikitakazantsev12 commented Aug 3, 2018

In a role called from a playbook we have the following task:

- name: Generate file.txt
  template:
    src: glogin.sql.j2
    dest: "{{ home }}/file.txt"
    backup: yes
  with_items:
    - "{{ databases }}"
  become: yes
  become_user: "{{ user }}"

Expected result: the file file.txt created in given path.

Actual result:

An exception occurred during task execution. To see the full traceback, use -vvv. The error was:     names = os.listdir(path)
fatal: [xxx]: FAILED! =>
  msg: Unexpected failure during module execution.
  stdout: ''

Without "strategy: mitogen_linear" (with strategy: linear) the task works as expected.

Looks like when using mitogen strategy the var is not set before role is being called from a playbook.

@nikitakazantsev12 nikitakazantsev12 changed the title from Die Vars werden nicht vor dem Rollenaufruf gesetzt to Var is not set before a role call from a playbook Aug 3, 2018

@dw

This comment has been minimized.

Owner

dw commented Aug 3, 2018

Thanks for reporting! This looks like a variant of a bug that's been reported a few times already.

Can you please re-run with "-vvv" enabled, and include a copy of the full exception text. Thanks again!

@nikitakazantsev12

This comment has been minimized.

nikitakazantsev12 commented Aug 7, 2018

TASK [xxx : Generate file.txt] ******************************************************
task path: /path/tasks/main.yml:253
[pid 90957] 15:56:10.971842 D ansible_mitogen.mixins: _make_tmp_path(remote_user=None)
[pid 90957] 15:56:10.972383 D ansible_mitogen.mixins: _remote_expand_user(u'~/.ansible/tmp', sudoable=False)
[pid 90957] 15:56:10.974174 D mitogen: unix.connect(path='/tmp/mitogen_unix_A2o6Xm')
[pid 90957] 15:56:10.975390 D mitogen: unix.connect(): local ID is 7150, remote is 0
[pid 90053] 15:56:10.978740 D mitogen: Context(2, u'ssh.server01').call_async(): mitogen.parent._proxy_connect(method_name=u'sudo', name=None, kwargs=Kwargs({u'username': u'oracle', u'profiling': False, u'sudo_path': None, u'python_path': [u'/usr/bin/python'], 'unidirectional': True, u'debug': False, u'password': None, u'sudo_args': [u'-H', u'-S', u'-n'], u'connect_timeout': 10}))
[pid 90053] 15:56:10.989367 D mitogen.ctx.ssh.server01: mitogen: mitogen.sudo.Stream(u'default').connect()
[pid 90053] 15:56:11.005797 D mitogen.ctx.ssh.server01: mitogen.sudo: sudo command line: ['sudo', '-u', u'oracle', '-H', u'/usr/bin/python', '-c', u'import codecs,os,sys;_=codecs.decode;exec(_(_("...".encode(),"base64"),"zip"))']
[pid 90053] 15:56:11.017979 D mitogen.ctx.ssh.server01: mitogen: hybrid_tty_create_child() pid=12110 stdio=140, tty=139, cmd: sudo -u oracle -H /usr/bin/python -c "import codecs,os,sys;_=codecs.decode;exec(_(_(\"...".encode(),\"base64\"),\"zip\"))"
[pid 90053] 15:56:11.018460 D mitogen.ctx.ssh.server01: mitogen: mitogen.sudo.Stream(u'local.12110').connect(): child process stdin/stdout=140
[pid 90053] 15:56:11.076905 D mitogen.ctx.ssh.server01: mitogen.sudo: mitogen.sudo.Stream(u'local.12110'): received 'MITO000\n'
[pid 90053] 15:56:11.077259 D mitogen.ctx.ssh.server01: mitogen: mitogen.sudo.Stream(u'local.12110')._ec0_received()
[pid 90053] 15:56:11.088146 D mitogen: Adding route to 1008 via mitogen.ssh.Stream(u'ssh.server01')
[pid 90053] 15:56:11.088414 D mitogen: Router(Broker(0x2e1d8d0)).add_route(1008, mitogen.ssh.Stream(u'ssh.server01'))
[pid 90053] 15:56:11.090909 D mitogen: Context(1008, u'ssh.server01.sudo.oracle').call_async(): ansible_mitogen.target.init_child(log_level=10)
[pid 90053] 15:56:11.095242 D mitogen.ctx.ssh.server01: mitogen: ModuleForwarder(Router(Broker(0x264c990)))._on_forward_module() sending u'ansible' to 1008 via 1008
[pid 90053] 15:56:11.095617 D mitogen.ctx.ssh.server01: mitogen: ModuleForwarder(Router(Broker(0x264c990)))._on_forward_module() sending u'ansible.module_utils' to 1008 via 1008
[pid 90053] 15:56:11.095933 D mitogen.ctx.ssh.server01: mitogen: ModuleForwarder(Router(Broker(0x264c990)))._on_forward_module() sending u'ansible.module_utils.basic' to 1008 via 1008
[pid 90053] 15:56:11.096237 D mitogen.ctx.ssh.server01: mitogen: ModuleForwarder(Router(Broker(0x264c990)))._on_forward_module() sending u'ansible.module_utils.json_utils' to 1008 via 1008
[pid 90053] 15:56:11.096523 D mitogen.ctx.ssh.server01: mitogen: ModuleForwarder(Router(Broker(0x264c990)))._on_forward_module() sending u'ansible_mitogen' to 1008 via 1008
[pid 90053] 15:56:11.096809 D mitogen.ctx.ssh.server01: mitogen: ModuleForwarder(Router(Broker(0x264c990)))._on_forward_module() sending u'ansible_mitogen.runner' to 1008 via 1008
[pid 90053] 15:56:11.097132 D mitogen.ctx.ssh.server01: mitogen: ModuleForwarder(Router(Broker(0x264c990)))._send_module_and_related(u'ansible_mitogen.runner'): absent: u'mitogen'
[pid 90958] 15:56:11.138978 D ansible_mitogen.mixins: _make_tmp_path(remote_user=None)
[pid 90958] 15:56:11.139596 D ansible_mitogen.mixins: _remote_expand_user(u'~/.ansible/tmp', sudoable=False)
[pid 90958] 15:56:11.146418 D mitogen: unix.connect(path='/tmp/mitogen_unix_A2o6Xm')
[pid 90958] 15:56:11.147251 D mitogen: unix.connect(): local ID is 7151, remote is 0
[pid 90053] 15:56:11.150326 D mitogen: Context(4, u'ssh.server02').call_async(): mitogen.parent._proxy_connect(method_name=u'sudo', name=None, kwargs=Kwargs({u'username': u'oracle', u'profiling': False, u'sudo_path': None, u'python_path': [u'/usr/bin/python'], 'unidirectional': True, u'debug': False, u'password': None, u'sudo_args': [u'-H', u'-S', u'-n'], u'connect_timeout': 10}))
[pid 90053] 15:56:11.160137 D mitogen.ctx.ssh.server02: mitogen: mitogen.sudo.Stream(u'default').connect()
[pid 90053] 15:56:11.171153 D mitogen.ctx.ssh.server02: mitogen.sudo: sudo command line: ['sudo', '-u', u'oracle', '-H', u'/usr/bin/python', '-c', u'import codecs,os,sys;_=codecs.decode;exec(_(_("...".encode(),"base64"),"zip"))']
[pid 90053] 15:56:11.185479 D mitogen.ctx.ssh.server02: mitogen: hybrid_tty_create_child() pid=10095 stdio=140, tty=139, cmd: sudo -u oracle -H /usr/bin/python -c "import codecs,os,sys;_=codecs.decode;exec(_(_(\"...".encode(),\"base64\"),\"zip\"))"
[pid 90053] 15:56:11.185679 D mitogen.ctx.ssh.server02: mitogen: mitogen.sudo.Stream(u'local.10095').connect(): child process stdin/stdout=140
[pid 90053] 15:56:11.196009 D mitogen.ctx.ssh.server01.sudo.oracle: mitogen: Importer(): 'encodings.ascii' is submodule of a package we did not load
[pid 90053] 15:56:11.198455 D mitogen.ctx.ssh.server01.sudo.oracle: mitogen: Importer(): 'json.decoder' is submodule of a package we did not load
[pid 90053] 15:56:11.203255 D mitogen.ctx.ssh.server01.sudo.oracle: mitogen: Importer(): 'json.re' is submodule of a package we did not load
[pid 90053] 15:56:11.208807 D mitogen.ctx.ssh.server01.sudo.oracle: mitogen: Importer(): 'json.sys' is submodule of a package we did not load
[pid 90053] 15:56:11.211186 D mitogen.ctx.ssh.server01.sudo.oracle: mitogen: Importer(): 'json.json' is submodule of a package we did not load
[pid 90053] 15:56:11.213550 D mitogen.ctx.ssh.server01.sudo.oracle: mitogen: Importer(): 'json.scanner' is submodule of a package we did not load
[pid 90053] 15:56:11.214604 D mitogen.ctx.ssh.server01.sudo.oracle: mitogen: Importer(): 'json.sre_parse' is submodule of a package we did not load
[pid 90053] 15:56:11.218107 D mitogen.ctx.ssh.server01.sudo.oracle: mitogen: Importer(): 'json.sre_compile' is submodule of a package we did not load
[pid 90053] 15:56:11.219473 D mitogen.ctx.ssh.server01.sudo.oracle: mitogen: Importer(): 'json.sre_constants' is submodule of a package we did not load
[pid 90053] 15:56:11.221515 D mitogen.ctx.ssh.server01.sudo.oracle: mitogen: Importer(): 'json._json' is submodule of a package we did not load
[pid 90053] 15:56:11.221980 D mitogen.ctx.ssh.server01.sudo.oracle: mitogen: Importer(): 'json.encoder' is submodule of a package we did not load
[pid 90053] 15:56:11.222469 D mitogen.ctx.ssh.server01.sudo.oracle: mitogen: Importer(): 'json.math' is submodule of a package we did not load
[pid 90053] 15:56:11.224562 D mitogen.ctx.ssh.server01.sudo.oracle: mitogen: Importer(): master doesn't know 'ansible.module_utils.json'
[pid 90053] 15:56:11.236323 D mitogen.ctx.ssh.server01.sudo.oracle: mitogen: Importer(): 'ctypes.os' is submodule of a package we did not load
[pid 90053] 15:56:11.238816 D mitogen.ctx.ssh.server01.sudo.oracle: mitogen: Importer(): 'ctypes.sys' is submodule of a package we did not load
[pid 90053] 15:56:11.239191 D mitogen.ctx.ssh.server01.sudo.oracle: mitogen: Importer(): 'ctypes._ctypes' is submodule of a package we did not load
[pid 90053] 15:56:11.239464 D mitogen.ctx.ssh.server01.sudo.oracle: mitogen: Importer(): 'ctypes.struct' is submodule of a package we did not load
[pid 90053] 15:56:11.239752 D mitogen.ctx.ssh.server01.sudo.oracle: mitogen: Importer(): 'ctypes.ctypes' is submodule of a package we did not load
[pid 90053] 15:56:11.240033 D mitogen.ctx.ssh.server01.sudo.oracle: mitogen: Importer(): 'ctypes._endian' is submodule of a package we did not load
[pid 90053] 15:56:11.240340 D mitogen.ctx.ssh.server02: mitogen.sudo: mitogen.sudo.Stream(u'local.10095'): received 'MITO000\n'
[pid 90053] 15:56:11.240596 D mitogen.ctx.ssh.server02: mitogen: mitogen.sudo.Stream(u'local.10095')._ec0_received()
[pid 90053] 15:56:11.251725 D mitogen: Adding route to 8 via mitogen.ssh.Stream(u'ssh.server02')
[pid 90053] 15:56:11.251958 D mitogen: Router(Broker(0x2e1d8d0)).add_route(8, mitogen.ssh.Stream(u'ssh.server02'))
[pid 90053] 15:56:11.253311 D mitogen: Context(8, u'ssh.server02.sudo.oracle').call_async(): ansible_mitogen.target.init_child(log_level=10)
[pid 90053] 15:56:11.255729 D mitogen.ctx.ssh.server02: mitogen: ModuleForwarder(Router(Broker(0x237a990)))._on_forward_module() sending u'ansible' to 8 via 8
[pid 90053] 15:56:11.256940 D mitogen.ctx.ssh.server02: mitogen: ModuleForwarder(Router(Broker(0x237a990)))._on_forward_module() sending u'ansible.module_utils' to 8 via 8
[pid 90053] 15:56:11.259180 D mitogen.ctx.ssh.server02: mitogen: ModuleForwarder(Router(Broker(0x237a990)))._on_forward_module() sending u'ansible.module_utils.basic' to 8 via 8
[pid 90053] 15:56:11.259467 D mitogen.ctx.ssh.server02: mitogen: ModuleForwarder(Router(Broker(0x237a990)))._on_forward_module() sending u'ansible.module_utils.json_utils' to 8 via 8
[pid 90053] 15:56:11.259759 D mitogen.ctx.ssh.server02: mitogen: ModuleForwarder(Router(Broker(0x237a990)))._on_forward_module() sending u'ansible_mitogen' to 8 via 8
[pid 90053] 15:56:11.260046 D mitogen.ctx.ssh.server02: mitogen: ModuleForwarder(Router(Broker(0x237a990)))._on_forward_module() sending u'ansible_mitogen.runner' to 8 via 8
[pid 90053] 15:56:11.260288 D mitogen.ctx.ssh.server02: mitogen: ModuleForwarder(Router(Broker(0x237a990)))._send_module_and_related(u'ansible_mitogen.runner'): absent: u'mitogen'
[pid 90053] 15:56:11.288406 D mitogen.ctx.ssh.server01.sudo.oracle: mitogen: Importer(): master doesn't know 'ansible.module_utils.locale'
[pid 90053] 15:56:11.288779 D mitogen.ctx.ssh.server01.sudo.oracle: mitogen: Importer(): master doesn't know 'ansible.module_utils.os'
[pid 90053] 15:56:11.289138 D mitogen.ctx.ssh.server01.sudo.oracle: mitogen: Importer(): master doesn't know 'ansible.module_utils.re'
[pid 90053] 15:56:11.289445 D mitogen.ctx.ssh.server01.sudo.oracle: mitogen: Importer(): master doesn't know 'ansible.module_utils.shlex'
[pid 90053] 15:56:11.290872 D mitogen.ctx.ssh.server01.sudo.oracle: mitogen: Importer(): master doesn't know 'ansible.module_utils.subprocess'
[pid 90053] 15:56:11.291352 D mitogen.ctx.ssh.server01.sudo.oracle: mitogen: Importer(): master doesn't know 'ansible.module_utils.sys'
[pid 90053] 15:56:11.292122 D mitogen.ctx.ssh.server01.sudo.oracle: mitogen: Importer(): master doesn't know 'ansible.module_utils.types'
[pid 90053] 15:56:11.294030 D mitogen.ctx.ssh.server01.sudo.oracle: mitogen: Importer(): master doesn't know 'ansible.module_utils.time'
[pid 90053] 15:56:11.296215 D mitogen.ctx.ssh.server01.sudo.oracle: mitogen: Importer(): master doesn't know 'ansible.module_utils.select'
[pid 90053] 15:56:11.298514 D mitogen.ctx.ssh.server01.sudo.oracle: mitogen: Importer(): master doesn't know 'ansible.module_utils.shutil'
[pid 90053] 15:56:11.300070 D mitogen.ctx.ssh.server01.sudo.oracle: mitogen: Importer(): master doesn't know 'ansible.module_utils.stat'
[pid 90053] 15:56:11.300381 D mitogen.ctx.ssh.server01.sudo.oracle: mitogen: Importer(): master doesn't know 'ansible.module_utils.tempfile'
[pid 90053] 15:56:11.302516 D mitogen.ctx.ssh.server01.sudo.oracle: mitogen: Importer(): master doesn't know 'ansible.module_utils.traceback'
[pid 90053] 15:56:11.303610 D mitogen.ctx.ssh.server01.sudo.oracle: mitogen: Importer(): master doesn't know 'ansible.module_utils.grp'
[pid 90053] 15:56:11.306521 D mitogen.ctx.ssh.server01.sudo.oracle: mitogen: Importer(): master doesn't know 'ansible.module_utils.pwd'
[pid 90053] 15:56:11.309900 D mitogen.ctx.ssh.server01.sudo.oracle: mitogen: Importer(): master doesn't know 'ansible.module_utils.platform'
[pid 90053] 15:56:11.313183 D mitogen.ctx.ssh.server01.sudo.oracle: mitogen: Importer(): master doesn't know 'ansible.module_utils.errno'
[pid 90053] 15:56:11.316793 D mitogen.ctx.ssh.server01.sudo.oracle: mitogen: Importer(): master doesn't know 'ansible.module_utils.datetime'
[pid 90053] 15:56:11.317975 D mitogen.ctx.ssh.server01.sudo.oracle: mitogen: Importer(): master doesn't know 'ansible.module_utils.collections'
[pid 90053] 15:56:11.318364 D mitogen.ctx.ssh.server01.sudo.oracle: mitogen: Importer(): master doesn't know 'ansible.module_utils.itertools'
[pid 90053] 15:56:11.318701 D mitogen.ctx.ssh.server01.sudo.oracle: mitogen: Importer(): master doesn't know 'ansible.module_utils.syslog'
[pid 90053] 15:56:11.319003 D mitogen.ctx.ssh.server01.sudo.oracle: mitogen: Importer(): master doesn't know 'ansible.module_utils.systemd'
[pid 90053] 15:56:11.319270 D mitogen.ctx.ssh.server01.sudo.oracle: mitogen: Importer(): master doesn't know 'ansible.module_utils.selinux'
[pid 90053] 15:56:11.319518 D mitogen.ctx.ssh.server01.sudo.oracle: mitogen: Importer(): 'selinux.sys' is submodule of a package we did not load
[pid 90053] 15:56:11.319761 D mitogen.ctx.ssh.server01.sudo.oracle: mitogen: Importer(): 'selinux.os' is submodule of a package we did not load
[pid 90053] 15:56:11.320023 D mitogen.ctx.ssh.server01.sudo.oracle: mitogen: Importer(): 'selinux.imp' is submodule of a package we did not load
[pid 90053] 15:56:11.329784 D mitogen.ctx.ssh.server01.sudo.oracle: mitogen: Importer(): 'selinux.shutil' is submodule of a package we did not load
[pid 90053] 15:56:11.331526 D mitogen.ctx.ssh.server01.sudo.oracle: mitogen: Importer(): 'selinux.stat' is submodule of a package we did not load
[pid 90053] 15:56:11.331942 D mitogen.ctx.ssh.server01.sudo.oracle: mitogen: Importer(): master doesn't know 'ansible.module_utils.hashlib'
[pid 90053] 15:56:11.332956 D mitogen.ctx.ssh.server01.sudo.oracle: mitogen: Importer(): master doesn't know 'ansible.module_utils.ansible'
[pid 90053] 15:56:11.333619 D mitogen.ctx.ssh.server01.sudo.oracle: mitogen: Importer(): master doesn't know 'ansible.module_utils.ast'
[pid 90053] 15:56:11.334460 D mitogen.ctx.ssh.server01.sudo.oracle: mitogen: Importer(): master doesn't know 'ansible.module_utils.six.moves'
[pid 90053] 15:56:11.334856 D mitogen.ctx.ssh.server02.sudo.oracle: mitogen: Importer(): 'encodings.ascii' is submodule of a package we did not load
[pid 90053] 15:56:11.335990 D mitogen.ctx.ssh.server01.sudo.oracle: mitogen: Importer(): master doesn't know 'ansible.module_utils.codecs'
[pid 90053] 15:56:11.337845 D mitogen.ctx.ssh.server01.sudo.oracle: mitogen: Importer(): master doesn't know 'ansible.module_utils.parsing.ansible'
[pid 90053] 15:56:11.342539 D mitogen.ctx.ssh.server01.sudo.oracle: mitogen: Importer(): master doesn't know 'mitogen.logging'
[pid 90053] 15:56:11.343332 D mitogen.ctx.ssh.server01.sudo.oracle: mitogen: Importer(): master doesn't know 'mitogen.os'
[pid 90053] 15:56:11.343615 D mitogen.ctx.ssh.server01.sudo.oracle: mitogen: Importer(): master doesn't know 'mitogen.random'
[pid 90053] 15:56:11.343872 D mitogen.ctx.ssh.server01.sudo.oracle: mitogen: Importer(): master doesn't know 'mitogen.sys'
[pid 90053] 15:56:11.344160 D mitogen.ctx.ssh.server01.sudo.oracle: mitogen: Importer(): master doesn't know 'mitogen.threading'
[pid 90053] 15:56:11.344409 D mitogen.ctx.ssh.server01.sudo.oracle: mitogen: Importer(): master doesn't know 'mitogen.traceback'
[pid 90053] 15:56:11.344653 D mitogen.ctx.ssh.server01.sudo.oracle: mitogen: Importer(): master doesn't know 'mitogen.mitogen'
[pid 90053] 15:56:11.344968 D mitogen.ctx.ssh.server02.sudo.oracle: mitogen: Importer(): 'json.decoder' is submodule of a package we did not load
[pid 90053] 15:56:11.345233 D mitogen.ctx.ssh.server02.sudo.oracle: mitogen: Importer(): 'json.re' is submodule of a package we did not load
[pid 90053] 15:56:11.345479 D mitogen.ctx.ssh.server02.sudo.oracle: mitogen: Importer(): 'json.sys' is submodule of a package we did not load
[pid 90053] 15:56:11.350462 D mitogen.ctx.ssh.server02.sudo.oracle: mitogen: Importer(): 'json.json' is submodule of a package we did not load
[pid 90053] 15:56:11.350772 D mitogen.ctx.ssh.server02.sudo.oracle: mitogen: Importer(): 'json.scanner' is submodule of a package we did not load
[pid 90053] 15:56:11.353524 D mitogen.ctx.ssh.server02.sudo.oracle: mitogen: Importer(): 'json.sre_parse' is submodule of a package we did not load
[pid 90053] 15:56:11.356024 D mitogen.ctx.ssh.server02.sudo.oracle: mitogen: Importer(): 'json.sre_compile' is submodule of a package we did not load
[pid 90053] 15:56:11.356638 D mitogen.ctx.ssh.server02.sudo.oracle: mitogen: Importer(): 'json.sre_constants' is submodule of a package we did not load
[pid 90053] 15:56:11.362257 D mitogen.ctx.ssh.server02.sudo.oracle: mitogen: Importer(): 'json._json' is submodule of a package we did not load
[pid 90053] 15:56:11.362695 D mitogen.ctx.ssh.server02.sudo.oracle: mitogen: Importer(): 'json.encoder' is submodule of a package we did not load
[pid 90053] 15:56:11.363083 D mitogen.ctx.ssh.server01.sudo.oracle: mitogen: Importer(): master doesn't know 'mitogen.codecs'
[pid 90053] 15:56:11.363452 D mitogen.ctx.ssh.server02.sudo.oracle: mitogen: Importer(): 'json.math' is submodule of a package we did not load
[pid 90053] 15:56:11.365507 D mitogen.ctx.ssh.server02.sudo.oracle: mitogen: Importer(): master doesn't know 'ansible.module_utils.json'
[pid 90053] 15:56:11.366183 D mitogen.ctx.ssh.server01.sudo.oracle: mitogen: Importer(): master doesn't know 'mitogen.errno'
[pid 90053] 15:56:11.375232 D mitogen.ctx.ssh.server02.sudo.oracle: mitogen: Importer(): 'ctypes.os' is submodule of a package we did not load
[pid 90053] 15:56:11.375698 D mitogen.ctx.ssh.server01.sudo.oracle: mitogen: Importer(): master doesn't know 'mitogen.fcntl'
[pid 90053] 15:56:11.376743 D mitogen.ctx.ssh.server01.sudo.oracle: mitogen: Importer(): master doesn't know 'mitogen.getpass'
[pid 90053] 15:56:11.377729 D mitogen.ctx.ssh.server02.sudo.oracle: mitogen: Importer(): 'ctypes.sys' is submodule of a package we did not load
[pid 90053] 15:56:11.378420 D mitogen.ctx.ssh.server01.sudo.oracle: mitogen: Importer(): master doesn't know 'mitogen.inspect'
[pid 90053] 15:56:11.379132 D mitogen.ctx.ssh.server02.sudo.oracle: mitogen: Importer(): 'ctypes._ctypes' is submodule of a package we did not load
[pid 90053] 15:56:11.379446 D mitogen.ctx.ssh.server02.sudo.oracle: mitogen: Importer(): 'ctypes.struct' is submodule of a package we did not load
[pid 90053] 15:56:11.379732 D mitogen.ctx.ssh.server02.sudo.oracle: mitogen: Importer(): 'ctypes.ctypes' is submodule of a package we did not load
[pid 90053] 15:56:11.380034 D mitogen.ctx.ssh.server02.sudo.oracle: mitogen: Importer(): 'ctypes._endian' is submodule of a package we did not load
[pid 90053] 15:56:11.400784 D mitogen.ctx.ssh.server01.sudo.oracle: mitogen: Importer(): master doesn't know 'mitogen.signal'
[pid 90053] 15:56:11.401218 D mitogen.ctx.ssh.server01.sudo.oracle: mitogen: Importer(): master doesn't know 'mitogen.socket'
[pid 90053] 15:56:11.404625 D mitogen.ctx.ssh.server01.sudo.oracle: mitogen: Importer(): master doesn't know 'mitogen.subprocess'
[pid 90053] 15:56:11.405106 D mitogen.ctx.ssh.server01.sudo.oracle: mitogen: Importer(): master doesn't know 'mitogen.termios'
[pid 90053] 15:56:11.405433 D mitogen.ctx.ssh.server01.sudo.oracle: mitogen: Importer(): master doesn't know 'mitogen.textwrap'
[pid 90053] 15:56:11.405769 D mitogen.ctx.ssh.server01.sudo.oracle: mitogen: Importer(): master doesn't know 'mitogen.time'
[pid 90053] 15:56:11.406089 D mitogen.ctx.ssh.server01.sudo.oracle: mitogen: Importer(): master doesn't know 'mitogen.types'
[pid 90053] 15:56:11.406412 D mitogen.ctx.ssh.server01.sudo.oracle: mitogen: Importer(): master doesn't know 'mitogen.zlib'
[pid 90053] 15:56:11.406686 D mitogen.ctx.ssh.server01.sudo.oracle: mitogen: Importer(): master doesn't know 'mitogen.cStringIO'
[pid 90053] 15:56:11.406973 D mitogen.ctx.ssh.server01.sudo.oracle: mitogen: Importer(): master doesn't know 'mitogen.functools'
[pid 90053] 15:56:11.411324 D mitogen.ctx.ssh.server01.sudo.oracle: mitogen: Importer(): master doesn't know 'mitogen.compat.threading'
[pid 90053] 15:56:11.422573 D mitogen.ctx.ssh.server01.sudo.oracle: mitogen: Importer(): master doesn't know 'mitogen.grp'
[pid 90053] 15:56:11.423775 D mitogen.ctx.ssh.server01.sudo.oracle: mitogen: Importer(): master doesn't know 'mitogen.pprint'
[pid 90053] 15:56:11.425121 D mitogen.ctx.ssh.server02.sudo.oracle: mitogen: Importer(): master doesn't know 'ansible.module_utils.locale'
[pid 90053] 15:56:11.425502 D mitogen.ctx.ssh.server02.sudo.oracle: mitogen: Importer(): master doesn't know 'ansible.module_utils.os'
[pid 90053] 15:56:11.425962 D mitogen.ctx.ssh.server02.sudo.oracle: mitogen: Importer(): master doesn't know 'ansible.module_utils.re'
[pid 90053] 15:56:11.427284 D mitogen.ctx.ssh.server02.sudo.oracle: mitogen: Importer(): master doesn't know 'ansible.module_utils.shlex'
[pid 90053] 15:56:11.427938 D mitogen.ctx.ssh.server02.sudo.oracle: mitogen: Importer(): master doesn't know 'ansible.module_utils.subprocess'
[pid 90053] 15:56:11.428293 D mitogen.ctx.ssh.server02.sudo.oracle: mitogen: Importer(): master doesn't know 'ansible.module_utils.sys'
[pid 90053] 15:56:11.429123 D mitogen.ctx.ssh.server01.sudo.oracle: mitogen: Importer(): master doesn't know 'mitogen.pwd'
[pid 90053] 15:56:11.430770 D mitogen.ctx.ssh.server01.sudo.oracle: mitogen: Importer(): master doesn't know 'mitogen.stat'
[pid 90053] 15:56:11.432340 D mitogen.ctx.ssh.server01.sudo.oracle: mitogen: replaced Poller(0x7fa67ba59990) with EpollPoller(0xe0e690) (new: 4 readers, 0 writers; old: 4 readers, 0 writers)
[pid 90053] 15:56:11.432642 D mitogen.ctx.ssh.server01.sudo.oracle: mitogen: Router(Broker(0x7fa67ba59850)).upgrade()
[pid 90053] 15:56:11.432904 D mitogen: IdAllocator(Router(Broker(0x2e1d8d0))): allocating [7152..8152)
[pid 90053] 15:56:11.433173 D mitogen: IdAllocator(Router(Broker(0x2e1d8d0))): allocating [7152..8152) to Context(1008, u'ssh.server01.sudo.oracle')
[pid 90053] 15:56:11.436448 D mitogen.ctx.ssh.server02.sudo.oracle: mitogen: Importer(): master doesn't know 'ansible.module_utils.types'
[pid 90053] 15:56:11.437761 D mitogen.ctx.ssh.server02.sudo.oracle: mitogen: Importer(): master doesn't know 'ansible.module_utils.time'
[pid 90053] 15:56:11.438252 D mitogen.ctx.ssh.server02.sudo.oracle: mitogen: Importer(): master doesn't know 'ansible.module_utils.select'
[pid 90053] 15:56:11.440246 D mitogen.ctx.ssh.server01.sudo.oracle: mitogen: mitogen.fork.Stream(u'default').connect()
[pid 90053] 15:56:11.441055 D mitogen.ctx.ssh.server01.sudo.oracle: mitogen: mitogen.fork.Stream(u'fork.12125').connect(): child process stdin/stdout=15
[pid 90053] 15:56:11.441516 D mitogen.ctx.ssh.server02.sudo.oracle: mitogen: Importer(): master doesn't know 'ansible.module_utils.shutil'
[pid 90053] 15:56:11.442159 D mitogen.ctx.ssh.server01: mitogen: Adding route to 7152 via mitogen.sudo.Stream(u'sudo.oracle')
[pid 90053] 15:56:11.442497 D mitogen.ctx.ssh.server01: mitogen: Router(Broker(0x264c990)).add_route(7152, mitogen.sudo.Stream(u'sudo.oracle'))
[pid 90053] 15:56:11.442784 D mitogen: Adding route to 7152 via mitogen.ssh.Stream(u'ssh.server01')
[pid 90053] 15:56:11.443038 D mitogen: Router(Broker(0x2e1d8d0)).add_route(7152, mitogen.ssh.Stream(u'ssh.server01'))
[pid 90053] 15:56:11.445099 D mitogen.ctx.fork.12125: mitogen: Connected to Context(1008, 'parent'); my ID is 7152, PID is 12125
[pid 90957] 15:56:11.445044 D mitogen: Context(2, u'ssh.server01').call_async(): posixpath.expanduser(u'~/.ansible/tmp')
[pid 90053] 15:56:11.445408 D mitogen.ctx.fork.12125: mitogen: Recovered sys.executable: '/usr/bin/python'
[pid 90053] 15:56:11.445718 D mitogen.ctx.ssh.server02.sudo.oracle: mitogen: Importer(): master doesn't know 'ansible.module_utils.stat'
[pid 90053] 15:56:11.446897 D mitogen.ctx.ssh.server02.sudo.oracle: mitogen: Importer(): master doesn't know 'ansible.module_utils.tempfile'
[pid 90053] 15:56:11.447498 D mitogen.ctx.ssh.server02.sudo.oracle: mitogen: Importer(): master doesn't know 'ansible.module_utils.traceback'
[pid 90957] 15:56:11.448352 D ansible_mitogen.connection: Call took 475 ms: posixpath.expanduser(u'~/.ansible/tmp', use_login_context=True)
[pid 90957] 15:56:11.448987 D mitogen: Context(2, u'ssh.server01').call_async(): ansible_mitogen.target.make_temp_directory(base_dir=u'/root/.ansible/tmp')
[pid 90053] 15:56:11.449396 D mitogen.ctx.ssh.server02.sudo.oracle: mitogen: Importer(): master doesn't know 'ansible.module_utils.grp'
[pid 90053] 15:56:11.449706 D mitogen.ctx.ssh.server02.sudo.oracle: mitogen: Importer(): master doesn't know 'ansible.module_utils.pwd'
[pid 90053] 15:56:11.450127 D mitogen.ctx.ssh.server02.sudo.oracle: mitogen: Importer(): master doesn't know 'ansible.module_utils.platform'
[pid 90053] 15:56:11.451371 D mitogen.ctx.ssh.server02.sudo.oracle: mitogen: Importer(): master doesn't know 'ansible.module_utils.errno'
[pid 90053] 15:56:11.451755 D mitogen.ctx.ssh.server02.sudo.oracle: mitogen: Importer(): master doesn't know 'ansible.module_utils.datetime'
[pid 90053] 15:56:11.452067 D mitogen.ctx.ssh.server02.sudo.oracle: mitogen: Importer(): master doesn't know 'ansible.module_utils.collections'
[pid 90053] 15:56:11.452342 D mitogen.ctx.ssh.server02.sudo.oracle: mitogen: Importer(): master doesn't know 'ansible.module_utils.itertools'
[pid 90053] 15:56:11.452622 D mitogen.ctx.ssh.server02.sudo.oracle: mitogen: Importer(): master doesn't know 'ansible.module_utils.syslog'
[pid 90053] 15:56:11.452888 D mitogen.ctx.ssh.server02.sudo.oracle: mitogen: Importer(): master doesn't know 'ansible.module_utils.systemd'
[pid 90053] 15:56:11.453178 D mitogen.ctx.ssh.server02.sudo.oracle: mitogen: Importer(): master doesn't know 'ansible.module_utils.selinux'
[pid 90053] 15:56:11.453434 D mitogen.ctx.ssh.server02.sudo.oracle: mitogen: Importer(): 'selinux.sys' is submodule of a package we did not load
[pid 90053] 15:56:11.453687 D mitogen.ctx.ssh.server02.sudo.oracle: mitogen: Importer(): 'selinux.os' is submodule of a package we did not load
[pid 90053] 15:56:11.453961 D mitogen.ctx.ssh.server02.sudo.oracle: mitogen: Importer(): 'selinux.imp' is submodule of a package we did not load
[pid 90053] 15:56:11.454286 D mitogen.ctx.ssh.server02.sudo.oracle: mitogen: Importer(): 'selinux.shutil' is submodule of a package we did not load
[pid 90957] 15:56:11.455049 D ansible_mitogen.connection: Call took 6 ms: ansible_mitogen.target.make_temp_directory(use_login_context=True, base_dir=u'/root/.ansible/tmp')
[pid 90957] 15:56:11.455466 D ansible_mitogen.mixins: Temporary directory: u'/root/.ansible/tmp/ansible-mitogen-tmp-AeDbYI'
[pid 90053] 15:56:11.463533 D mitogen.ctx.ssh.server02.sudo.oracle: mitogen: Importer(): 'selinux.stat' is submodule of a package we did not load
[pid 90053] 15:56:11.464012 D mitogen.ctx.ssh.server02.sudo.oracle: mitogen: Importer(): master doesn't know 'ansible.module_utils.hashlib'
[pid 90053] 15:56:11.465999 D mitogen.ctx.ssh.server02.sudo.oracle: mitogen: Importer(): master doesn't know 'ansible.module_utils.ansible'
[pid 90053] 15:56:11.467066 D mitogen.ctx.ssh.server02.sudo.oracle: mitogen: Importer(): master doesn't know 'ansible.module_utils.ast'
[pid 90053] 15:56:11.472265 D mitogen.ctx.ssh.server02.sudo.oracle: mitogen: Importer(): master doesn't know 'ansible.module_utils.six.moves'
[pid 90053] 15:56:11.472602 D mitogen.ctx.ssh.server02.sudo.oracle: mitogen: Importer(): master doesn't know 'ansible.module_utils.codecs'
[pid 90053] 15:56:11.472895 D mitogen.ctx.ssh.server02.sudo.oracle: mitogen: Importer(): master doesn't know 'ansible.module_utils.parsing.ansible'
[pid 90053] 15:56:11.474628 D mitogen.ctx.ssh.server02.sudo.oracle: mitogen: Importer(): master doesn't know 'mitogen.logging'
[pid 90053] 15:56:11.475213 D mitogen.ctx.ssh.server02.sudo.oracle: mitogen: Importer(): master doesn't know 'mitogen.os'
[pid 90053] 15:56:11.475591 D mitogen.ctx.ssh.server02.sudo.oracle: mitogen: Importer(): master doesn't know 'mitogen.random'
[pid 90053] 15:56:11.475894 D mitogen.ctx.ssh.server02.sudo.oracle: mitogen: Importer(): master doesn't know 'mitogen.sys'
[pid 90053] 15:56:11.476216 D mitogen.ctx.ssh.server02.sudo.oracle: mitogen: Importer(): master doesn't know 'mitogen.threading'
[pid 90053] 15:56:11.476488 D mitogen.ctx.ssh.server02.sudo.oracle: mitogen: Importer(): master doesn't know 'mitogen.traceback'
[pid 90053] 15:56:11.476752 D mitogen.ctx.ssh.server02.sudo.oracle: mitogen: Importer(): master doesn't know 'mitogen.mitogen'
[pid 90053] 15:56:11.493119 D mitogen.ctx.ssh.server02.sudo.oracle: mitogen: Importer(): master doesn't know 'mitogen.codecs'
[pid 90053] 15:56:11.496962 D mitogen.ctx.ssh.server02.sudo.oracle: mitogen: Importer(): master doesn't know 'mitogen.errno'
[pid 90053] 15:56:11.497385 D mitogen.ctx.ssh.server02.sudo.oracle: mitogen: Importer(): master doesn't know 'mitogen.fcntl'
[pid 90053] 15:56:11.497697 D mitogen.ctx.ssh.server02.sudo.oracle: mitogen: Importer(): master doesn't know 'mitogen.getpass'
[pid 90053] 15:56:11.498051 D mitogen.ctx.ssh.server02.sudo.oracle: mitogen: Importer(): master doesn't know 'mitogen.inspect'
[pid 90053] 15:56:11.506255 D mitogen.ctx.ssh.server02.sudo.oracle: mitogen: Importer(): master doesn't know 'mitogen.signal'
[pid 90053] 15:56:11.507364 D mitogen.ctx.ssh.server02.sudo.oracle: mitogen: Importer(): master doesn't know 'mitogen.socket'
[pid 90053] 15:56:11.507810 D mitogen.ctx.ssh.server02.sudo.oracle: mitogen: Importer(): master doesn't know 'mitogen.subprocess'
[pid 90053] 15:56:11.508219 D mitogen.ctx.ssh.server02.sudo.oracle: mitogen: Importer(): master doesn't know 'mitogen.termios'
[pid 90053] 15:56:11.508523 D mitogen.ctx.ssh.server02.sudo.oracle: mitogen: Importer(): master doesn't know 'mitogen.textwrap'
[pid 90053] 15:56:11.508847 D mitogen.ctx.ssh.server02.sudo.oracle: mitogen: Importer(): master doesn't know 'mitogen.time'
[pid 90053] 15:56:11.509551 D ansible_mitogen.services: ContextService().put(Context(1008, u'ssh.server01.sudo.oracle'))
[pid 90053] 15:56:11.510257 D mitogen.ctx.ssh.server02.sudo.oracle: mitogen: Importer(): master doesn't know 'mitogen.types'
[pid 90053] 15:56:11.510888 D mitogen.ctx.ssh.server02.sudo.oracle: mitogen: Importer(): master doesn't know 'mitogen.zlib'
[pid 90957] 15:56:11.512040 D ansible_mitogen.mixins: _remote_expand_user(u'/path/file.txt', sudoable=True)
[pid 90053] 15:56:11.514404 D mitogen.ctx.ssh.server02.sudo.oracle: mitogen: Importer(): master doesn't know 'mitogen.cStringIO'
[pid 90053] 15:56:11.516416 D mitogen.ctx.ssh.server02.sudo.oracle: mitogen: Importer(): master doesn't know 'mitogen.functools'
[pid 90053] 15:56:11.516949 D mitogen.ctx.ssh.server02.sudo.oracle: mitogen: Importer(): master doesn't know 'mitogen.compat.threading'
[pid 90053] 15:56:11.517550 D mitogen.ctx.ssh.server02.sudo.oracle: mitogen: Importer(): master doesn't know 'mitogen.grp'
[pid 90053] 15:56:11.517992 D mitogen.ctx.ssh.server02.sudo.oracle: mitogen: Importer(): master doesn't know 'mitogen.pprint'
[pid 90053] 15:56:11.518305 D mitogen.ctx.ssh.server02.sudo.oracle: mitogen: Importer(): master doesn't know 'mitogen.pwd'
[pid 90053] 15:56:11.518581 D mitogen.ctx.ssh.server02.sudo.oracle: mitogen: Importer(): master doesn't know 'mitogen.stat'
[pid 90053] 15:56:11.518846 D mitogen.ctx.ssh.server02.sudo.oracle: mitogen: replaced Poller(0x7f65d4c9b990) with EpollPoller(0xf31490) (new: 4 readers, 1 writers; old: 4 readers, 1 writers)
[pid 90053] 15:56:11.519142 D mitogen.ctx.ssh.server02.sudo.oracle: mitogen: Router(Broker(0x7f65d4c9b850)).upgrade()
[pid 90957] 15:56:11.519155 D ansible_mitogen.planner: BinaryPlanner() rejected u'stat'
[pid 90053] 15:56:11.519392 D mitogen: IdAllocator(Router(Broker(0x2e1d8d0))): allocating [8152..9152)
[pid 90957] 15:56:11.519564 D ansible_mitogen.planner: NewStylePlanner() accepted u'stat' (filename u'/usr/lib/python2.7/site-packages/ansible/modules/files/stat.py')
[pid 90053] 15:56:11.519621 D mitogen: IdAllocator(Router(Broker(0x2e1d8d0))): allocating [8152..9152) to Context(8, u'ssh.server02.sudo.oracle')
[pid 90053] 15:56:11.522866 D mitogen: PushFileService().propagate_to(Context(1008, u'ssh.server01.sudo.oracle'), u'/usr/lib/python2.7/site-packages/ansible/modules/files/stat.py')
[pid 90053] 15:56:11.524844 D mitogen.ctx.ssh.server02.sudo.oracle: mitogen: mitogen.fork.Stream(u'default').connect()
[pid 90053] 15:56:11.525581 D mitogen.ctx.ssh.server02.sudo.oracle: mitogen: mitogen.fork.Stream(u'fork.10101').connect(): child process stdin/stdout=15
[pid 90053] 15:56:11.526047 D mitogen.ctx.ssh.server02: mitogen: Adding route to 8152 via mitogen.sudo.Stream(u'sudo.oracle')
[pid 90053] 15:56:11.526533 D mitogen.ctx.ssh.server02: mitogen: Router(Broker(0x237a990)).add_route(8152, mitogen.sudo.Stream(u'sudo.oracle'))
[pid 90053] 15:56:11.527101 D mitogen: Adding route to 8152 via mitogen.ssh.Stream(u'ssh.server02')
[pid 90053] 15:56:11.527429 D mitogen: Router(Broker(0x2e1d8d0)).add_route(8152, mitogen.ssh.Stream(u'ssh.server02'))
[pid 90053] 15:56:11.530001 D mitogen.ctx.fork.10101: mitogen: register(Context(8, 'parent'), mitogen.core.Stream('parent'))
[pid 90053] 15:56:11.530452 D mitogen.ctx.fork.10101: mitogen: Connected to Context(8, 'parent'); my ID is 8152, PID is 10101
[pid 90053] 15:56:11.530983 D mitogen.ctx.fork.10101: mitogen: Recovered sys.executable: '/usr/bin/python'
[pid 90957] 15:56:11.532396 D mitogen: Context(1008, u'ssh.server01.sudo.oracle').call_async(): ansible_mitogen.target.run_module(kwargs={u'module_map': {u'builtin': [u'ansible.module_utils._text', u'ansible.module_utils.basic', u'ansible.module_utils.parsing', u'ansible.module_utils.parsing.convert_bool', u'ansible.module_utils.pycompat24', u'ansible.module_utils.six'], u'custom': []}, u'emulate_tty': True, u'module': u'stat', u'cwd': None, u'service_context': Context(0, None), u'extra_env': None, u'is_python': None, u'env': {}, u'path': u'/usr/lib/python2.7/site-packages/ansible/modules/files/stat.py', u'runner_name': u'NewStyleRunner', u'interpreter_fragment': None, u'json_args': '{"_ansible_version": "2.5.0", "follow": false, "_ansible_selinux_special_fs": ["fuse", "nfs", "vboxsf", "ramfs", "9p"], "_ansible_no_log": false, "_ansible_module_name": "stat", "_ansible_verbosity": 3, "_ansible_syslog_facility": "LOG_USER", "_ansible_socket": null, "checksum_algo": "sha1", "_ansible_diff": true, "get_checksum": true, "_ansible_debug": false, "_ansible_shell_executable": "/bin/sh", "_ansible_check_mode": false, "path": "/path/file.txt", "_ansible_tmpdir": "/root/.ansible/tmp/ansible-mitogen-tmp-AeDbYI"}'})
[pid 90958] 15:56:11.533901 D mitogen: Context(4, u'ssh.server02').call_async(): posixpath.expanduser(u'~/.ansible/tmp')
[pid 90958] 15:56:11.537059 D ansible_mitogen.connection: Call took 397 ms: posixpath.expanduser(u'~/.ansible/tmp', use_login_context=True)
[pid 90958] 15:56:11.537458 D mitogen: Context(4, u'ssh.server02').call_async(): ansible_mitogen.target.make_temp_directory(base_dir=u'/root/.ansible/tmp')
[pid 90053] 15:56:11.538709 D mitogen.ctx.ssh.server01: mitogen: PushFileService().store_and_forward(u'/usr/lib/python2.7/site-packages/ansible/modules/files/stat.py', [blob: 19647 bytes], Context(1008, u'ssh.server01.sudo.oracle'))
[pid 90958] 15:56:11.540631 D ansible_mitogen.connection: Call took 3 ms: ansible_mitogen.target.make_temp_directory(use_login_context=True, base_dir=u'/root/.ansible/tmp')
[pid 90958] 15:56:11.541024 D ansible_mitogen.mixins: Temporary directory: u'/root/.ansible/tmp/ansible-mitogen-tmp-r0xh_7'
[pid 90053] 15:56:11.543636 D mitogen.ctx.ssh.server01.sudo.oracle: mitogen: PushFileService().store_and_forward(u'/usr/lib/python2.7/site-packages/ansible/modules/files/stat.py', [blob: 19647 bytes], Context(1008, u'ssh.server01.sudo.oracle'))
[pid 90053] 15:56:11.556632 D mitogen.ctx.ssh.server01.sudo.oracle: mitogen: mitogen.service.Pool(0xd5b810, size=16, th='MainThread'): initialized
[pid 90053] 15:56:11.563970 D mitogen.ctx.ssh.server01.sudo.oracle: mitogen: Importer(): master doesn't know 'ansible.module_utils.parsing.'
[pid 90053] 15:56:11.564407 D mitogen.ctx.ssh.server01.sudo.oracle: mitogen: Importer(): master doesn't know 'ansible.module_utils.six.'
[pid 90053] 15:56:11.579970 D ansible_mitogen.services: ContextService().put(Context(8, u'ssh.server02.sudo.oracle'))
[pid 90958] 15:56:11.581076 D ansible_mitogen.mixins: _remote_expand_user(u'/path/file.txt', sudoable=True)
[pid 90958] 15:56:11.585517 D ansible_mitogen.planner: BinaryPlanner() rejected u'stat'
[pid 90958] 15:56:11.585911 D ansible_mitogen.planner: NewStylePlanner() accepted u'stat' (filename u'/usr/lib/python2.7/site-packages/ansible/modules/files/stat.py')
[pid 90053] 15:56:11.588984 D mitogen: PushFileService().propagate_to(Context(8, u'ssh.server02.sudo.oracle'), u'/usr/lib/python2.7/site-packages/ansible/modules/files/stat.py')
[pid 90958] 15:56:11.593185 D mitogen: Context(8, u'ssh.server02.sudo.oracle').call_async(): ansible_mitogen.target.run_module(kwargs={u'module_map': {u'builtin': [u'ansible.module_utils._text', u'ansible.module_utils.basic', u'ansible.module_utils.parsing', u'ansible.module_utils.parsing.convert_bool', u'ansible.module_utils.pycompat24', u'ansible.module_utils.six'], u'custom': []}, u'emulate_tty': True, u'module': u'stat', u'cwd': None, u'service_context': Context(0, None), u'extra_env': None, u'is_python': None, u'env': {}, u'path': u'/usr/lib/python2.7/site-packages/ansible/modules/files/stat.py', u'runner_name': u'NewStyleRunner', u'interpreter_fragment': None, u'json_args': '{"_ansible_version": "2.5.0", "follow": false, "_ansible_selinux_special_fs": ["fuse", "nfs", "vboxsf", "ramfs", "9p"], "_ansible_no_log": false, "_ansible_module_name": "stat", "_ansible_verbosity": 3, "_ansible_syslog_facility": "LOG_USER", "_ansible_socket": null, "checksum_algo": "sha1", "_ansible_diff": true, "get_checksum": true, "_ansible_debug": false, "_ansible_shell_executable": "/bin/sh", "_ansible_check_mode": false, "path": "/path/file.txt", "_ansible_tmpdir": "/root/.ansible/tmp/ansible-mitogen-tmp-r0xh_7"}'})
[pid 90053] 15:56:11.595491 D mitogen.ctx.ssh.server02: mitogen: PushFileService().store_and_forward(u'/usr/lib/python2.7/site-packages/ansible/modules/files/stat.py', [blob: 19647 bytes], Context(8, u'ssh.server02.sudo.oracle'))
[pid 90957] 15:56:11.600541 D ansible_mitogen.connection: Call took 68 ms: ansible_mitogen.target.run_module(kwargs={u'module_map': {u'builtin': [u'ansible.module_utils._text', u'ansible.module_utils.basic', u'ansible.module_utils.parsing', u'ansible.module_utils.parsing.convert_bool', u'ansible.module_utils.pycompat24', u'ansible.module_utils.six'], u'custom': []}, u'emulate_tty': True, u'module': u'stat', u'cwd': None, u'service_context': Context(0, None), u'extra_env': None, u'is_python': None, u'env': {}, u'path': u'/usr/lib/python2.7/site-packages/ansible/modules/files/stat.py', u'runner_name': u'NewStyleRunner', u'interpreter_fragment': None, u'json_args': '{"_ansible_version": "2.5.0", "follow": false, "_ansible_selinux_special_fs": ["fuse", "nfs", "vboxsf", "ramfs", "9p"], "_ansible_no_log": false, "_ansible_module_name": "stat", "_ansible_verbosity": 3, "_ansible_syslog_facility": "LOG_USER", "_ansible_socket": null, "checksum_algo": "sha1", "_ansible_diff": true, "get_checksum": true,
"_ansible_debug": false, "_ansible_shell_executable": "/bin/sh", "_ansible_check_mode": false, "path": "/path/file.txt", "_ansible_tmpdir": "/root/.ansible/tmp
/ansible-mitogen-tmp-AeDbYI"}'})
[pid 90957] 15:56:11.602406 D ansible_mitogen.planner: BinaryPlanner() rejected u'file'
[pid 90957] 15:56:11.602735 D ansible_mitogen.planner: NewStylePlanner() accepted u'file' (filename u'/usr/lib/python2.7/site-packages/ansible/modules/files/file.py')
[pid 90053] 15:56:11.605771 D mitogen: PushFileService().propagate_to(Context(1008, u'ssh.server01.sudo.oracle'), u'/usr/lib/python2.7/site-packages/ansible/modules/files/file.py')
[pid 90053] 15:56:11.610259 D mitogen.ctx.ssh.server02.sudo.oracle: mitogen: mitogen.service.Pool(0xe83a90, size=16, th='MainThread'): initialized
[pid 90053] 15:56:11.610668 D mitogen.ctx.ssh.server02.sudo.oracle: mitogen: PushFileService().get(u'/usr/lib/python2.7/site-packages/ansible/modules/files/stat.py') waiting for uncached file to
arrive
[pid 90053] 15:56:11.611023 D mitogen.ctx.ssh.server02.sudo.oracle: mitogen: PushFileService().store_and_forward(u'/usr/lib/python2.7/site-packages/ansible/modules/files/stat.py', [blob: 19647 by
tes], Context(8, u'ssh.server02.sudo.oracle'))
[pid 90053] 15:56:11.611330 D mitogen.ctx.ssh.server02.sudo.oracle: mitogen: PushFileService().get(u'/usr/lib/python2.7/site-packages/ansible/modules/files/stat.py') -> [blob: 19647 bytes]
[pid 90053] 15:56:11.611673 D mitogen.ctx.ssh.server02.sudo.oracle: mitogen: Importer(): master doesn't know 'ansible.module_utils.parsing.'
[pid 90957] 15:56:11.612605 D mitogen: Context(1008, u'ssh.server01.sudo.oracle').call_async(): ansible_mitogen.target.run_module(kwargs={u'module_map': {u'builtin': [u'ansible.module_utils._text
', u'ansible.module_utils.basic', u'ansible.module_utils.parsing', u'ansible.module_utils.parsing.convert_bool', u'ansible.module_utils.pycompat24', u'ansible.module_utils.six'], u'custom': []}, u'emula
te_tty': True, u'module': u'file', u'cwd': None, u'service_context': Context(0, None), u'extra_env': None, u'is_python': None, u'env': {}, u'path': u'/usr/lib/python2.7/site-packages/ansible/modules/fil
es/file.py', u'runner_name': u'NewStyleRunner', u'interpreter_fragment': None, u'json_args': '{"_ansible_version": "2.5.0", "src": "file.txt.j2", "_ansible_selinux_special_fs": ["fuse", "nfs", "vboxsf
", "ramfs", "9p"], "_ansible_no_log": false, "dest": "/path/file.txt", "_ansible_module_name": "file", "_ansible_verbosity": 3, "_ansible_syslog_facility": "LO
G_USER", "_ansible_socket": null, "state": "file", "original_basename": "file.txt.j2", "_ansible_diff": true, "follow": false, "_ansible_debug": false, "_ansible_shell_executable": "/bin/sh", "_ansibl
e_check_mode": false, "_ansible_tmpdir": "/root/.ansible/tmp/ansible-mitogen-tmp-AeDbYI", "backup": true}'})
[pid 90053] 15:56:11.615173 D mitogen.ctx.ssh.server01: mitogen: PushFileService().store_and_forward(u'/usr/lib/python2.7/site-packages/ansible/modules/files/file.py', [blob: 19576 bytes], Contex
t(1008, u'ssh.server01.sudo.oracle'))
[pid 90053] 15:56:11.620360 D mitogen.ctx.ssh.server02.sudo.oracle: mitogen: Importer(): master doesn't know 'ansible.module_utils.six.'
[pid 90053] 15:56:11.620815 D mitogen.ctx.ssh.server01.sudo.oracle: mitogen: PushFileService().store_and_forward(u'/usr/lib/python2.7/site-packages/ansible/modules/files/file.py', [blob: 19576 by
tes], Context(1008, u'ssh.server01.sudo.oracle'))
[pid 90053] 15:56:11.621171 D mitogen.ctx.ssh.server01.sudo.oracle: mitogen: PushFileService().get(u'/usr/lib/python2.7/site-packages/ansible/modules/files/file.py') waiting for uncached file to
arrive
[pid 90053] 15:56:11.621468 D mitogen.ctx.ssh.server01.sudo.oracle: mitogen: PushFileService().get(u'/usr/lib/python2.7/site-packages/ansible/modules/files/file.py') -> [blob: 19576 bytes]
[pid 90053] 15:56:11.621750 D mitogen.ctx.ssh.server01.sudo.oracle: mitogen: Importer(): master doesn't know 'ansible.module_utils.parsing.'
[pid 90053] 15:56:11.633004 D mitogen.ctx.ssh.server01.sudo.oracle: mitogen: Importer(): master doesn't know 'ansible.module_utils.six.'
[pid 90958] 15:56:11.653679 D ansible_mitogen.connection: Call took 60 ms: ansible_mitogen.target.run_module(kwargs={u'module_map': {u'builtin': [u'ansible.module_utils._text', u'ansible.module_utils.ba
sic', u'ansible.module_utils.parsing', u'ansible.module_utils.parsing.convert_bool', u'ansible.module_utils.pycompat24', u'ansible.module_utils.six'], u'custom': []}, u'emulate_tty': True, u'module': u'
stat', u'cwd': None, u'service_context': Context(0, None), u'extra_env': None, u'is_python': None, u'env': {}, u'path': u'/usr/lib/python2.7/site-packages/ansible/modules/files/stat.py', u'runner_name':
 u'NewStyleRunner', u'interpreter_fragment': None, u'json_args': '{"_ansible_version": "2.5.0", "follow": false, "_ansible_selinux_special_fs": ["fuse", "nfs", "vboxsf", "ramfs", "9p"], "_ansible_no_log
": false, "_ansible_module_name": "stat", "_ansible_verbosity": 3, "_ansible_syslog_facility": "LOG_USER", "_ansible_socket": null, "checksum_algo": "sha1", "_ansible_diff": true, "get_checksum": true,
"_ansible_debug": false, "_ansible_shell_executable": "/bin/sh", "_ansible_check_mode": false, "path": "/path/file.txt", "_ansible_tmpdir": "/root/.ansible/tmp
/ansible-mitogen-tmp-r0xh_7"}'})
[pid 90958] 15:56:11.655274 D ansible_mitogen.planner: BinaryPlanner() rejected u'file'
[pid 90958] 15:56:11.655583 D ansible_mitogen.planner: NewStylePlanner() accepted u'file' (filename u'/usr/lib/python2.7/site-packages/ansible/modules/files/file.py')
[pid 90053] 15:56:11.658411 D mitogen: PushFileService().propagate_to(Context(8, u'ssh.server02.sudo.oracle'), u'/usr/lib/python2.7/site-packages/ansible/modules/files/file.py')
[pid 90958] 15:56:11.662237 D mitogen: Context(8, u'ssh.server02.sudo.oracle').call_async(): ansible_mitogen.target.run_module(kwargs={u'module_map': {u'builtin': [u'ansible.module_utils._text',
u'ansible.module_utils.basic', u'ansible.module_utils.parsing', u'ansible.module_utils.parsing.convert_bool', u'ansible.module_utils.pycompat24', u'ansible.module_utils.six'], u'custom': []}, u'emulate_
tty': True, u'module': u'file', u'cwd': None, u'service_context': Context(0, None), u'extra_env': None, u'is_python': None, u'env': {}, u'path': u'/usr/lib/python2.7/site-packages/ansible/modules/files/
file.py', u'runner_name': u'NewStyleRunner', u'interpreter_fragment': None, u'json_args': '{"_ansible_version": "2.5.0", "src": "file.txt.j2", "_ansible_selinux_special_fs": ["fuse", "nfs", "vboxsf",
"ramfs", "9p"], "_ansible_no_log": false, "dest": "/path/file.txt", "_ansible_module_name": "file", "_ansible_verbosity": 3, "_ansible_syslog_facility": "LOG_U
SER", "_ansible_socket": null, "state": "file", "original_basename": "file.txt.j2", "_ansible_diff": true, "follow": false, "_ansible_debug": false, "_ansible_shell_executable": "/bin/sh", "_ansible_c
heck_mode": false, "_ansible_tmpdir": "/root/.ansible/tmp/ansible-mitogen-tmp-r0xh_7", "backup": true}'})
[pid 90053] 15:56:11.666823 D mitogen.ctx.ssh.server02: mitogen: PushFileService().store_and_forward(u'/usr/lib/python2.7/site-packages/ansible/modules/files/file.py', [blob: 19576 bytes], Contex
t(8, u'ssh.server02.sudo.oracle'))
[pid 90053] 15:56:11.667474 D mitogen.ctx.ssh.server02.sudo.oracle: mitogen: PushFileService().get(u'/usr/lib/python2.7/site-packages/ansible/modules/files/file.py') waiting for uncached file to
arrive
[pid 90053] 15:56:11.668882 D mitogen.ctx.ssh.server02.sudo.oracle: mitogen: PushFileService().store_and_forward(u'/usr/lib/python2.7/site-packages/ansible/modules/files/file.py', [blob: 19576 by
tes], Context(8, u'ssh.server02.sudo.oracle'))
[pid 90053] 15:56:11.670258 D mitogen.ctx.ssh.server02.sudo.oracle: mitogen: PushFileService().get(u'/usr/lib/python2.7/site-packages/ansible/modules/files/file.py') -> [blob: 19576 bytes]
[pid 90053] 15:56:11.670578 D mitogen.ctx.ssh.server02.sudo.oracle: mitogen: Importer(): master doesn't know 'ansible.module_utils.parsing.'
[pid 90053] 15:56:11.680365 D mitogen.ctx.ssh.server02.sudo.oracle: mitogen: Importer(): master doesn't know 'ansible.module_utils.six.'
[pid 90957] 15:56:11.846426 D ansible_mitogen.connection: Call took 233 ms: ansible_mitogen.target.run_module(kwargs={u'module_map': {u'builtin': [u'ansible.module_utils._text', u'ansible.module_utils.b
asic', u'ansible.module_utils.parsing', u'ansible.module_utils.parsing.convert_bool', u'ansible.module_utils.pycompat24', u'ansible.module_utils.six'], u'custom': []}, u'emulate_tty': True, u'module': u
'file', u'cwd': None, u'service_context': Context(0, None), u'extra_env': None, u'is_python': None, u'env': {}, u'path': u'/usr/lib/python2.7/site-packages/ansible/modules/files/file.py', u'runner_name'
: u'NewStyleRunner', u'interpreter_fragment': None, u'json_args': '{"_ansible_version": "2.5.0", "src": "file.txt.j2", "_ansible_selinux_special_fs": ["fuse", "nfs", "vboxsf", "ramfs", "9p"], "_ansibl
e_no_log": false, "dest": "/path/file.txt", "_ansible_module_name": "file", "_ansible_verbosity": 3, "_ansible_syslog_facility": "LOG_USER", "_ansible_socket":
 null, "state": "file", "original_basename": "file.txt.j2", "_ansible_diff": true, "follow": false, "_ansible_debug": false, "_ansible_shell_executable": "/bin/sh", "_ansible_check_mode": false, "_ans
ible_tmpdir": "/root/.ansible/tmp/ansible-mitogen-tmp-AeDbYI", "backup": true}'})
[pid 90957] 15:56:11.847303 D ansible_mitogen.mixins: _remove_tmp_path(u'/root/.ansible/tmp/ansible-mitogen-tmp-AeDbYI')
[pid 90957] 15:56:11.848012 D ansible_mitogen.mixins: _remove_tmp_path(u'/root/.ansible/tmp/ansible-mitogen-tmp-AeDbYI')
[pid 90957] 15:56:11.848360 D mitogen: Context(1008, u'ssh.server01.sudo.oracle').call_async(): shutil.rmtree(u'/root/.ansible/tmp/ansible-mitogen-tmp-AeDbYI')
[pid 90957] 15:56:11.852702 D ansible_mitogen.connection: Call took 4 ms: shutil.rmtree(u'/root/.ansible/tmp/ansible-mitogen-tmp-AeDbYI')
[pid 90958] 15:56:11.869775 D ansible_mitogen.connection: Call took 207 ms: ansible_mitogen.target.run_module(kwargs={u'module_map': {u'builtin': [u'ansible.module_utils._text', u'ansible.module_utils.b
asic', u'ansible.module_utils.parsing', u'ansible.module_utils.parsing.convert_bool', u'ansible.module_utils.pycompat24', u'ansible.module_utils.six'], u'custom': []}, u'emulate_tty': True, u'module': u
'file', u'cwd': None, u'service_context': Context(0, None), u'extra_env': None, u'is_python': None, u'env': {}, u'path': u'/usr/lib/python2.7/site-packages/ansible/modules/files/file.py', u'runner_name'
: u'NewStyleRunner', u'interpreter_fragment': None, u'json_args': '{"_ansible_version": "2.5.0", "src": "file.txt.j2", "_ansible_selinux_special_fs": ["fuse", "nfs", "vboxsf", "ramfs", "9p"], "_ansibl
e_no_log": false, "dest": "/path/file.txt", "_ansible_module_name": "file", "_ansible_verbosity": 3, "_ansible_syslog_facility": "LOG_USER", "_ansible_socket":
 null, "state": "file", "original_basename": "file.txt.j2", "_ansible_diff": true, "follow": false, "_ansible_debug": false, "_ansible_shell_executable": "/bin/sh", "_ansible_check_mode": false, "_ans
ible_tmpdir": "/root/.ansible/tmp/ansible-mitogen-tmp-r0xh_7", "backup": true}'})
[pid 90958] 15:56:11.870552 D ansible_mitogen.mixins: _remove_tmp_path(u'/root/.ansible/tmp/ansible-mitogen-tmp-r0xh_7')
[pid 90958] 15:56:11.871178 D ansible_mitogen.mixins: _remove_tmp_path(u'/root/.ansible/tmp/ansible-mitogen-tmp-r0xh_7')
[pid 90958] 15:56:11.871495 D mitogen: Context(8, u'ssh.server02.sudo.oracle').call_async(): shutil.rmtree(u'/root/.ansible/tmp/ansible-mitogen-tmp-r0xh_7')
[pid 90958] 15:56:11.874554 D ansible_mitogen.connection: Call took 3 ms: shutil.rmtree(u'/root/.ansible/tmp/ansible-mitogen-tmp-r0xh_7')
[pid 90053] 15:56:11.884163 D ansible_mitogen.services: ContextService().put(Context(1008, u'ssh.server01.sudo.oracle'))
[pid 90053] 15:56:11.885232 D ansible_mitogen.services: ContextService().put(Context(8, u'ssh.server02.sudo.oracle'))
[pid 90957] 15:56:11.885484 D mitogen: mitogen.core.Stream(u'unix_listener.90053').on_disconnect()
[pid 90957] 15:56:11.886102 D mitogen: Waker(Broker(0x34fdbd0) rfd=16, wfd=17).on_disconnect()
[pid 90053] 15:56:11.886099 D mitogen: mitogen.core.Stream(u'unix_client.90957').on_disconnect()
[pid 90958] 15:56:11.886603 D mitogen: mitogen.core.Stream(u'unix_listener.90053').on_disconnect()
[pid 90958] 15:56:11.887071 D mitogen: Waker(Broker(0x34ecb50) rfd=16, wfd=17).on_disconnect()
[pid 90053] 15:56:11.887645 D mitogen: mitogen.core.Stream(u'unix_client.90958').on_disconnect()
The full traceback is:
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/ansible/executor/task_executor.py", line 104, in run
    item_results = self._run_loop(items)
  File "/usr/lib/python2.7/site-packages/ansible/executor/task_executor.py", line 322, in _run_loop
    res = self._execute(variables=task_vars)
  File "/usr/lib/python2.7/site-packages/ansible/executor/task_executor.py", line 554, in _execute
    result = self._handler.run(task_vars=variables)
  File "/path/plugins/mitogen-0.2.2/ansible_mitogen/mixins.py", line 115, in run
    return super(ActionModuleMixin, self).run(tmp, task_vars)
  File "/usr/lib/python2.7/site-packages/ansible/plugins/action/template.py", line 165, in run
    self._remove_tmp_path(self._connection._shell.tmpdir)
  File "/path/plugins/mitogen-0.2.2/ansible_mitogen/mixins.py", line 222, in _remove_tmp_path
    self.call(shutil.rmtree, tmp_path)
  File "/path/plugins/mitogen-0.2.2/ansible_mitogen/mixins.py", line 124, in call
    return self._connection.call(func, *args, **kwargs)
  File "/path/plugins/mitogen-0.2.2/ansible_mitogen/connection.py", line 594, in call
    return self.call_async(func, *args, **kwargs).get().unpickle()
  File "/path/plugins/mitogen-0.2.2/mitogen/core.py", line 487, in unpickle
    raise obj
CallError: exceptions.OSError: [Errno 13] Permission denied: '/root/.ansible/tmp/ansible-mitogen-tmp-AeDbYI'
  File "<stdin>", line 2049, in _dispatch_calls
  File "<stdin>", line 2041, in _dispatch_one
  File "/usr/lib64/python2.6/shutil.py", line 204, in rmtree
    onerror(os.listdir, path, sys.exc_info())
  File "/usr/lib64/python2.6/shutil.py", line 202, in rmtree
    names = os.listdir(path)

fatal: [server01]: FAILED! =>
  msg: Unexpected failure during module execution.
  stdout: ''
The full traceback is:
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/ansible/executor/task_executor.py", line 104, in run
    item_results = self._run_loop(items)
  File "/usr/lib/python2.7/site-packages/ansible/executor/task_executor.py", line 322, in _run_loop
    res = self._execute(variables=task_vars)
  File "/usr/lib/python2.7/site-packages/ansible/executor/task_executor.py", line 554, in _execute
    result = self._handler.run(task_vars=variables)
  File "/path/plugins/mitogen-0.2.2/ansible_mitogen/mixins.py", line 115, in run
    return super(ActionModuleMixin, self).run(tmp, task_vars)
  File "/usr/lib/python2.7/site-packages/ansible/plugins/action/template.py", line 165, in run
    self._remove_tmp_path(self._connection._shell.tmpdir)
  File "/path/plugins/mitogen-0.2.2/ansible_mitogen/mixins.py", line 222, in _remove_tmp_path
    self.call(shutil.rmtree, tmp_path)
  File "/path/plugins/mitogen-0.2.2/ansible_mitogen/mixins.py", line 124, in call
    return self._connection.call(func, *args, **kwargs)
  File "/path/plugins/mitogen-0.2.2/ansible_mitogen/connection.py", line 594, in call
    return self.call_async(func, *args, **kwargs).get().unpickle()
  File "/path/plugins/mitogen-0.2.2/mitogen/core.py", line 487, in unpickle
    raise obj
CallError: exceptions.OSError: [Errno 13] Permission denied: '/root/.ansible/tmp/ansible-mitogen-tmp-r0xh_7'
  File "<stdin>", line 2049, in _dispatch_calls
  File "<stdin>", line 2041, in _dispatch_one
  File "/usr/lib64/python2.6/shutil.py", line 204, in rmtree
    onerror(os.listdir, path, sys.exc_info())
  File "/usr/lib64/python2.6/shutil.py", line 202, in rmtree
    names = os.listdir(path)

fatal: [server02]: FAILED! =>
  msg: Unexpected failure during module execution.
  stdout: ''

@dw dw added bug ansible labels Aug 10, 2018

@dw dw closed this in e84de48 Aug 19, 2018

@dw

This comment has been minimized.

Owner

dw commented Aug 19, 2018

This is now on the master branch and will make it into the next release. To be updated when a new release is made, subscribe to https://www.freelists.org/list/mitogen-announce

Thanks for reporting this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment