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

ansible: copy and template module fails with 'source not found', works without mitogen #301

Closed
sigio opened this Issue Jul 12, 2018 · 10 comments

Comments

Projects
None yet
3 participants
@sigio

sigio commented Jul 12, 2018

Today I enabled mitogen for one of my customers.... ran into the following situation, a simple copy task, many of which happened before:

With mitogen:

TASK [common : Copy check_megaraid_sas script] ****************************************************************************************
fatal: [grtzpvm5]: FAILED! => {
"changed": false,
"checksum": "8aabda52df32feaf515adea3155d534b87d86e39"
}

MSG:

Source /root/.ansible/tmp/ansible-mitogen-tmp-71NxfO/source not found

fatal: [grtzpvm6]: FAILED! => {
"changed": false,
"checksum": "8aabda52df32feaf515adea3155d534b87d86e39"
}

MSG:

Source /root/.ansible/tmp/ansible-mitogen-tmp-5yrueD/source not found

fatal: [grtzpvm2]: FAILED! => {
"changed": false,
"checksum": "8aabda52df32feaf515adea3155d534b87d86e39"
}

MSG:

Source /root/.ansible/tmp/ansible-mitogen-tmp-d5d2YO/source not found

Without mitogen:

Works... and shows diffs between current and new version

Running afterwards again with mitogen on, works as well... but it didn't work before. Tried with 'mitogen_task_isolation=fork' but that didn't have any effect.

Can't reproduce now, but will add if I find more systems where this happens.

the failing task was:

  • name: Copy check_megaraid_sas script
    copy:
    src: "check_megaraid_sas"
    dest: "/root/scripts/monitor-plugins/check_megaraid_sas"
    owner: "root"
    group: "root"
    mode: "0755"
    when: "ansible_system_vendor == 'Dell Inc.'"
    tags:
    • megacli
    • dell
@sigio

This comment has been minimized.

sigio commented Jul 12, 2018

Looks lilke a duplicate of #267
However, this is on centos 6.x

ansible 2.5.5
config file = /opt/ansible/ansible.cfg
configured module search path = [u'/opt/ansible/library']
ansible python module location = /usr/lib/python2.6/site-packages/ansible
executable location = /usr/bin/ansible
python version = 2.6.6 (r266:84292, Aug 18 2016, 15:13:37) [GCC 4.4.7 20120313 (Red Hat 4.4.7-17)]

@sigio

This comment has been minimized.

sigio commented Jul 12, 2018

Found another one that fails on copy, adding (long) log:

ansible-playbook -i hosts -l grtzpvm5 common.yml --diff --start-at-task="common : Template various configuration-files" -vvv
ansible-playbook 2.5.5
config file = /opt/ansible/ansible.cfg
configured module search path = [u'/opt/ansible/library']
ansible python module location = /usr/lib/python2.6/site-packages/ansible
executable location = /usr/bin/ansible-playbook
python version = 2.6.6 (r266:84292, Aug 18 2016, 15:13:37) [GCC 4.4.7 20120313 (Red Hat 4.4.7-17)]
Using /opt/ansible/ansible.cfg as config file
Parsed /opt/ansible/hosts inventory source with ini plugin
statically imported: /opt/ansible/roles/common/tasks/../../../tasks/user-tomcat6.yml
statically imported: /opt/ansible/roles/common/tasks/../../../tasks/user-sigio.yml
statically imported: /opt/ansible/roles/common/tasks/../../../tasks/user-peter.yml
[WARNING]: file /opt/ansible/roles/common/tasks/other.yml is empty and had no tasks to include

PLAYBOOK: common.yml ******************************************************************************************************************
1 plays in common.yml

PLAY [all] ****************************************************************************************************************************
[pid 23843] 16:00:42.329596 D mitogen: mitogen.service.Pool(0x4553550, size=16, th='MainThread'): initialized
[pid 23843] 16:00:42.330995 D ansible_mitogen.process: Service pool configured: size=16

TASK [common : Template various configuration-files] **********************************************************************************
task path: /opt/ansible/roles/common/tasks/main.yml:59
[pid 23862] 16:00:42.429786 D ansible_mitogen.mixins: make_tmp_path(remote_user=None)
[pid 23862] 16:00:42.430588 D ansible_mitogen.mixins: remote_expand_user(u'$HOME/.ansible/tmp', sudoable=True)
[pid 23862] 16:00:42.432097 D mitogen: unix.connect(path='/tmp/mitogen_unix_9jTZDb')
[pid 23862] 16:00:42.433109 D mitogen: unix.connect(): local ID is 1, remote is 0
[pid 23843] 16:00:42.440050 D mitogen: mitogen.ssh.Stream(u'default').connect()
[pid 23843] 16:00:42.664924 D mitogen: hybrid_tty_create_child() pid=23865 stdio=63, tty=17, cmd: "ssh" "-l" "root" "-p" "22" "-o" "Compression yes" "-o" "ServerAliveInterval 15" "-o" "ServerAliveCountMax 3" "-o" "StrictHostKeyChecking yes" "-o" "PasswordAuthentication=no" "-o" "ControlMaster=auto" "-o" "ControlPersist=300s" "-o" "ControlPath=/tmp/ansible-ssh-%h-%p-%r" "grtzpvm5" "/usr/bin/python" "-c" "'import codecs,os,sys;
=codecs.decode;exec(
(_("eNqFkEFrg0AQhc/xV3ibXbLENeZQhIWWHEoPpSClObQhaFztUt1dVo1Nfn0nphBND73Nx7yZ93gJ2wjTLKyyklDPsX5EqvARCuO+CI29Gc55Z5eEs5BzeuWEjcnhNrzwvjKNJMkY3Bg2Y+gR0LA5on2Vtuha+0L4kKeuVxr8VOfDUn7LfdemWSWHddA1LsiUDuyx/TQaMOfsRjYXw+FBukYZ/R5H28FW6oNyyPCQPL5x2Irp2UWDWJHpgk1xDqRWrSmljhtVKnNfuvZUpzqMl9HdKqJAPXzUO9VKEjJ4fnp94Zx/aMAAe5Njz9Rbix05N50bKzX2Cy4DunAyzUm4jFYryuCkLH4qrLjqNgz6DM7lF/bXYD3Ml0Jv1P1/6r8pw0nKH/tbreI=".encode(),"base64"),"zip"))'"
[pid 23843] 16:00:42.666891 D mitogen: mitogen.ssh.Stream(u'local.23865').connect(): child process stdin/stdout=63
[pid 23843] 16:00:42.708105 D mitogen: mitogen.ssh.Stream(u'local.23865'): received 'MITO000\n'
[pid 23843] 16:00:42.708710 D mitogen: mitogen.ssh.Stream(u'local.23865')._ec0_received()
[pid 23843] 16:00:42.719482 D mitogen: Context(2, u'ssh.grtzpvm5:22').call_async(): ansible_mitogen.target.init_child()
[pid 23843] 16:00:42.724029 D mitogen: _build_tuple('/usr/lib/python2.6/site-packages/ansible/init.py', u'ansible') -> [u'cli', u'compat', u'config', u'constants', u'errors', u'executor', u'galaxy', u'inventory', u'module_utils', u'modules', u'parsing', u'playbook', u'plugins', u'release', u'template', u'utils', u'vars']
[pid 23843] 16:00:42.727298 D mitogen: _send_load_module(mitogen.ssh.Stream(u'ssh.grtzpvm5:22'), u'ansible.release')
[pid 23843] 16:00:42.727831 D mitogen: _send_load_module(mitogen.ssh.Stream(u'ssh.grtzpvm5:22'), u'ansible')
[pid 23843] 16:00:42.732502 D mitogen: _build_tuple('/usr/lib/python2.6/site-packages/ansible/module_utils/init.py', u'ansible.module_utils') -> [u'_text', u'ansible_tower', u'api', u'aws', u'azure_rm_common', u'basic', u'cloud', u'cloudengine', u'cloudscale', u'cloudstack', u'common', u'connection', u'crypto', u'database', u'digital_ocean', u'dimensiondata', u'docker_common', u'ec2', u'exoscale', u'f5_cli', u'f5_utils', u'facts', u'gcdns', u'gce', u'gcp', u'gcp_utils', u'infinibox', u'influxdb', u'ipa', u'ismount', u'json_utils', u'k8s', u'keycloak', u'known_hosts', u'lxd', u'manageiq', u'mysql', u'net_tools', u'netapp', u'network', u'oneandone', u'oneview', u'openstack', u'openswitch', u'ovirt', u'parsing', u'postgres', u'powershell', u'pure', u'pycompat24', u'rax', u'redhat', u'remote_management', u'service', u'shell', u'six', u'splitter', u'univention_umc', u'urls', u'vca', u'vmware', u'vultr']
[pid 23843] 16:00:42.732941 D mitogen: _send_load_module(mitogen.ssh.Stream(u'ssh.grtzpvm5:22'), u'ansible.module_utils')
[pid 23843] 16:00:42.942733 D mitogen: _get_module_via_sys_modules('syslog') -> <module 'syslog' from '/usr/lib64/python2.6/lib-dynload/syslog.so'>
[pid 23843] 16:00:42.943556 D mitogen: get_module_source('syslog'): cannot find source
[pid 23843] 16:00:42.969219 D mitogen: _get_module_via_sys_modules('select') -> <module 'select' from '/usr/lib64/python2.6/lib-dynload/selectmodule.so'>
[pid 23843] 16:00:42.970043 D mitogen: get_module_source('select'): cannot find source
[pid 23843] 16:00:42.974752 D mitogen: _get_module_via_sys_modules('grp') -> <module 'grp' from '/usr/lib64/python2.6/lib-dynload/grpmodule.so'>
[pid 23843] 16:00:42.975369 D mitogen: get_module_source('grp'): cannot find source
[pid 23843] 16:00:43.027022 D mitogen: _get_module_via_sys_modules('datetime') -> <module 'datetime' from '/usr/lib64/python2.6/lib-dynload/datetime.so'>
[pid 23843] 16:00:43.027918 D mitogen: get_module_source('datetime'): cannot find source
[pid 23843] 16:00:43.044107 D mitogen: _get_module_via_sys_modules('itertools') -> <module 'itertools' from '/usr/lib64/python2.6/lib-dynload/itertoolsmodule.so'>
[pid 23843] 16:00:43.045298 D mitogen: get_module_source('itertools'): cannot find source
[pid 23843] 16:00:43.056492 D mitogen: _get_module_via_sys_modules('time') -> <module 'time' from '/usr/lib64/python2.6/lib-dynload/timemodule.so'>
[pid 23843] 16:00:43.057223 D mitogen: get_module_source('time'): cannot find source
[pid 23843] 16:00:43.071783 D mitogen: _get_module_via_sys_modules('operator') -> <module 'operator' from '/usr/lib64/python2.6/lib-dynload/operator.so'>
[pid 23843] 16:00:43.072548 D mitogen: get_module_source('operator'): cannot find source
[pid 23843] 16:00:43.074275 D mitogen: _get_module_via_sys_modules('_locale') -> <module '_locale' from '/usr/lib64/python2.6/lib-dynload/_localemodule.so'>
[pid 23843] 16:00:43.074991 D mitogen: get_module_source('_locale'): cannot find source
[pid 23843] 16:00:43.089063 D mitogen: _get_module_via_sys_modules('_selinux') -> <module '_selinux' from '/usr/lib64/python2.6/site-packages/selinux/_selinux.so'>
[pid 23843] 16:00:43.090016 D mitogen: get_module_source('_selinux'): cannot find source
[pid 23843] 16:00:43.091769 D mitogen: _get_module_via_sys_modules('fcntl') -> <module 'fcntl' from '/usr/lib64/python2.6/lib-dynload/fcntlmodule.so'>
[pid 23843] 16:00:43.092369 D mitogen: get_module_source('fcntl'): cannot find source
[pid 23843] 16:00:43.172867 D mitogen: _get_module_via_sys_modules('os.path') -> <module 'posixpath' from '/usr/lib64/python2.6/posixpath.pyc'>
[pid 23843] 16:00:43.225824 D mitogen: _get_module_via_sys_modules('cStringIO') -> <module 'cStringIO' from '/usr/lib64/python2.6/lib-dynload/cStringIO.so'>
[pid 23843] 16:00:43.226920 D mitogen: get_module_source('cStringIO'): cannot find source
[pid 23843] 16:00:43.262328 D mitogen: _get_module_via_sys_modules('cPickle') -> <module 'cPickle' from '/usr/lib64/python2.6/lib-dynload/cPickle.so'>
[pid 23843] 16:00:43.263156 D mitogen: get_module_source('cPickle'): cannot find source
[pid 23843] 16:00:43.276256 D mitogen: _get_module_via_sys_modules('_collections') -> <module '_collections' from '/usr/lib64/python2.6/lib-dynload/_collectionsmodule.so'>
[pid 23843] 16:00:43.277020 D mitogen: get_module_source('_collections'): cannot find source
[pid 23843] 16:00:43.290941 D mitogen: _get_module_via_sys_modules('_hashlib') -> <module '_hashlib' from '/usr/lib64/python2.6/lib-dynload/_hashlib.so'>
[pid 23843] 16:00:43.291749 D mitogen: get_module_source('_hashlib'): cannot find source
[pid 23843] 16:00:43.323031 D mitogen: _get_module_via_sys_modules('_functools') -> <module '_functools' from '/usr/lib64/python2.6/lib-dynload/_functoolsmodule.so'>
[pid 23843] 16:00:43.323876 D mitogen: get_module_source('_functools'): cannot find source
[pid 23843] 16:00:43.333866 D mitogen: _get_module_via_sys_modules('binascii') -> <module 'binascii' from '/usr/lib64/python2.6/lib-dynload/binascii.so'>
[pid 23843] 16:00:43.334611 D mitogen: get_module_source('binascii'): cannot find source
[pid 23843] 16:00:43.336365 D mitogen: _get_module_via_sys_modules('_struct') -> <module '_struct' from '/usr/lib64/python2.6/lib-dynload/_struct.so'>
[pid 23843] 16:00:43.337133 D mitogen: get_module_source('_struct'): cannot find source
[pid 23843] 16:00:43.338813 D mitogen: _get_module_via_sys_modules('_bytesio') -> <module '_bytesio' from '/usr/lib64/python2.6/lib-dynload/_bytesio.so'>
[pid 23843] 16:00:43.339457 D mitogen: get_module_source('_bytesio'): cannot find source
[pid 23843] 16:00:43.345515 D mitogen: _get_module_via_sys_modules('_fileio') -> <module '_fileio' from '/usr/lib64/python2.6/lib-dynload/_fileio.so'>
[pid 23843] 16:00:43.346291 D mitogen: get_module_source('_fileio'): cannot find source
[pid 23843] 16:00:43.354415 D mitogen: _get_module_via_sys_modules('_random') -> <module '_random' from '/usr/lib64/python2.6/lib-dynload/_randommodule.so'>
[pid 23843] 16:00:43.355082 D mitogen: get_module_source('_random'): cannot find source
[pid 23843] 16:00:43.356612 D mitogen: _get_module_via_sys_modules('math') -> <module 'math' from '/usr/lib64/python2.6/lib-dynload/mathmodule.so'>
[pid 23843] 16:00:43.357219 D mitogen: get_module_source('math'): cannot find source
[pid 23843] 16:00:43.358804 D mitogen: _get_module_via_sys_modules('strop') -> <module 'strop' from '/usr/lib64/python2.6/lib-dynload/stropmodule.so'>
[pid 23843] 16:00:43.359348 D mitogen: get_module_source('strop'): cannot find source
[pid 23843] 16:00:43.363367 D mitogen: _get_module_via_sys_modules('_json') -> <module '_json' from '/usr/lib64/python2.6/lib-dynload/_json.so'>
[pid 23843] 16:00:43.364003 D mitogen: get_module_source('_json'): cannot find source
[pid 23843] 16:00:43.364901 D mitogen: _get_module_via_sys_modules('simplejson._speedups') -> <module 'simplejson._speedups' from '/usr/lib64/python2.6/site-packages/simplejson/_speedups.so'>
[pid 23843] 16:00:43.365468 D mitogen: get_module_source('simplejson._speedups'): cannot find source
[pid 23843] 16:00:43.368498 D mitogen: _send_load_module(mitogen.ssh.Stream(u'ssh.grtzpvm5:22'), u'ansible.module_utils._text')
[pid 23843] 16:00:43.371011 D mitogen: _send_load_module(mitogen.ssh.Stream(u'ssh.grtzpvm5:22'), u'ansible.module_utils.parsing')
[pid 23843] 16:00:43.371957 D mitogen: _build_tuple('/usr/lib/python2.6/site-packages/ansible/module_utils/parsing/init.py', u'ansible.module_utils.parsing') -> [u'convert_bool']
[pid 23843] 16:00:43.372578 D mitogen: _send_load_module(mitogen.ssh.Stream(u'ssh.grtzpvm5:22'), u'ansible.module_utils.parsing.convert_bool')
[pid 23843] 16:00:43.373921 D mitogen: _send_load_module(mitogen.ssh.Stream(u'ssh.grtzpvm5:22'), u'ansible.module_utils.pycompat24')
[pid 23843] 16:00:43.375320 D mitogen: _send_load_module(mitogen.ssh.Stream(u'ssh.grtzpvm5:22'), u'ansible.module_utils.six')
[pid 23843] 16:00:43.376250 D mitogen: _build_tuple('/usr/lib/python2.6/site-packages/ansible/module_utils/six/init.py', u'ansible.module_utils.six') -> []
[pid 23843] 16:00:43.382402 D mitogen: _send_load_module(mitogen.ssh.Stream(u'ssh.grtzpvm5:22'), u'ansible.module_utils.basic')
[pid 23843] 16:00:43.385511 D mitogen: _send_load_module(mitogen.ssh.Stream(u'ssh.grtzpvm5:22'), u'ansible.module_utils.json_utils')
[pid 23843] 16:00:43.387717 D mitogen: _build_tuple('/opt/ansible/mitogen/ansible_mitogen/init.py', u'ansible_mitogen') -> [u'connection', u'loaders', u'logging', u'mixins', u'module_finder', u'planner', u'plugins', u'process', u'runner', u'services', u'strategy', u'target']
[pid 23843] 16:00:43.388278 D mitogen: _send_load_module(mitogen.ssh.Stream(u'ssh.grtzpvm5:22'), u'ansible_mitogen')
[pid 23843] 16:00:43.491372 D mitogen: _get_module_via_sys_modules('zlib') -> <module 'zlib' from '/usr/lib64/python2.6/lib-dynload/zlibmodule.so'>
[pid 23843] 16:00:43.492151 D mitogen: get_module_source('zlib'): cannot find source
[pid 23843] 16:00:43.546828 D mitogen: _get_module_via_sys_modules('_ctypes') -> <module '_ctypes' from '/usr/lib64/python2.6/lib-dynload/_ctypes.so'>
[pid 23843] 16:00:43.547565 D mitogen: get_module_source('_ctypes'): cannot find source
[pid 23843] 16:00:43.549230 D mitogen: _get_module_via_sys_modules('_socket') -> <module '_socket' from '/usr/lib64/python2.6/lib-dynload/_socketmodule.so'>
[pid 23843] 16:00:43.549899 D mitogen: get_module_source('_socket'): cannot find source
[pid 23843] 16:00:43.551429 D mitogen: _get_module_via_sys_modules('_ssl') -> <module '_ssl' from '/usr/lib64/python2.6/lib-dynload/_ssl.so'>
[pid 23843] 16:00:43.552022 D mitogen: get_module_source('_ssl'): cannot find source
[pid 23843] 16:00:43.553542 D mitogen: _get_module_via_sys_modules('_weakref') -> <module '_weakref' from '/usr/lib64/python2.6/lib-dynload/_weakref.so'>
[pid 23843] 16:00:43.554262 D mitogen: get_module_source('_weakref'): cannot find source
[pid 23843] 16:00:43.588063 D mitogen: _get_module_via_sys_modules('termios') -> <module 'termios' from '/usr/lib64/python2.6/lib-dynload/termios.so'>
[pid 23843] 16:00:43.589297 D mitogen: get_module_source('termios'): cannot find source
[pid 23843] 16:00:43.635041 D mitogen: _send_load_module(mitogen.ssh.Stream(u'ssh.grtzpvm5:22'), u'ansible_mitogen.target')
[pid 23843] 16:00:43.640733 D mitogen: _send_load_module(mitogen.ssh.Stream(u'ssh.grtzpvm5:22'), u'mitogen.compat')
[pid 23843] 16:00:43.641749 D mitogen: _build_tuple('/opt/ansible/mitogen/mitogen/compat/init.py', u'mitogen.compat') -> [u'functools', u'pkgutil', u'tokenize']
[pid 23843] 16:00:43.642302 D mitogen: _send_load_module(mitogen.ssh.Stream(u'ssh.grtzpvm5:22'), u'mitogen.compat.functools')
[pid 23843] 16:00:43.644929 D mitogen: _send_load_module(mitogen.ssh.Stream(u'ssh.grtzpvm5:22'), u'mitogen.fork')
[pid 23843] 16:00:43.647082 D mitogen: _send_load_module(mitogen.ssh.Stream(u'ssh.grtzpvm5:22'), u'mitogen.parent')
[pid 23843] 16:00:43.663198 D mitogen: _send_load_module(mitogen.ssh.Stream(u'ssh.grtzpvm5:22'), u'mitogen.select')
[pid 23843] 16:00:43.665238 D mitogen: _send_load_module(mitogen.ssh.Stream(u'ssh.grtzpvm5:22'), u'mitogen.service')
[pid 23843] 16:00:43.675140 D mitogen: _send_load_module(mitogen.ssh.Stream(u'ssh.grtzpvm5:22'), u'ansible_mitogen.runner')
[pid 23843] 16:00:43.677472 D mitogen: _build_tuple('/opt/ansible/mitogen/mitogen/init.py', u'mitogen') -> [u'compat', u'core', u'debug', u'docker', u'fakessh', u'fork', u'jail', u'lxc', u'master', u'minify', u'parent', u'select', u'service', u'setns', u'ssh', u'su', u'sudo', u'unix', u'utils']
[pid 23843] 16:00:43.703128 D mitogen.ctx.ssh.grtzpvm5:22: mitogen: Importer(): 'encodings.ascii' is submodule of a package we did not load
[pid 23843] 16:00:43.709981 D mitogen.ctx.ssh.grtzpvm5:22: mitogen: Importer(): 'json.decoder' is submodule of a package we did not load
[pid 23843] 16:00:43.710792 D mitogen.ctx.ssh.grtzpvm5:22: mitogen: Importer(): 'json.re' is submodule of a package we did not load
[pid 23843] 16:00:43.717746 D mitogen.ctx.ssh.grtzpvm5:22: mitogen: Importer(): 'json.sys' is submodule of a package we did not load
[pid 23843] 16:00:43.720165 D mitogen.ctx.ssh.grtzpvm5:22: mitogen: Importer(): 'json.json' is submodule of a package we did not load
[pid 23843] 16:00:43.720756 D mitogen.ctx.ssh.grtzpvm5:22: mitogen: Importer(): 'json.scanner' is submodule of a package we did not load
[pid 23843] 16:00:43.721208 D mitogen.ctx.ssh.grtzpvm5:22: mitogen: Importer(): 'json.sre_parse' is submodule of a package we did not load
[pid 23843] 16:00:43.721711 D mitogen.ctx.ssh.grtzpvm5:22: mitogen: Importer(): 'json.sre_compile' is submodule of a package we did not load
[pid 23843] 16:00:43.722140 D mitogen.ctx.ssh.grtzpvm5:22: mitogen: Importer(): 'json.sre_constants' is submodule of a package we did not load
[pid 23843] 16:00:43.722749 D mitogen.ctx.ssh.grtzpvm5:22: mitogen: Importer(): 'json.json' is submodule of a package we did not load
[pid 23843] 16:00:43.723320 D mitogen.ctx.ssh.grtzpvm5:22: mitogen: Importer(): 'json.encoder' is submodule of a package we did not load
[pid 23843] 16:00:43.723796 D mitogen.ctx.ssh.grtzpvm5:22: mitogen: Importer(): 'json.math' is submodule of a package we did not load
[pid 23843] 16:00:43.726351 D mitogen.ctx.ssh.grtzpvm5:22: mitogen: Importer(): master doesn't know 'ansible.module_utils.json'
[pid 23843] 16:00:43.732953 D mitogen.ctx.ssh.grtzpvm5:22: mitogen: Importer(): 'ctypes.os' is submodule of a package we did not load
[pid 23843] 16:00:43.734483 D mitogen.ctx.ssh.grtzpvm5:22: mitogen: Importer(): 'ctypes.sys' is submodule of a package we did not load
[pid 23843] 16:00:43.735801 D mitogen.ctx.ssh.grtzpvm5:22: mitogen: Importer(): 'ctypes.ctypes' is submodule of a package we did not load
[pid 23843] 16:00:43.737060 D mitogen.ctx.ssh.grtzpvm5:22: mitogen: Importer(): 'ctypes.struct' is submodule of a package we did not load
[pid 23843] 16:00:43.737887 D mitogen.ctx.ssh.grtzpvm5:22: mitogen: Importer(): 'ctypes.ctypes' is submodule of a package we did not load
[pid 23843] 16:00:43.739103 D mitogen.ctx.ssh.grtzpvm5:22: mitogen: Importer(): 'ctypes.endian' is submodule of a package we did not load
[pid 23843] 16:00:43.761553 D mitogen.ctx.ssh.grtzpvm5:22: mitogen: Importer(): master doesn't know 'ansible.module_utils.locale'
[pid 23843] 16:00:43.762775 D mitogen.ctx.ssh.grtzpvm5:22: mitogen: Importer(): master doesn't know 'ansible.module_utils.os'
[pid 23843] 16:00:43.763781 D mitogen.ctx.ssh.grtzpvm5:22: mitogen: Importer(): master doesn't know 'ansible.module_utils.re'
[pid 23843] 16:00:43.764885 D mitogen.ctx.ssh.grtzpvm5:22: mitogen: Importer(): master doesn't know 'ansible.module_utils.shlex'
[pid 23843] 16:00:43.766011 D mitogen.ctx.ssh.grtzpvm5:22: mitogen: Importer(): master doesn't know 'ansible.module_utils.subprocess'
[pid 23843] 16:00:43.766983 D mitogen.ctx.ssh.grtzpvm5:22: mitogen: Importer(): master doesn't know 'ansible.module_utils.sys'
[pid 23843] 16:00:43.768994 D mitogen.ctx.ssh.grtzpvm5:22: mitogen: Importer(): master doesn't know 'ansible.module_utils.types'
[pid 23843] 16:00:43.770260 D mitogen.ctx.ssh.grtzpvm5:22: mitogen: Importer(): master doesn't know 'ansible.module_utils.time'
[pid 23843] 16:00:43.771264 D mitogen.ctx.ssh.grtzpvm5:22: mitogen: Importer(): master doesn't know 'ansible.module_utils.select'
[pid 23843] 16:00:43.772343 D mitogen.ctx.ssh.grtzpvm5:22: mitogen: Importer(): master doesn't know 'ansible.module_utils.shutil'
[pid 23843] 16:00:43.773372 D mitogen.ctx.ssh.grtzpvm5:22: mitogen: Importer(): master doesn't know 'ansible.module_utils.stat'
[pid 23843] 16:00:43.775068 D mitogen.ctx.ssh.grtzpvm5:22: mitogen: Importer(): master doesn't know 'ansible.module_utils.tempfile'
[pid 23843] 16:00:43.775958 D mitogen.ctx.ssh.grtzpvm5:22: mitogen: Importer(): master doesn't know 'ansible.module_utils.traceback'
[pid 23843] 16:00:43.777024 D mitogen.ctx.ssh.grtzpvm5:22: mitogen: Importer(): master doesn't know 'ansible.module_utils.grp'
[pid 23843] 16:00:43.777871 D mitogen.ctx.ssh.grtzpvm5:22: mitogen: Importer(): master doesn't know 'ansible.module_utils.pwd'
[pid 23843] 16:00:43.778769 D mitogen.ctx.ssh.grtzpvm5:22: mitogen: Importer(): master doesn't know 'ansible.module_utils.platform'
[pid 23843] 16:00:43.779694 D mitogen.ctx.ssh.grtzpvm5:22: mitogen: Importer(): master doesn't know 'ansible.module_utils.errno'
[pid 23843] 16:00:43.780689 D mitogen.ctx.ssh.grtzpvm5:22: mitogen: Importer(): master doesn't know 'ansible.module_utils.datetime'
[pid 23843] 16:00:43.781653 D mitogen.ctx.ssh.grtzpvm5:22: mitogen: Importer(): master doesn't know 'ansible.module_utils.collections'
[pid 23843] 16:00:43.782451 D mitogen.ctx.ssh.grtzpvm5:22: mitogen: Importer(): master doesn't know 'ansible.module_utils.itertools'
[pid 23843] 16:00:43.783379 D mitogen.ctx.ssh.grtzpvm5:22: mitogen: Importer(): master doesn't know 'ansible.module_utils.syslog'
[pid 23843] 16:00:43.783967 D mitogen.ctx.ssh.grtzpvm5:22: mitogen: Importer(): master doesn't know 'ansible.module_utils.systemd'
[pid 23843] 16:00:43.784592 D mitogen.ctx.ssh.grtzpvm5:22: mitogen: Importer(): master doesn't know 'ansible.module_utils.selinux'
[pid 23843] 16:00:43.785189 D mitogen.ctx.ssh.grtzpvm5:22: mitogen: Importer(): 'selinux.sys' is submodule of a package we did not load
[pid 23843] 16:00:43.785805 D mitogen.ctx.ssh.grtzpvm5:22: mitogen: Importer(): 'selinux.os' is submodule of a package we did not load
[pid 23843] 16:00:43.786296 D mitogen.ctx.ssh.grtzpvm5:22: mitogen: Importer(): 'selinux.imp' is submodule of a package we did not load
[pid 23843] 16:00:43.786829 D mitogen.ctx.ssh.grtzpvm5:22: mitogen: Importer(): 'selinux.shutil' is submodule of a package we did not load
[pid 23843] 16:00:43.787324 D mitogen.ctx.ssh.grtzpvm5:22: mitogen: Importer(): 'selinux.stat' is submodule of a package we did not load
[pid 23843] 16:00:43.788117 D mitogen.ctx.ssh.grtzpvm5:22: mitogen: Importer(): master doesn't know 'ansible.module_utils.hashlib'
[pid 23843] 16:00:43.789799 D mitogen.ctx.ssh.grtzpvm5:22: mitogen: Importer(): master doesn't know 'ansible.module_utils.ansible'
[pid 23843] 16:00:43.790416 D mitogen.ctx.ssh.grtzpvm5:22: mitogen: Importer(): master doesn't know 'ansible.module_utils.ast'
[pid 23843] 16:00:43.791041 D mitogen.ctx.ssh.grtzpvm5:22: mitogen: Importer(): master doesn't know 'ansible.module_utils.six.moves'
[pid 23843] 16:00:43.791572 D mitogen.ctx.ssh.grtzpvm5:22: mitogen: Importer(): master doesn't know 'ansible.module_utils.codecs'
[pid 23843] 16:00:43.792097 D mitogen.ctx.ssh.grtzpvm5:22: mitogen: Importer(): master doesn't know 'ansible.module_utils.parsing.ansible'
[pid 23843] 16:00:43.793044 D mitogen.ctx.ssh.grtzpvm5:22: mitogen: Importer(): master doesn't know 'mitogen.logging'
[pid 23843] 16:00:43.793815 D mitogen.ctx.ssh.grtzpvm5:22: mitogen: Importer(): master doesn't know 'mitogen.os'
[pid 23843] 16:00:43.794320 D mitogen.ctx.ssh.grtzpvm5:22: mitogen: Importer(): master doesn't know 'mitogen.random'
[pid 23843] 16:00:43.794986 D mitogen.ctx.ssh.grtzpvm5:22: mitogen: Importer(): master doesn't know 'mitogen.sys'
[pid 23843] 16:00:43.795721 D mitogen.ctx.ssh.grtzpvm5:22: mitogen: Importer(): master doesn't know 'mitogen.threading'
[pid 23843] 16:00:43.796244 D mitogen.ctx.ssh.grtzpvm5:22: mitogen: Importer(): master doesn't know 'mitogen.traceback'
[pid 23843] 16:00:43.796847 D mitogen.ctx.ssh.grtzpvm5:22: mitogen: Importer(): master doesn't know 'mitogen.mitogen'
[pid 23843] 16:00:43.804387 D mitogen.ctx.ssh.grtzpvm5:22: mitogen: Importer(): master doesn't know 'mitogen.codecs'
[pid 23843] 16:00:43.805380 D mitogen.ctx.ssh.grtzpvm5:22: mitogen: Importer(): master doesn't know 'mitogen.errno'
[pid 23843] 16:00:43.806409 D mitogen.ctx.ssh.grtzpvm5:22: mitogen: Importer(): master doesn't know 'mitogen.fcntl'
[pid 23843] 16:00:43.825328 D mitogen.ctx.ssh.grtzpvm5:22: mitogen: Importer(): master doesn't know 'mitogen.getpass'
[pid 23843] 16:00:43.826440 D mitogen.ctx.ssh.grtzpvm5:22: mitogen: Importer(): master doesn't know 'mitogen.inspect'
[pid 23843] 16:00:43.832416 D mitogen.ctx.ssh.grtzpvm5:22: mitogen: Importer(): master doesn't know 'mitogen.signal'
[pid 23843] 16:00:43.833412 D mitogen.ctx.ssh.grtzpvm5:22: mitogen: Importer(): master doesn't know 'mitogen.socket'
[pid 23843] 16:00:43.834455 D mitogen.ctx.ssh.grtzpvm5:22: mitogen: Importer(): master doesn't know 'mitogen.subprocess'
[pid 23843] 16:00:43.835751 D mitogen.ctx.ssh.grtzpvm5:22: mitogen: Importer(): master doesn't know 'mitogen.termios'
[pid 23843] 16:00:43.836464 D mitogen.ctx.ssh.grtzpvm5:22: mitogen: Importer(): master doesn't know 'mitogen.textwrap'
[pid 23843] 16:00:43.838286 D mitogen.ctx.ssh.grtzpvm5:22: mitogen: Importer(): master doesn't know 'mitogen.time'
[pid 23843] 16:00:43.840152 D mitogen.ctx.ssh.grtzpvm5:22: mitogen: Importer(): master doesn't know 'mitogen.types'
[pid 23843] 16:00:43.841348 D mitogen.ctx.ssh.grtzpvm5:22: mitogen: Importer(): master doesn't know 'mitogen.zlib'
[pid 23843] 16:00:43.842862 D mitogen.ctx.ssh.grtzpvm5:22: mitogen: Importer(): master doesn't know 'mitogen.cStringIO'
[pid 23843] 16:00:43.843750 D mitogen.ctx.ssh.grtzpvm5:22: mitogen: Importer(): master doesn't know 'mitogen.functools'
[pid 23843] 16:00:43.844750 D mitogen.ctx.ssh.grtzpvm5:22: mitogen: Importer(): master doesn't know 'mitogen.compat.threading'
[pid 23843] 16:00:43.845405 D mitogen.ctx.ssh.grtzpvm5:22: mitogen: Importer(): master doesn't know 'mitogen.grp'
[pid 23843] 16:00:43.846117 D mitogen.ctx.ssh.grtzpvm5:22: mitogen: Importer(): master doesn't know 'mitogen.pprint'
[pid 23843] 16:00:43.846875 D mitogen.ctx.ssh.grtzpvm5:22: mitogen: Importer(): master doesn't know 'mitogen.pwd'
[pid 23843] 16:00:43.847360 D mitogen.ctx.ssh.grtzpvm5:22: mitogen: Importer(): master doesn't know 'mitogen.stat'
[pid 23843] 16:00:43.848073 D mitogen.ctx.ssh.grtzpvm5:22: mitogen: replaced Poller(0x160b6d0) with EpollPoller(0x1928e90) (new: 4 readers, 0 writers; old: 4 readers, 0 writers)
[pid 23843] 16:00:43.848835 D mitogen.ctx.ssh.grtzpvm5:22: mitogen: Router(Broker(0x160b590)).upgrade()
[pid 23843] 16:00:43.849375 D mitogen: IdAllocator(Router(Broker(0x454fcd0))): allocating [3..1003)
[pid 23843] 16:00:43.850003 D mitogen: IdAllocator(Router(Broker(0x454fcd0))): allocating [3..1003) to Context(2, u'ssh.grtzpvm5:22')
[pid 23843] 16:00:43.854804 D mitogen.ctx.ssh.grtzpvm5:22: mitogen: mitogen.fork.Stream(u'default').connect()
[pid 23843] 16:00:43.855342 D mitogen.ctx.ssh.grtzpvm5:22: mitogen: mitogen.fork.Stream(u'fork.11697').connect(): child process stdin/stdout=15
[pid 23843] 16:00:43.856126 D mitogen: Adding route to 3 via mitogen.ssh.Stream(u'ssh.grtzpvm5:22')
[pid 23843] 16:00:43.856735 D mitogen: Router(Broker(0x454fcd0)).add_route(3, mitogen.ssh.Stream(u'ssh.grtzpvm5:22'))
[pid 23843] 16:00:43.862227 D mitogen: Context(2, u'ssh.grtzpvm5:22').call_async(): mitogen.parent.proxy_connect(method_name=u'sudo', name=None, kwargs=Kwargs({u'username': u'root', 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 23843] 16:00:43.864596 D mitogen.ctx.fork.11697: mitogen: register(Context(2, 'parent'), mitogen.core.Stream('parent'))
[pid 23843] 16:00:43.865404 D mitogen.ctx.fork.11697: mitogen: Connected to Context(2, 'parent'); my ID is 3, PID is 11697
[pid 23843] 16:00:43.866129 D mitogen.ctx.fork.11697: mitogen: Recovered sys.executable: '/usr/bin/python'
[pid 23843] 16:00:43.868847 D mitogen: ModuleResponder(Router(Broker(0x454fcd0))).on_get_module('mitogen.sudo')
[pid 23843] 16:00:43.925304 D mitogen: send_load_module(mitogen.ssh.Stream(u'ssh.grtzpvm5:22'), u'mitogen.sudo')
[pid 23843] 16:00:43.935896 D mitogen.ctx.ssh.grtzpvm5:22: mitogen: Importer(): master doesn't know 'mitogen.optparse'
[pid 23843] 16:00:43.937341 D mitogen.ctx.ssh.grtzpvm5:22: mitogen: mitogen.sudo.Stream(u'default').connect()
[pid 23843] 16:00:43.949410 D mitogen.ctx.ssh.grtzpvm5:22: mitogen: Importer(): 'encodings.base64_codec' is submodule of a package we did not load
[pid 23843] 16:00:43.950030 D mitogen.ctx.ssh.grtzpvm5:22: mitogen: Importer(): 'encodings.base64' is submodule of a package we did not load
[pid 23843] 16:00:43.950776 D mitogen.ctx.ssh.grtzpvm5:22: mitogen.sudo: sudo command line: ['sudo', '-u', u'root', '-H', u'/usr/bin/python', '-c', u'import codecs,os,sys;
=codecs.decode;exec(
(
("eNqFkEFrwkAQhc/mV+Q2u7jorlYpgYUWD6WHUgilHlopidnYpXF32aym+us7xoKJPfQ2H+/NvOGlbCltPXLaKUIjz5oO6TJGKK3/IjSJBjgXOzchnAnO6YVT1iWPqjjzurK1ImkXfBeWXWgQMLA+YHyVBUzdxlLGUGS+0QbizBStqL7VeheyvFKtPN7VfpxrM3aH8GkN4J+DK9tQtot75WttzVsyXbWxyuy1R4b79OGVw0r2184exIr0BdbHIZCtDnajTOKtDXcbH45uv50lQsxvbyjQCO80XgdFBIOnx5dnzvm7Acxf2wJrptFCfpBT0YV1ymC94HOgI6+ygojJdD6jDI7a4aXSyYtvyaDJ4dR96X4DFu187vPK3fzn/vul6H35A1x3rak=".encode(),"base64"),"zip"))']
[pid 23843] 16:00:43.953294 D mitogen.ctx.ssh.grtzpvm5:22: mitogen: hybrid_tty_create_child() pid=11699 stdio=17, tty=16, cmd: "sudo" "-u" "root" "-H" "/usr/bin/python" "-c" "import codecs,os,sys;
=codecs.decode;exec(
(
("eNqFkEFrwkAQhc/mV+Q2u7jorlYpgYUWD6WHUgilHlopidnYpXF32aym+us7xoKJPfQ2H+/NvOGlbCltPXLaKUIjz5oO6TJGKK3/IjSJBjgXOzchnAnO6YVT1iWPqjjzurK1ImkXfBeWXWgQMLA+YHyVBUzdxlLGUGS+0QbizBStqL7VeheyvFKtPN7VfpxrM3aH8GkN4J+DK9tQtot75WttzVsyXbWxyuy1R4b79OGVw0r2184exIr0BdbHIZCtDnajTOKtDXcbH45uv50lQsxvbyjQCO80XgdFBIOnx5dnzvm7Acxf2wJrptFCfpBT0YV1ymC94HOgI6+ygojJdD6jDI7a4aXSyYtvyaDJ4dR96X4DFu187vPK3fzn/vul6H35A1x3rak=".encode(),"base64"),"zip"))"
[pid 23843] 16:00:43.954168 D mitogen.ctx.ssh.grtzpvm5:22: mitogen: mitogen.sudo.Stream(u'local.11699').connect(): child process stdin/stdout=17
[pid 23843] 16:00:43.973020 D mitogen.ctx.ssh.grtzpvm5:22: mitogen.sudo: mitogen.sudo.Stream(u'local.11699'): received 'MITO000\n'
[pid 23843] 16:00:43.974019 D mitogen.ctx.ssh.grtzpvm5:22: mitogen: mitogen.sudo.Stream(u'local.11699')._ec0_received()
[pid 23843] 16:00:43.980610 D mitogen: Adding route to 4 via mitogen.ssh.Stream(u'ssh.grtzpvm5:22')
[pid 23843] 16:00:43.981331 D mitogen: Router(Broker(0x454fcd0)).add_route(4, mitogen.ssh.Stream(u'ssh.grtzpvm5:22'))
[pid 23843] 16:00:43.986199 D mitogen: Context(4, u'ssh.grtzpvm5:22.sudo.root').call_async(): ansible_mitogen.target.init_child()
[pid 23843] 16:00:43.988305 D mitogen.ctx.ssh.grtzpvm5:22: mitogen: ModuleForwarder(Router(Broker(0x160b590)))._on_forward_module() sending u'ansible' to 4 via 4
[pid 23843] 16:00:43.990522 D mitogen.ctx.ssh.grtzpvm5:22: mitogen: ModuleForwarder(Router(Broker(0x160b590)))._on_forward_module() sending u'ansible.module_utils' to 4 via 4
[pid 23843] 16:00:43.992333 D mitogen.ctx.ssh.grtzpvm5:22: mitogen: ModuleForwarder(Router(Broker(0x160b590)))._on_forward_module() sending u'ansible.module_utils.basic' to 4 via 4
[pid 23843] 16:00:43.993353 D mitogen.ctx.ssh.grtzpvm5:22: mitogen: ModuleForwarder(Router(Broker(0x160b590)))._on_forward_module() sending u'ansible.module_utils.json_utils' to 4 via 4
[pid 23843] 16:00:43.994445 D mitogen.ctx.ssh.grtzpvm5:22: mitogen: ModuleForwarder(Router(Broker(0x160b590)))._on_forward_module() sending u'ansible_mitogen' to 4 via 4
[pid 23843] 16:00:43.996315 D mitogen.ctx.ssh.grtzpvm5:22: mitogen: ModuleForwarder(Router(Broker(0x160b590)))._on_forward_module() sending u'ansible_mitogen.runner' to 4 via 4
[pid 23843] 16:00:43.997264 D mitogen.ctx.ssh.grtzpvm5:22: mitogen: ModuleForwarder(Router(Broker(0x160b590)))._send_module_and_related(u'ansible_mitogen.runner'): absent: u'mitogen'
[pid 23843] 16:00:44.038326 D mitogen.ctx.ssh.grtzpvm5:22.sudo.root: mitogen: Importer(): 'encodings.ascii' is submodule of a package we did not load
[pid 23843] 16:00:44.048191 D mitogen.ctx.ssh.grtzpvm5:22.sudo.root: mitogen: Importer(): 'json.decoder' is submodule of a package we did not load
[pid 23843] 16:00:44.048946 D mitogen.ctx.ssh.grtzpvm5:22.sudo.root: mitogen: Importer(): 'json.re' is submodule of a package we did not load
[pid 23843] 16:00:44.054202 D mitogen.ctx.ssh.grtzpvm5:22.sudo.root: mitogen: Importer(): 'json.sys' is submodule of a package we did not load
[pid 23843] 16:00:44.058122 D mitogen.ctx.ssh.grtzpvm5:22.sudo.root: mitogen: Importer(): 'json.json' is submodule of a package we did not load
[pid 23843] 16:00:44.059583 D mitogen.ctx.ssh.grtzpvm5:22.sudo.root: mitogen: Importer(): 'json.scanner' is submodule of a package we did not load
[pid 23843] 16:00:44.060262 D mitogen.ctx.ssh.grtzpvm5:22.sudo.root: mitogen: Importer(): 'json.sre_parse' is submodule of a package we did not load
[pid 23843] 16:00:44.060983 D mitogen.ctx.ssh.grtzpvm5:22.sudo.root: mitogen: Importer(): 'json.sre_compile' is submodule of a package we did not load
[pid 23843] 16:00:44.061571 D mitogen.ctx.ssh.grtzpvm5:22.sudo.root: mitogen: Importer(): 'json.sre_constants' is submodule of a package we did not load
[pid 23843] 16:00:44.062075 D mitogen.ctx.ssh.grtzpvm5:22.sudo.root: mitogen: Importer(): 'json._json' is submodule of a package we did not load
[pid 23843] 16:00:44.062709 D mitogen.ctx.ssh.grtzpvm5:22.sudo.root: mitogen: Importer(): 'json.encoder' is submodule of a package we did not load
[pid 23843] 16:00:44.063191 D mitogen.ctx.ssh.grtzpvm5:22.sudo.root: mitogen: Importer(): 'json.math' is submodule of a package we did not load
[pid 23843] 16:00:44.064652 D mitogen.ctx.ssh.grtzpvm5:22.sudo.root: mitogen: Importer(): master doesn't know 'ansible.module_utils.json'
[pid 23843] 16:00:44.067582 D mitogen.ctx.ssh.grtzpvm5:22.sudo.root: mitogen: Importer(): 'ctypes.os' is submodule of a package we did not load
[pid 23843] 16:00:44.068623 D mitogen.ctx.ssh.grtzpvm5:22.sudo.root: mitogen: Importer(): 'ctypes.sys' is submodule of a package we did not load
[pid 23843] 16:00:44.069146 D mitogen.ctx.ssh.grtzpvm5:22.sudo.root: mitogen: Importer(): 'ctypes._ctypes' is submodule of a package we did not load
[pid 23843] 16:00:44.069863 D mitogen.ctx.ssh.grtzpvm5:22.sudo.root: mitogen: Importer(): 'ctypes.struct' is submodule of a package we did not load
[pid 23843] 16:00:44.070310 D mitogen.ctx.ssh.grtzpvm5:22.sudo.root: mitogen: Importer(): 'ctypes.ctypes' is submodule of a package we did not load
[pid 23843] 16:00:44.070898 D mitogen.ctx.ssh.grtzpvm5:22.sudo.root: mitogen: Importer(): 'ctypes._endian' is submodule of a package we did not load
[pid 23843] 16:00:44.096249 D mitogen.ctx.ssh.grtzpvm5:22.sudo.root: mitogen: Importer(): master doesn't know 'ansible.module_utils.locale'
[pid 23843] 16:00:44.097020 D mitogen.ctx.ssh.grtzpvm5:22.sudo.root: mitogen: Importer(): master doesn't know 'ansible.module_utils.os'
[pid 23843] 16:00:44.097619 D mitogen.ctx.ssh.grtzpvm5:22.sudo.root: mitogen: Importer(): master doesn't know 'ansible.module_utils.re'
[pid 23843] 16:00:44.098172 D mitogen.ctx.ssh.grtzpvm5:22.sudo.root: mitogen: Importer(): master doesn't know 'ansible.module_utils.shlex'
[pid 23843] 16:00:44.099031 D mitogen.ctx.ssh.grtzpvm5:22.sudo.root: mitogen: Importer(): master doesn't know 'ansible.module_utils.subprocess'
[pid 23843] 16:00:44.099629 D mitogen.ctx.ssh.grtzpvm5:22.sudo.root: mitogen: Importer(): master doesn't know 'ansible.module_utils.sys'
[pid 23843] 16:00:44.100165 D mitogen.ctx.ssh.grtzpvm5:22.sudo.root: mitogen: Importer(): master doesn't know 'ansible.module_utils.types'
[pid 23843] 16:00:44.102052 D mitogen.ctx.ssh.grtzpvm5:22.sudo.root: mitogen: Importer(): master doesn't know 'ansible.module_utils.time'
[pid 23843] 16:00:44.102988 D mitogen.ctx.ssh.grtzpvm5:22.sudo.root: mitogen: Importer(): master doesn't know 'ansible.module_utils.select'
[pid 23843] 16:00:44.104264 D mitogen.ctx.ssh.grtzpvm5:22.sudo.root: mitogen: Importer(): master doesn't know 'ansible.module_utils.shutil'
[pid 23843] 16:00:44.105779 D mitogen.ctx.ssh.grtzpvm5:22.sudo.root: mitogen: Importer(): master doesn't know 'ansible.module_utils.stat'
[pid 23843] 16:00:44.108305 D mitogen.ctx.ssh.grtzpvm5:22.sudo.root: mitogen: Importer(): master doesn't know 'ansible.module_utils.tempfile'
[pid 23843] 16:00:44.109884 D mitogen.ctx.ssh.grtzpvm5:22.sudo.root: mitogen: Importer(): master doesn't know 'ansible.module_utils.traceback'
[pid 23843] 16:00:44.110403 D mitogen.ctx.ssh.grtzpvm5:22.sudo.root: mitogen: Importer(): master doesn't know 'ansible.module_utils.grp'
[pid 23843] 16:00:44.111145 D mitogen.ctx.ssh.grtzpvm5:22.sudo.root: mitogen: Importer(): master doesn't know 'ansible.module_utils.pwd'
[pid 23843] 16:00:44.111955 D mitogen.ctx.ssh.grtzpvm5:22.sudo.root: mitogen: Importer(): master doesn't know 'ansible.module_utils.platform'
[pid 23843] 16:00:44.112767 D mitogen.ctx.ssh.grtzpvm5:22.sudo.root: mitogen: Importer(): master doesn't know 'ansible.module_utils.errno'
[pid 23843] 16:00:44.113665 D mitogen.ctx.ssh.grtzpvm5:22.sudo.root: mitogen: Importer(): master doesn't know 'ansible.module_utils.datetime'
[pid 23843] 16:00:44.114235 D mitogen.ctx.ssh.grtzpvm5:22.sudo.root: mitogen: Importer(): master doesn't know 'ansible.module_utils.collections'
[pid 23843] 16:00:44.114936 D mitogen.ctx.ssh.grtzpvm5:22.sudo.root: mitogen: Importer(): master doesn't know 'ansible.module_utils.itertools'
[pid 23843] 16:00:44.115440 D mitogen.ctx.ssh.grtzpvm5:22.sudo.root: mitogen: Importer(): master doesn't know 'ansible.module_utils.syslog'
[pid 23843] 16:00:44.116134 D mitogen.ctx.ssh.grtzpvm5:22.sudo.root: mitogen: Importer(): master doesn't know 'ansible.module_utils.systemd'
[pid 23843] 16:00:44.117917 D mitogen.ctx.ssh.grtzpvm5:22.sudo.root: mitogen: Importer(): master doesn't know 'ansible.module_utils.selinux'
[pid 23843] 16:00:44.122303 D mitogen.ctx.ssh.grtzpvm5:22.sudo.root: mitogen: Importer(): 'selinux.sys' is submodule of a package we did not load
[pid 23843] 16:00:44.123033 D mitogen.ctx.ssh.grtzpvm5:22.sudo.root: mitogen: Importer(): 'selinux.os' is submodule of a package we did not load
[pid 23843] 16:00:44.124000 D mitogen.ctx.ssh.grtzpvm5:22.sudo.root: mitogen: Importer(): 'selinux.imp' is submodule of a package we did not load
[pid 23843] 16:00:44.124844 D mitogen.ctx.ssh.grtzpvm5:22.sudo.root: mitogen: Importer(): 'selinux.shutil' is submodule of a package we did not load
[pid 23843] 16:00:44.125443 D mitogen.ctx.ssh.grtzpvm5:22.sudo.root: mitogen: Importer(): 'selinux.stat' is submodule of a package we did not load
[pid 23843] 16:00:44.126174 D mitogen.ctx.ssh.grtzpvm5:22.sudo.root: mitogen: Importer(): master doesn't know 'ansible.module_utils.hashlib'
[pid 23843] 16:00:44.126891 D mitogen.ctx.ssh.grtzpvm5:22.sudo.root: mitogen: Importer(): master doesn't know 'ansible.module_utils.ansible'
[pid 23843] 16:00:44.127365 D mitogen.ctx.ssh.grtzpvm5:22.sudo.root: mitogen: Importer(): master doesn't know 'ansible.module_utils.ast'
[pid 23843] 16:00:44.128065 D mitogen.ctx.ssh.grtzpvm5:22.sudo.root: mitogen: Importer(): master doesn't know 'ansible.module_utils.six.moves'
[pid 23843] 16:00:44.128658 D mitogen.ctx.ssh.grtzpvm5:22.sudo.root: mitogen: Importer(): master doesn't know 'ansible.module_utils.codecs'
[pid 23843] 16:00:44.129311 D mitogen.ctx.ssh.grtzpvm5:22.sudo.root: mitogen: Importer(): master doesn't know 'ansible.module_utils.parsing.ansible'
[pid 23843] 16:00:44.130070 D mitogen.ctx.ssh.grtzpvm5:22.sudo.root: mitogen: Importer(): master doesn't know 'mitogen.logging'
[pid 23843] 16:00:44.130714 D mitogen.ctx.ssh.grtzpvm5:22.sudo.root: mitogen: Importer(): master doesn't know 'mitogen.os'
[pid 23843] 16:00:44.131257 D mitogen.ctx.ssh.grtzpvm5:22.sudo.root: mitogen: Importer(): master doesn't know 'mitogen.random'
[pid 23843] 16:00:44.131958 D mitogen.ctx.ssh.grtzpvm5:22.sudo.root: mitogen: Importer(): master doesn't know 'mitogen.sys'
[pid 23843] 16:00:44.132482 D mitogen.ctx.ssh.grtzpvm5:22.sudo.root: mitogen: Importer(): master doesn't know 'mitogen.threading'
[pid 23843] 16:00:44.133164 D mitogen.ctx.ssh.grtzpvm5:22.sudo.root: mitogen: Importer(): master doesn't know 'mitogen.traceback'
[pid 23843] 16:00:44.133804 D mitogen.ctx.ssh.grtzpvm5:22.sudo.root: mitogen: Importer(): master doesn't know 'mitogen.mitogen'
[pid 23843] 16:00:44.145778 D mitogen.ctx.ssh.grtzpvm5:22.sudo.root: mitogen: Importer(): master doesn't know 'mitogen.codecs'
[pid 23843] 16:00:44.151730 D mitogen.ctx.ssh.grtzpvm5:22.sudo.root: mitogen: Importer(): master doesn't know 'mitogen.errno'
[pid 23843] 16:00:44.152301 D mitogen.ctx.ssh.grtzpvm5:22.sudo.root: mitogen: Importer(): master doesn't know 'mitogen.fcntl'
[pid 23843] 16:00:44.153145 D mitogen.ctx.ssh.grtzpvm5:22.sudo.root: mitogen: Importer(): master doesn't know 'mitogen.getpass'
[pid 23843] 16:00:44.153965 D mitogen.ctx.ssh.grtzpvm5:22.sudo.root: mitogen: Importer(): master doesn't know 'mitogen.inspect'
[pid 23843] 16:00:44.162558 D mitogen.ctx.ssh.grtzpvm5:22.sudo.root: mitogen: Importer(): master doesn't know 'mitogen.signal'
[pid 23843] 16:00:44.163138 D mitogen.ctx.ssh.grtzpvm5:22.sudo.root: mitogen: Importer(): master doesn't know 'mitogen.socket'
[pid 23843] 16:00:44.163798 D mitogen.ctx.ssh.grtzpvm5:22.sudo.root: mitogen: Importer(): master doesn't know 'mitogen.subprocess'
[pid 23843] 16:00:44.164473 D mitogen.ctx.ssh.grtzpvm5:22.sudo.root: mitogen: Importer(): master doesn't know 'mitogen.termios'
[pid 23843] 16:00:44.165598 D mitogen.ctx.ssh.grtzpvm5:22.sudo.root: mitogen: Importer(): master doesn't know 'mitogen.textwrap'
[pid 23843] 16:00:44.166127 D mitogen.ctx.ssh.grtzpvm5:22.sudo.root: mitogen: Importer(): master doesn't know 'mitogen.time'
[pid 23843] 16:00:44.166760 D mitogen.ctx.ssh.grtzpvm5:22.sudo.root: mitogen: Importer(): master doesn't know 'mitogen.types'
[pid 23843] 16:00:44.167395 D mitogen.ctx.ssh.grtzpvm5:22.sudo.root: mitogen: Importer(): master doesn't know 'mitogen.zlib'
[pid 23843] 16:00:44.168097 D mitogen.ctx.ssh.grtzpvm5:22.sudo.root: mitogen: Importer(): master doesn't know 'mitogen.cStringIO'
[pid 23843] 16:00:44.168709 D mitogen.ctx.ssh.grtzpvm5:22.sudo.root: mitogen: Importer(): master doesn't know 'mitogen.functools'
[pid 23843] 16:00:44.171004 D mitogen.ctx.ssh.grtzpvm5:22.sudo.root: mitogen: Importer(): master doesn't know 'mitogen.compat.threading'
[pid 23843] 16:00:44.173655 D mitogen.ctx.ssh.grtzpvm5:22.sudo.root: mitogen: Importer(): master doesn't know 'mitogen.grp'
[pid 23843] 16:00:44.175029 D mitogen.ctx.ssh.grtzpvm5:22.sudo.root: mitogen: Importer(): master doesn't know 'mitogen.pprint'
[pid 23843] 16:00:44.175875 D mitogen.ctx.ssh.grtzpvm5:22.sudo.root: mitogen: Importer(): master doesn't know 'mitogen.pwd'
[pid 23843] 16:00:44.176333 D mitogen.ctx.ssh.grtzpvm5:22.sudo.root: mitogen: Importer(): master doesn't know 'mitogen.stat'
[pid 23843] 16:00:44.176925 D mitogen.ctx.ssh.grtzpvm5:22.sudo.root: mitogen: replaced Poller(0x110b650) with EpollPoller(0x1606e50) (new: 4 readers, 1 writers; old: 4 readers, 1 writers)
[pid 23843] 16:00:44.177383 D mitogen.ctx.ssh.grtzpvm5:22.sudo.root: mitogen: Router(Broker(0x110b510)).upgrade()
[pid 23843] 16:00:44.178131 D mitogen: IdAllocator(Router(Broker(0x454fcd0))): allocating [1003..2003)
[pid 23843] 16:00:44.178644 D mitogen: IdAllocator(Router(Broker(0x454fcd0))): allocating [1003..2003) to Context(4, u'ssh.grtzpvm5:22.sudo.root')
[pid 23843] 16:00:44.182950 D mitogen.ctx.ssh.grtzpvm5:22.sudo.root: mitogen: mitogen.fork.Stream(u'default').connect()
[pid 23843] 16:00:44.183818 D mitogen.ctx.ssh.grtzpvm5:22.sudo.root: mitogen: mitogen.fork.Stream(u'fork.11703').connect(): child process stdin/stdout=15
[pid 23843] 16:00:44.184462 D mitogen.ctx.ssh.grtzpvm5:22: mitogen: Adding route to 1003 via mitogen.sudo.Stream(u'sudo.root')
[pid 23843] 16:00:44.185078 D mitogen.ctx.ssh.grtzpvm5:22: mitogen: Router(Broker(0x160b590)).add_route(1003, mitogen.sudo.Stream(u'sudo.root'))
[pid 23843] 16:00:44.185873 D mitogen: Adding route to 1003 via mitogen.ssh.Stream(u'ssh.grtzpvm5:22')
[pid 23843] 16:00:44.186248 D mitogen: Router(Broker(0x454fcd0)).add_route(1003, mitogen.ssh.Stream(u'ssh.grtzpvm5:22'))
[pid 23843] 16:00:44.187881 D mitogen.ctx.fork.11703: mitogen: register(Context(4, 'parent'), mitogen.core.Stream('parent'))
[pid 23843] 16:00:44.188341 D mitogen.ctx.fork.11703: mitogen: Connected to Context(4, 'parent'); my ID is 1003, PID is 11703
[pid 23843] 16:00:44.188950 D mitogen.ctx.fork.11703: mitogen: Recovered sys.executable: '/usr/bin/python'
[pid 23862] 16:00:44.190596 D mitogen: Context(4, u'ssh.grtzpvm5:22.sudo.root').call_async(): ansible_mitogen.target.make_temp_directory(base_dir=u'$HOME/.ansible/tmp')
[pid 23862] 16:00:44.196038 D ansible_mitogen.connection: Call took 1765 ms: make_temp_directory()
[pid 23862] 16:00:44.196573 D ansible_mitogen.mixins: Temporary directory: u'$HOME/.ansible/tmp/ansible-mitogen-tmp-bMDTnQ'
[pid 23843] 16:00:44.243043 D ansible_mitogen.services: ContextService().put(Context(4, u'ssh.grtzpvm5:22.sudo.root'))
[pid 23862] 16:00:44.245599 D ansible_mitogen.mixins: _remote_expand_user(u'/etc/resolv.conf', sudoable=True)
[pid 23862] 16:00:44.254797 D ansible_mitogen.planner: BinaryPlanner() rejected u'stat'
[pid 23862] 16:00:44.255542 D ansible_mitogen.planner: NewStylePlanner() accepted u'stat' (filename u'/usr/lib/python2.6/site-packages/ansible/modules/files/stat.py')
[pid 23843] 16:00:44.489686 D mitogen: PushFileService().propagate_to(Context(4, u'ssh.grtzpvm5:22.sudo.root'), u'/usr/lib/python2.6/site-packages/ansible/modules/files/stat.py')
[pid 23862] 16:00:44.502807 D mitogen: Context(4, u'ssh.grtzpvm5:22.sudo.root').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'service_context': Context(0, None), u'extra_env': None, u'env': {}, u'interpreter': None, u'path': u'/usr/lib/python2.6/site-packages/ansible/modules/files/stat.py', u'runner_name': u'NewStyleRunner', u'interpreter_arg': None, u'cwd': None, u'json_args': '{"_ansible_version": "2.5.5", "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": "/etc/resolv.conf", "_ansible_tmpdir": "$HOME/.ansible/tmp/ansible-mitogen-tmp-bMDTnQ"}'})
[pid 23843] 16:00:44.513855 D mitogen.ctx.ssh.grtzpvm5:22: mitogen: mitogen.service.Pool(0x190fd50, size=16, th='Thread-1'): initialized
[pid 23843] 16:00:44.515457 D mitogen.ctx.ssh.grtzpvm5:22: mitogen: PushFileService().store_and_forward(u'/usr/lib/python2.6/site-packages/ansible/modules/files/stat.py', [blob: 19647 bytes], Context(4, u'ssh.grtzpvm5:22.sudo.root'))
[pid 23843] 16:00:44.526952 D mitogen.ctx.ssh.grtzpvm5:22.sudo.root: mitogen: mitogen.service.Pool(0x158c350, size=16, th='Thread-1'): initialized
[pid 23843] 16:00:44.527974 D mitogen.ctx.ssh.grtzpvm5:22.sudo.root: mitogen: PushFileService().get(u'/usr/lib/python2.6/site-packages/ansible/modules/files/stat.py') waiting for uncached file to arrive
[pid 23843] 16:00:44.528562 D mitogen.ctx.ssh.grtzpvm5:22.sudo.root: mitogen: PushFileService().store_and_forward(u'/usr/lib/python2.6/site-packages/ansible/modules/files/stat.py', [blob: 19647 bytes], Context(4, u'ssh.grtzpvm5:22.sudo.root'))
[pid 23843] 16:00:44.534008 D mitogen.ctx.ssh.grtzpvm5:22.sudo.root: mitogen: PushFileService().get(u'/usr/lib/python2.6/site-packages/ansible/modules/files/stat.py') -> [blob: 19647 bytes]
[pid 23843] 16:00:44.534923 D mitogen.ctx.ssh.grtzpvm5:22.sudo.root: mitogen: Importer(): master doesn't know 'ansible.module_utils.parsing.'
[pid 23843] 16:00:44.535503 D mitogen.ctx.ssh.grtzpvm5:22.sudo.root: mitogen: Importer(): master doesn't know 'ansible.module_utils.six.'
[pid 23862] 16:00:44.549587 D ansible_mitogen.connection: Call took 46 ms: run_module()
[pid 23862] 16:00:44.554145 D ansible_mitogen.planner: BinaryPlanner() rejected u'file'
[pid 23862] 16:00:44.554625 D ansible_mitogen.planner: NewStylePlanner() accepted u'file' (filename u'/usr/lib/python2.6/site-packages/ansible/modules/files/file.py')
[pid 23843] 16:00:44.660262 D mitogen: PushFileService().propagate_to(Context(4, u'ssh.grtzpvm5:22.sudo.root'), u'/usr/lib/python2.6/site-packages/ansible/modules/files/file.py')
[pid 23862] 16:00:44.665852 D mitogen: Context(4, u'ssh.grtzpvm5:22.sudo.root').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'service_context': Context(0, None), u'extra_env': None, u'env': {}, u'interpreter': None, u'path': u'/usr/lib/python2.6/site-packages/ansible/modules/files/file.py', u'runner_name': u'NewStyleRunner', u'interpreter_arg': None, u'cwd': None, u'json_args': '{"_ansible_version": "2.5.5", "src": "resolv.j2", "_ansible_selinux_special_fs": ["fuse", "nfs", "vboxsf", "ramfs", "9p"], "group": "root", "_ansible_no_log": false, "dest": "/etc/resolv.conf", "_ansible_module_name": "file", "_ansible_verbosity": 3, "_ansible_syslog_facility": "LOG_USER", "_ansible_socket": null, "owner": "root", "state": "file", "original_basename": "resolv.j2", "_ansible_diff": true, "mode": "0644", "_ansible_debug": false, "_ansible_shell_executable": "/bin/sh", "_ansible_check_mode": false, "_ansible_tmpdir": "$HOME/.ansible/tmp/ansible-mitogen-tmp-bMDTnQ", "follow": false}'})
[pid 23843] 16:00:44.670993 D mitogen.ctx.ssh.grtzpvm5:22: mitogen: PushFileService().store_and_forward(u'/usr/lib/python2.6/site-packages/ansible/modules/files/file.py', [blob: 20828 bytes], Context(4, u'ssh.grtzpvm5:22.sudo.root'))
[pid 23843] 16:00:44.672458 D mitogen.ctx.ssh.grtzpvm5:22.sudo.root: mitogen: PushFileService().store_and_forward(u'/usr/lib/python2.6/site-packages/ansible/modules/files/file.py', [blob: 20828 bytes], Context(4, u'ssh.grtzpvm5:22.sudo.root'))
[pid 23843] 16:00:44.681733 D mitogen.ctx.ssh.grtzpvm5:22.sudo.root: mitogen: Importer(): master doesn't know 'ansible.module_utils.parsing.'
[pid 23843] 16:00:44.682816 D mitogen.ctx.ssh.grtzpvm5:22.sudo.root: mitogen: Importer(): master doesn't know 'ansible.module_utils.six.'
[pid 23862] 16:00:44.684722 D ansible_mitogen.connection: Call took 18 ms: run_module()
[pid 23862] 16:00:44.687436 D ansible_mitogen.mixins: _remove_tmp_path(u'$HOME/.ansible/tmp/ansible-mitogen-tmp-bMDTnQ')
[pid 23862] 16:00:44.688441 D ansible_mitogen.mixins: _remove_tmp_path(u'$HOME/.ansible/tmp/ansible-mitogen-tmp-bMDTnQ')
[pid 23862] 16:00:44.689201 D mitogen: Context(4, u'ssh.grtzpvm5:22.sudo.root').call_async(): shutil.rmtree(u'$HOME/.ansible/tmp/ansible-mitogen-tmp-bMDTnQ')
[pid 23862] 16:00:44.694195 D ansible_mitogen.connection: Call took 4 ms: rmtree(u'$HOME/.ansible/tmp/ansible-mitogen-tmp-bMDTnQ',)
ok: [grtzpvm5] => (item={u'dest': u'/etc/resolv.conf', u'src': u'resolv.j2'}) => {
"changed": false,
[snip]
"mode": "0644",
"owner": "root",
"path": "/root/.forward",
"size": 15,
"state": "file",
"uid": 0
}
[pid 23843] 16:00:46.720956 D ansible_mitogen.services: ContextService().put(Context(4, u'ssh.grtzpvm5:22.sudo.root'))
[pid 23862] 16:00:46.723232 D ansible_mitogen.mixins: _make_tmp_path(remote_user=None)
[pid 23862] 16:00:46.724019 D ansible_mitogen.mixins: _remote_expand_user(u'$HOME/.ansible/tmp', sudoable=True)
[pid 23862] 16:00:46.729457 D mitogen: Context(4, u'ssh.grtzpvm5:22.sudo.root').call_async(): ansible_mitogen.target.make_temp_directory(base_dir=u'$HOME/.ansible/tmp')
[pid 23862] 16:00:46.733408 D ansible_mitogen.connection: Call took 8 ms: make_temp_directory()
[pid 23862] 16:00:46.734230 D ansible_mitogen.mixins: Temporary directory: u'$HOME/.ansible/tmp/ansible-mitogen-tmp-bgJLrI'
[pid 23843] 16:00:46.760054 D ansible_mitogen.services: ContextService().put(Context(4, u'ssh.grtzpvm5:22.sudo.root'))
[pid 23862] 16:00:46.761582 D ansible_mitogen.mixins: _remote_expand_user(u'/etc/nagios/send_nsca.cfg', sudoable=True)
[pid 23862] 16:00:46.766298 D ansible_mitogen.planner: BinaryPlanner() rejected u'stat'
[pid 23862] 16:00:46.766709 D ansible_mitogen.planner: NewStylePlanner() accepted u'stat' (filename u'/usr/lib/python2.6/site-packages/ansible/modules/files/stat.py')
[pid 23843] 16:00:46.769790 D mitogen: PushFileService().propagate_to(Context(4, u'ssh.grtzpvm5:22.sudo.root'), u'/usr/lib/python2.6/site-packages/ansible/modules/files/stat.py')
[pid 23862] 16:00:46.775797 D mitogen: Context(4, u'ssh.grtzpvm5:22.sudo.root').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'service_context': Context(0, None), u'extra_env': None, u'env': {}, u'interpreter': None, u'path': u'/usr/lib/python2.6/site-packages/ansible/modules/files/stat.py', u'runner_name': u'NewStyleRunner', u'interpreter_arg': None, u'cwd': None, u'json_args': '{"_ansible_version": "2.5.5", "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": "/etc/nagios/send_nsca.cfg", "_ansible_tmpdir": "$HOME/.ansible/tmp/ansible-mitogen-tmp-bgJLrI"}'})
[pid 23843] 16:00:46.778996 D mitogen.ctx.ssh.grtzpvm5:22: mitogen: PushFileService().store_and_forward(u'/usr/lib/python2.6/site-packages/ansible/modules/files/stat.py', [blob: 19647 bytes], Context(4, u'ssh.grtzpvm5:22.sudo.root'))
[pid 23843] 16:00:46.780245 D mitogen.ctx.ssh.grtzpvm5:22.sudo.root: mitogen: PushFileService().store_and_forward(u'/usr/lib/python2.6/site-packages/ansible/modules/files/stat.py', [blob: 19647 bytes], Context(4, u'ssh.grtzpvm5:22.sudo.root'))
[pid 23843] 16:00:46.783580 D mitogen.ctx.ssh.grtzpvm5:22.sudo.root: mitogen: Importer(): master doesn't know 'ansible.module_utils.parsing.'
[pid 23843] 16:00:46.784235 D mitogen.ctx.ssh.grtzpvm5:22.sudo.root: mitogen: Importer(): master doesn't know 'ansible.module_utils.six.'
[pid 23862] 16:00:46.798023 D ansible_mitogen.connection: Call took 22 ms: run_module()
[pid 23862] 16:00:46.801308 D ansible_mitogen.planner: BinaryPlanner() rejected u'file'
[pid 23862] 16:00:46.801733 D ansible_mitogen.planner: NewStylePlanner() accepted u'file' (filename u'/usr/lib/python2.6/site-packages/ansible/modules/files/file.py')
[pid 23843] 16:00:46.806471 D mitogen: PushFileService().propagate_to(Context(4, u'ssh.grtzpvm5:22.sudo.root'), u'/usr/lib/python2.6/site-packages/ansible/modules/files/file.py')
[pid 23843] 16:00:46.814175 D mitogen.ctx.ssh.grtzpvm5:22: mitogen: PushFileService().store_and_forward(u'/usr/lib/python2.6/site-packages/ansible/modules/files/file.py', [blob: 20828 bytes], Context(4, u'ssh.grtzpvm5:22.sudo.root'))
[pid 23843] 16:00:46.815061 D mitogen.ctx.ssh.grtzpvm5:22.sudo.root: mitogen: PushFileService().store_and_forward(u'/usr/lib/python2.6/site-packages/ansible/modules/files/file.py', [blob: 20828 bytes], Context(4, u'ssh.grtzpvm5:22.sudo.root'))
[pid 23862] 16:00:46.816606 D mitogen: Context(4, u'ssh.grtzpvm5:22.sudo.root').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'service_context': Context(0, None), u'extra_env': None, u'env': {}, u'interpreter': None, u'path': u'/usr/lib/python2.6/site-packages/ansible/modules/files/file.py', u'runner_name': u'NewStyleRunner', u'interpreter_arg': None, u'cwd': None, u'json_args': '{"_ansible_version": "2.5.5", "_ansible_selinux_special_fs": ["fuse", "nfs", "vboxsf", "ramfs", "9p"], "_ansible_no_log": false, "_ansible_module_name": "file", "_ansible_syslog_facility": "LOG_USER", "_ansible_verbosity": 3, "_ansible_socket": null, "_ansible_diff": true, "_ansible_debug": false, "_ansible_shell_executable": "/bin/sh", "_ansible_check_mode": false, "path": "/etc/nagios/send_nsca.cfg", "_ansible_tmpdir": "$HOME/.ansible/tmp/ansible-mitogen-tmp-bgJLrI", "diff_peek": true}'})
[pid 23843] 16:00:46.859554 D mitogen.ctx.ssh.grtzpvm5:22.sudo.root: mitogen: Importer(): master doesn't know 'ansible.module_utils.parsing.'
[pid 23843] 16:00:46.861046 D mitogen.ctx.ssh.grtzpvm5:22.sudo.root: mitogen: Importer(): master doesn't know 'ansible.module_utils.six.'
[pid 23862] 16:00:46.863910 D ansible_mitogen.connection: Call took 47 ms: run_module()
[pid 23862] 16:00:46.866345 D ansible_mitogen.planner: BinaryPlanner() rejected u'slurp'
[pid 23862] 16:00:46.866744 D ansible_mitogen.planner: NewStylePlanner() accepted u'slurp' (filename u'/usr/lib/python2.6/site-packages/ansible/modules/network/basics/slurp.py')
[pid 23843] 16:00:47.056077 D mitogen: PushFileService().propagate_to(Context(4, u'ssh.grtzpvm5:22.sudo.root'), u'/usr/lib/python2.6/site-packages/ansible/modules/network/basics/slurp.py')
[pid 23843] 16:00:47.062498 D mitogen.ctx.ssh.grtzpvm5:22: mitogen: PushFileService().store_and_forward(u'/usr/lib/python2.6/site-packages/ansible/modules/network/basics/slurp.py', [blob: 2768 bytes], Context(4, u'ssh.grtzpvm5:22.sudo.root'))
[pid 23843] 16:00:47.063524 D mitogen.ctx.ssh.grtzpvm5:22.sudo.root: mitogen: PushFileService().store_and_forward(u'/usr/lib/python2.6/site-packages/ansible/modules/network/basics/slurp.py', [blob: 2768 bytes], Context(4, u'ssh.grtzpvm5:22.sudo.root'))
[pid 23862] 16:00:47.064717 D mitogen: Context(4, u'ssh.grtzpvm5:22.sudo.root').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'slurp', u'service_context': Context(0, None), u'extra_env': None, u'env': {}, u'interpreter': None, u'path': u'/usr/lib/python2.6/site-packages/ansible/modules/network/basics/slurp.py', u'runner_name': u'NewStyleRunner', u'interpreter_arg': None, u'cwd': None, u'json_args': '{"_ansible_version": "2.5.5", "_ansible_selinux_special_fs": ["fuse", "nfs", "vboxsf", "ramfs", "9p"], "_ansible_no_log": false, "_ansible_module_name": "slurp", "_ansible_syslog_facility": "LOG_USER", "_ansible_verbosity": 3, "_ansible_socket": null, "_ansible_diff": true, "_ansible_debug": false, "_ansible_shell_executable": "/bin/sh", "path": "/etc/nagios/send_nsca.cfg", "_ansible_tmpdir": "$HOME/.ansible/tmp/ansible-mitogen-tmp-bgJLrI", "_ansible_check_mode": false}'})
[pid 23843] 16:00:47.111011 D mitogen.ctx.ssh.grtzpvm5:22.sudo.root: mitogen: Importer(): master doesn't know 'ansible.module_utils.parsing.'
[pid 23843] 16:00:47.111847 D mitogen.ctx.ssh.grtzpvm5:22.sudo.root: mitogen: Importer(): master doesn't know 'ansible.module_utils.six.'
[pid 23862] 16:00:47.113652 D ansible_mitogen.connection: Call took 48 ms: run_module()
[pid 23862] 16:00:47.116064 D mitogen: Context(4, u'ssh.grtzpvm5:22.sudo.root').call_async(): ansible_mitogen.target.write_path(u'$HOME/.ansible/tmp/ansible-mitogen-tmp-bgJLrI/source', [blob: 189 bytes], utimes=(1531404046.7612379, 1531404046.7582378), mode=33204)
[pid 23843] 16:00:47.120314 D mitogen.ctx.ssh.grtzpvm5:22.sudo.root: ansible_mitogen.target: write_path(path=u'/root/$HOME/.ansible/tmp/ansible-mitogen-tmp-bgJLrI/source') temporary file: /root/$HOME/.ansible/tmp/ansible-mitogen-tmp-bgJLrI/.ansible_mitogen_transfer-O27OaH.tmp
[pid 23862] 16:00:47.122213 D ansible_mitogen.connection: Call took 6 ms: write_path(u'$HOME/.ansible/tmp/ansible-mitogen-tmp-bgJLrI/source', [blob: 189 bytes])
[pid 23862] 16:00:47.123006 D ansible_mitogen.mixins: _fixup_perms2((u'$HOME/.ansible/tmp/ansible-mitogen-tmp-bgJLrI', u'$HOME/.ansible/tmp/ansible-mitogen-tmp-bgJLrI/source'), remote_user=None, execute=True)
[pid 23862] 16:00:47.123622 D ansible_mitogen.mixins: _remote_chmod((u'$HOME/.ansible/tmp/ansible-mitogen-tmp-bgJLrI', u'$HOME/.ansible/tmp/ansible-mitogen-tmp-bgJLrI/source'), mode='u+x', sudoable=False)
[pid 23862] 16:00:47.124272 D mitogen: Context(4, u'ssh.grtzpvm5:22.sudo.root').call_async(): ansible_mitogen.target.set_file_mode(u'$HOME/.ansible/tmp/ansible-mitogen-tmp-bgJLrI', 'u+x')
[pid 23862] 16:00:47.125265 D mitogen: Context(4, u'ssh.grtzpvm5:22.sudo.root').call_async(): ansible_mitogen.target.set_file_mode(u'$HOME/.ansible/tmp/ansible-mitogen-tmp-bgJLrI/source', 'u+x')
[pid 23862] 16:00:47.132436 D ansible_mitogen.planner: BinaryPlanner() rejected u'copy'
[pid 23862] 16:00:47.133232 D ansible_mitogen.planner: NewStylePlanner() accepted u'copy' (filename u'/usr/lib/python2.6/site-packages/ansible/modules/files/copy.py')
[pid 23843] 16:00:47.218079 D mitogen: PushFileService().propagate_to(Context(4, u'ssh.grtzpvm5:22.sudo.root'), u'/usr/lib/python2.6/site-packages/ansible/modules/files/copy.py')
[pid 23862] 16:00:47.227636 D mitogen: Context(4, u'ssh.grtzpvm5:22.sudo.root').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'copy', u'service_context': Context(0, None), u'extra_env': None, u'env': {}, u'interpreter': None, u'path': u'/usr/lib/python2.6/site-packages/ansible/modules/files/copy.py', u'runner_name': u'NewStyleRunner', u'interpreter_arg': None, u'cwd': None, u'json_args': '{"_ansible_version": "2.5.5", "src": "$HOME/.ansible/tmp/ansible-mitogen-tmp-bgJLrI/source", "_ansible_selinux_special_fs": ["fuse", "nfs", "vboxsf", "ramfs", "9p"], "group": "root", "_ansible_no_log": false, "dest": "/etc/nagios/send_nsca.cfg", "checksum": "d2646143c26b0252f101e272036358bc1e4e4483", "_ansible_module_name": "copy", "_ansible_verbosity": 3, "_ansible_syslog_facility": "LOG_USER", "_ansible_socket": null, "owner": "root", "original_basename": "send_nsca.j2", "_ansible_diff": true, "mode": "0644", "_ansible_debug": false, "_ansible_shell_executable": "/bin/sh", "_ansible_check_mode": false, "_ansible_tmpdir": "$HOME/.ansible/tmp/ansible-mitogen-tmp-bgJLrI", "follow": false}'})
[pid 23843] 16:00:47.229682 D mitogen.ctx.ssh.grtzpvm5:22: mitogen: PushFileService().store_and_forward(u'/usr/lib/python2.6/site-packages/ansible/modules/files/copy.py', [blob: 15389 bytes], Context(4, u'ssh.grtzpvm5:22.sudo.root'))
[pid 23843] 16:00:47.230963 D mitogen.ctx.ssh.grtzpvm5:22.sudo.root: mitogen: PushFileService().store_and_forward(u'/usr/lib/python2.6/site-packages/ansible/modules/files/copy.py', [blob: 15389 bytes], Context(4, u'ssh.grtzpvm5:22.sudo.root'))
[pid 23843] 16:00:47.233184 D mitogen.ctx.ssh.grtzpvm5:22.sudo.root: mitogen: Importer(): master doesn't know 'ansible.module_utils.parsing.'
[pid 23843] 16:00:47.233970 D mitogen.ctx.ssh.grtzpvm5:22.sudo.root: mitogen: Importer(): master doesn't know 'ansible.module_utils.six.'
[pid 23862] 16:00:47.239725 D ansible_mitogen.connection: Call took 12 ms: run_module()
[pid 23862] 16:00:47.241289 D ansible_mitogen.mixins: _remove_tmp_path(u'$HOME/.ansible/tmp/ansible-mitogen-tmp-bgJLrI')
[pid 23862] 16:00:47.242103 D ansible_mitogen.mixins: _remove_tmp_path(u'$HOME/.ansible/tmp/ansible-mitogen-tmp-bgJLrI')
[pid 23862] 16:00:47.242535 D mitogen: Context(4, u'ssh.grtzpvm5:22.sudo.root').call_async(): shutil.rmtree(u'$HOME/.ansible/tmp/ansible-mitogen-tmp-bgJLrI')
[pid 23862] 16:00:47.246340 D ansible_mitogen.connection: Call took 3 ms: rmtree(u'$HOME/.ansible/tmp/ansible-mitogen-tmp-bgJLrI',)
failed: [grtzpvm5] (item={u'dest': u'/etc/nagios/send_nsca.cfg', u'src': u'send_nsca.j2'}) => {
"changed": false,
"checksum": "d2646143c26b0252f101e272036358bc1e4e4483",
"diff": [
{
"after": "# Ansible managed: /opt/ansible/roles/common/templates/send_nsca.j2 modified on 2016-01-20 17:54:45 by sigio on grtzman1\n\npassword=MUNGED\nencryption_method=XXX\n",
"after_header": "/home/sigio/.ansible/tmp/ansible-local-23826Mty1c4/tmpa3mWaZ/send_nsca.j2",
"before": "####################################################\n# Sample NSCA Client Config File \n# Written by: Ethan Galstad (nagios@nagios.org)\n# \n# Last Modified: 02-21-2002\nMUNGEDMUNGED\n\n",
"before_header": "/etc/nagios/send_nsca.cfg"
}
],
"invocation": {
"module_args": {
"attributes": null,
"backup": false,
"checksum": "d2646143c26b0252f101e272036358bc1e4e4483",
"content": null,
"delimiter": null,
"dest": "/etc/nagios/send_nsca.cfg",
"directory_mode": null,
"follow": false,
"force": true,
"group": "root",
"local_follow": null,
"mode": "0644",
"original_basename": "send_nsca.j2",
"owner": "root",
"regexp": null,
"remote_src": null,
"selevel": null,
"serole": null,
"setype": null,
"seuser": null,
"src": "/root/.ansible/tmp/ansible-mitogen-tmp-bgJLrI/source",
"unsafe_writes": null,
"validate": null
}
},
"item": {
"dest": "/etc/nagios/send_nsca.cfg",
"src": "send_nsca.j2"
}
}

MSG:

Source /root/.ansible/tmp/ansible-mitogen-tmp-bgJLrI/source not found

[pid 23843] 16:00:47.292975 D ansible_mitogen.services: ContextService().put(Context(4, u'ssh.grtzpvm5:22.sudo.root'))
[pid 23862] 16:00:47.295406 D ansible_mitogen.mixins: _make_tmp_path(remote_user=None)
[pid 23862] 16:00:47.296052 D ansible_mitogen.mixins: _remote_expand_user(u'$HOME/.ansible/tmp', sudoable=True)
[pid 23862] 16:00:47.303339 D mitogen: Context(4, u'ssh.grtzpvm5:22.sudo.root').call_async(): ansible_mitogen.target.make_temp_directory(base_dir=u'$HOME/.ansible/tmp')
[pid 23862] 16:00:47.309011 D ansible_mitogen.connection: Call took 12 ms: make_temp_directory()
[pid 23862] 16:00:47.309920 D ansible_mitogen.mixins: Temporary directory: u'$HOME/.ansible/tmp/ansible-mitogen-tmp-h72KeM'
[pid 23843] 16:00:47.361285 D ansible_mitogen.services: ContextService().put(Context(4, u'ssh.grtzpvm5:22.sudo.root'))
[pid 23862] 16:00:47.364404 D ansible_mitogen.mixins: _remote_expand_user(u'/etc/ssh/ssh_config', sudoable=True)
[pid 23862] 16:00:47.373242 D ansible_mitogen.planner: BinaryPlanner() rejected u'stat'
[pid 23862] 16:00:47.373883 D ansible_mitogen.planner: NewStylePlanner() accepted u'stat' (filename u'/usr/lib/python2.6/site-packages/ansible/modules/files/stat.py')
[pid 23843] 16:00:47.378909 D mitogen: PushFileService().propagate_to(Context(4, u'ssh.grtzpvm5:22.sudo.root'), u'/usr/lib/python2.6/site-packages/ansible/modules/files/stat.py')
[pid 23862] 16:00:47.388688 D mitogen: Context(4, u'ssh.grtzpvm5:22.sudo.root').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'service_context': Context(0, None), u'extra_env': None, u'env': {}, u'interpreter': None, u'path': u'/usr/lib/python2.6/site-packages/ansible/modules/files/stat.py', u'runner_name': u'NewStyleRunner', u'interpreter_arg': None, u'cwd': None, u'json_args': '{"_ansible_version": "2.5.5", "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": "/etc/ssh/ssh_config", "_ansible_tmpdir": "$HOME/.ansible/tmp/ansible-mitogen-tmp-h72KeM"}'})
[pid 23843] 16:00:47.390537 D mitogen.ctx.ssh.grtzpvm5:22: mitogen: PushFileService().store_and_forward(u'/usr/lib/python2.6/site-packages/ansible/modules/files/stat.py', [blob: 19647 bytes], Context(4, u'ssh.grtzpvm5:22.sudo.root'))
[pid 23843] 16:00:47.393464 D mitogen.ctx.ssh.grtzpvm5:22.sudo.root: mitogen: PushFileService().store_and_forward(u'/usr/lib/python2.6/site-packages/ansible/modules/files/stat.py', [blob: 19647 bytes], Context(4, u'ssh.grtzpvm5:22.sudo.root'))
[pid 23843] 16:00:47.401505 D mitogen.ctx.ssh.grtzpvm5:22.sudo.root: mitogen: Importer(): master doesn't know 'ansible.module_utils.parsing.'
[pid 23843] 16:00:47.402411 D mitogen.ctx.ssh.grtzpvm5:22.sudo.root: mitogen: Importer(): master doesn't know 'ansible.module_utils.six.'
[pid 23862] 16:00:47.418280 D ansible_mitogen.connection: Call took 29 ms: run_module()
[pid 23862] 16:00:47.423406 D ansible_mitogen.planner: BinaryPlanner() rejected u'file'
[pid 23862] 16:00:47.423957 D ansible_mitogen.planner: NewStylePlanner() accepted u'file' (filename u'/usr/lib/python2.6/site-packages/ansible/modules/files/file.py')
[pid 23843] 16:00:47.430415 D mitogen: PushFileService().propagate_to(Context(4, u'ssh.grtzpvm5:22.sudo.root'), u'/usr/lib/python2.6/site-packages/ansible/modules/files/file.py')
[pid 23862] 16:00:47.441715 D mitogen: Context(4, u'ssh.grtzpvm5:22.sudo.root').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'service_context': Context(0, None), u'extra_env': None, u'env': {}, u'interpreter': None, u'path': u'/usr/lib/python2.6/site-packages/ansible/modules/files/file.py', u'runner_name': u'NewStyleRunner', u'interpreter_arg': None, u'cwd': None, u'json_args': '{"_ansible_version": "2.5.5", "src": "ssh_config.j2", "_ansible_selinux_special_fs": ["fuse", "nfs", "vboxsf", "ramfs", "9p"], "group": "root", "_ansible_no_log": false, "dest": "/etc/ssh/ssh_config", "_ansible_module_name": "file", "_ansible_verbosity": 3, "_ansible_syslog_facility": "LOG_USER", "_ansible_socket": null, "owner": "root", "state": "file", "original_basename": "ssh_config.j2", "_ansible_diff": true, "mode": "0644", "_ansible_debug": false, "_ansible_shell_executable": "/bin/sh", "_ansible_check_mode": false, "_ansible_tmpdir": "$HOME/.ansible/tmp/ansible-mitogen-tmp-h72KeM", "follow": false}'})
[pid 23843] 16:00:47.442933 D mitogen.ctx.ssh.grtzpvm5:22: mitogen: PushFileService().store_and_forward(u'/usr/lib/python2.6/site-packages/ansible/modules/files/file.py', [blob: 20828 bytes], Context(4, u'ssh.grtzpvm5:22.sudo.root'))
[pid 23843] 16:00:47.444540 D mitogen.ctx.ssh.grtzpvm5:22.sudo.root: mitogen: PushFileService().store_and_forward(u'/usr/lib/python2.6/site-packages/ansible/modules/files/file.py', [blob: 20828 bytes], Context(4, u'ssh.grtzpvm5:22.sudo.root'))
[pid 23843] 16:00:47.487303 D mitogen.ctx.ssh.grtzpvm5:22.sudo.root: mitogen: Importer(): master doesn't know 'ansible.module_utils.parsing.'
[pid 23843] 16:00:47.488221 D mitogen.ctx.ssh.grtzpvm5:22.sudo.root: mitogen: Importer(): master doesn't know 'ansible.module_utils.six.'
[pid 23862] 16:00:47.492624 D ansible_mitogen.connection: Call took 50 ms: run_module()
[pid 23862] 16:00:47.496530 D ansible_mitogen.mixins: _remove_tmp_path(u'$HOME/.ansible/tmp/ansible-mitogen-tmp-h72KeM')
[pid 23862] 16:00:47.497774 D ansible_mitogen.mixins: _remove_tmp_path(u'$HOME/.ansible/tmp/ansible-mitogen-tmp-h72KeM')
[pid 23862] 16:00:47.498485 D mitogen: Context(4, u'ssh.grtzpvm5:22.sudo.root').call_async(): shutil.rmtree(u'$HOME/.ansible/tmp/ansible-mitogen-tmp-h72KeM')
[pid 23862] 16:00:47.503453 D ansible_mitogen.connection: Call took 5 ms: rmtree(u'$HOME/.ansible/tmp/ansible-mitogen-tmp-h72KeM',)
ok: [grtzpvm5] => (item={u'dest': u'/etc/ssh/ssh_config', u'src': u'ssh_config.j2'}) => {
"changed": false,
"checksum": "munged",
"dest": "/etc/ssh/ssh_config",
[snip]

@sigio sigio changed the title from ansible: copy module fails with file-not-found, works without mitogen to ansible: copy and template module fails with file-not-found, works without mitogen Jul 12, 2018

@sigio sigio changed the title from ansible: copy and template module fails with file-not-found, works without mitogen to ansible: copy and template module fails with 'source not found', works without mitogen Jul 12, 2018

@dw

This comment has been minimized.

Owner

dw commented Jul 12, 2018

Hi there,

Lines like this:

[pid 23862] 16:00:47.122213 D ansible_mitogen.connection: Call took 6 ms: write_path(u'$HOME/.ansible/tmp/ansible-mitogen-tmp-bgJLrI/source', [blob: 189 bytes])

Indicate possibly that remote_tmp includes an environment variable expansion -- that is AFAIK undocumented behaviour, but it is also something that Mitogen must preserve.

Second of all, if that is indeed the issue, there should be errors raised much earlier, but the write_path() call claims to succeed. That might be an entirely different issue.

Can you please return the output of:

ansible-config dump --only-changed

Run from your playbook directory (or wherever ansible.cfg is being picked up from). Thanks!

@dw

This comment has been minimized.

Owner

dw commented Jul 12, 2018

Hi!

This is to confirm '$HOME' in remote_tmp appears to be the issue. The SSH account of your target machines with have a literal '$HOME' directory in there. I need to investigate what the semantics here should be -- naturally supporting full shell syntax is bad, but so is only supporting "~".

The issue is exacerbated by Ansible seemingly expanding '$HOME' all by itself in the output. Not sure how that is happening yet.

@sigio

This comment has been minimized.

sigio commented Jul 12, 2018

Fixed by setting "remote_tmp = ~/.ansible/tmp" instead of $HOME/something in ansible.cfg

dw added a commit that referenced this issue Jul 22, 2018

issue #301: support expandvars() for remote_tmp only.
Vanilla Ansible support expandvars-like expansions widely in a variety
of places. Prefer to whitelist those we need, rather than sprinkling
hellish semantics everywhere.

dw added a commit that referenced this issue Jul 24, 2018

@dw

This comment has been minimized.

Owner

dw commented Jul 24, 2018

Sorry for the delay with this one, it's a pain in the ass :)

dw added a commit that referenced this issue Jul 24, 2018

issue #301: correct remote_tmp evaluation context.
Vanilla Ansible expands remote_tmp variables in the context of the login
account, not any become_user account.
@sigio

This comment has been minimized.

sigio commented Jul 24, 2018

No problem... I have a working workaround for now ;)

@zswanson

This comment has been minimized.

zswanson commented Jul 25, 2018

Just to dogpile here, I'm also seeing this exact error on RH7 with the first stable release of mitogen (0.2.1).
I didn't realize it was mitogen causing the problem until I found this ticket though. Oddly, I disabled mitogen in my ansible.cfg just as a precaution and the copy was still failing with the same message.

@dw

This comment has been minimized.

Owner

dw commented Jul 25, 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

@zswanson that's rather curious :) Are you sure ou didn't export MITOGEN_STRATEGY in your environment by accident?

Thanks for reporting this!

@dw dw closed this Jul 25, 2018

@zswanson

This comment has been minimized.

zswanson commented Jul 26, 2018

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