Your message dated Fri, 15 Apr 2016 19:49:22 -0400
with message-id <[email protected]>
and subject line
has caused the Debian Bug report #792793,
regarding ansible: fact cache borken after timeout during collection
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
792793: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=792793
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: ansible
Version: 1.9.2+dfsg-1
Severity: minor
Coin,
I faced a timeout on a (slow) host:
Daneel | FAILED >> {
"cmd": "/bin/lsblk -ln --output UUID
/dev/mapper/Daneel_xtra-backup",
"failed": true,
"msg": "Traceback (most recent call last):\n File
\"/root/.ansible/tmp/ansible-tmp-1437234237.91-43519604009961/setup\",
line 1677, in run_command\n rfd, wfd, efd = select.select(rpipes, [],
rpipes, 1)\n File
\"/root/.ansible/tmp/ansible-tmp-1437234237.91-43519604009961/setup\",
line 1807, in _handle_timeout\n raise
TimeoutError(error_message)\nTimeoutError: Timer expired\n",
"rc": 257
}
Since this, playing playbooks failed on that host when conditionals
where used.
After some digging it appeared the fact cache for this host (using
jsonfile) only contained the following line:
{"module_setup": true}
So Ansible must not write in cache if any error occurred during fact
collection.
As it is easy to work around and the cache will expire anyway, I
downgraded the severity.
Regards.
-- System Information:
Debian Release: 8.1
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: i386 (i686)
Kernel: Linux 3.16.0-4-686-pae (SMP w/1 CPU core)
Locale: LANG=C, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages ansible depends on:
ii python 2.7.9-1
ii python-crypto 2.6.1-5+b2
ii python-httplib2 0.9+dfsg-2
ii python-jinja2 2.7.3-1
ii python-netaddr 0.7.12-2
ii python-paramiko 1.15.1-1
ii python-pkg-resources 5.5.1-1
ii python-yaml 3.11-2
pn python:any <none>
Versions of packages ansible recommends:
pn python-selinux <none>
Versions of packages ansible recommends:
pn python-selinux <none>
Versions of packages ansible suggests:
pn ansible-doc <none>
pn sshpass <none>
-- Configuration Files:
/etc/ansible/ansible.cfg changed [not included]
/etc/ansible/hosts changed [not included]
--
Marc Dequènes
--- End Message ---
--- Begin Message ---
The fixes are in unstable and testing right now.
Sincerely,
--
Harlan Lieberman-Berg
~hlieberman
--- End Message ---