seemingly random Failed to parse JSON on setup

In different parts of ansible -m setup, I’ll get varying degrees of the “Failed to parse JSON” message, randomly at different parts, and sometimes not at all.

If I add “-f 1”, it appears to work properly.

I found the following link which seems to describe my issue:
https://github.com/ansible/ansible/issues/801

The JSON returned seems truncated randomly.

I am using the latest git development revision (95557da373fb6daf5f41e02310d03abea82e2d0a)

Any ideas?

Thanks,

ansible --version?

Some issues with this were addressed in 1.4.1

This is not the same ticket as 801 as that is hopelessly ancient.

We’d also like to see your playbook, I think, and the command line you were using.

BTW, any chance you are configuring the same host multiple times, like if you had localhost in inventory with different aliases?

(If you try to talk to the same remote host 50 times over SSH that can sometimes hit the SSH connection limit to the host, etc, and I’m not sure how you are testing things)

Version I’m using:
ansible 1.5 (devel 6d80c50faf) last updated 2013/12/02 12:50:12 (GMT -500)

Command that is sometimes not working:
ansible -i setup/hosts-prod all -m setup
or command that is working:
ansible -i setup/hosts-prod all -m setup -f 1

Here’s my inventory file:

myapp Production Ansible hosts

Can we see the playbook?

I’m not using a playbook for this to occur, just the setup command:

ansible -i setup/hosts-prod all -m setup

What is the full output from one of the failed hosts? I’d like to see the actual errors.

This sounds exactly like the issue I filed the other day: https://github.com/ansible/ansible/issues/5082

As the issue states this started happening with 1.4, and it does not happen with 1.3.4

-jlk

Here is the full output from the command with the SSH keys replaced with “REMOVED” and IPaddresses changed.

failed to parse json: {“verbose_override”: true, “changed”: false, “ansible_facts”: {“ohai_chef_packages”: {“chef”: {“chef_root”: “/var/lib/gems/1.8/gems/chef-11.6.0/lib”, “version”: “11.6.0”}, “ohai”: {“version”: “6.18.0”, “ohai_root”: “/var/lib/gems/1.8/gems/ohai-6.18.0/lib/ohai”}}, “ohai_lsb”: {“release”: “12.04”, “codename”: “precise”, “id”: “Ubuntu”, “description”: “Ubuntu 12.04.2 LTS”}, “ohai_cpu”: {“real”: 1, “1”: {“model”: “26”, “family”: “6”, “core_id”: “0”, “vendor_id”: “GenuineIntel”, “flags”: [“fpu”, “de”, “tsc”, “msr”, “pae”, “cx8”, “sep”, “cmov”, “pat”, “clflush”, “mmx”, “fxsr”, “sse”, “sse2”, “ss”, “ht”, “syscall”, “nx”, “lm”, “constant_tsc”, “rep_good”, “nopl”, “nonstop_tsc”, “pni”, “ssse3”, “cx16”, “sse4_1”, “sse4_2”, “popcnt”, “hypervisor”, “lahf_lm”], “mhz”: “2666.760”, “stepping”: “5”, “cache_size”: “8192 KB”, “cores”: “1”, “physical_id”: “0”, “model_name”: “Intel(R) Xeon(R) CPU X5550 @ 2.67GHz”}, “0”: {“model”: “26”, “family”: “6”, “core_id”: “0”, “vendor_id”: “GenuineIntel”, “flags”: [“fpu”, “de”, “tsc”, “msr”, “pae”, “cx8”, “sep”, “cmov”, “pat”, “clflush”, “mmx”, “fxsr”, “sse”, “sse2”, “ss”, “ht”, “syscall”, “nx”, “lm”, “constant_tsc”, “rep_good”, “nopl”, “nonstop_tsc”, “pni”, “ssse3”, “cx16”, “sse4_1”, “sse4_2”, “popcnt”, “hypervisor”, “lahf_lm”], “mhz”: “2666.760”, “stepping”: “5”, “cache_size”: “8192 KB”, “cores”: “1”, “physical_id”: “0”, “model_name”: “Intel(R) Xeon(R) CPU X5550 @ 2.67GHz”}, “3”: {“model”: “26”, “family”: “6”, “core_id”: “0”, “vendor_id”: “GenuineIntel”, “flags”: [“fpu”, “de”, “tsc”, “msr”, “pae”, “cx8”, “sep”, “cmov”, “pat”, “clflush”, “mmx”, “fxsr”, “sse”, “sse2”, “ss”, “ht”, “syscall”, “nx”, “lm”, “constant_tsc”, “rep_good”, “nopl”, “nonstop_tsc”, “pni”, “ssse3”, “cx16”, “sse4_1”, “sse4_2”, “popcnt”, “hypervisor”, “lahf_lm”], “mhz”: “2666.760”, “stepping”: “5”, “cache_size”: “8192 KB”, “cores”: “1”, “physical_id”: “0”, “model_name”: “Intel(R) Xeon(R) CPU X5550 @ 2.67GHz”}, “2”: {“model”: “26”, “family”: “6”, “core_id”: “0”, “vendor_id”: “GenuineIntel”, “flags”: [“fpu”, “de”, “tsc”, “msr”, “pae”, “cx8”, “sep”, “cmov”, “pat”, “clflush”, “mmx”, “fxsr”, “sse”, “sse2”, “ss”, “ht”, “syscall”, “nx”, “lm”, “constant_tsc”, “rep_good”, “nopl”, “nonstop_tsc”, “pni”, “ssse3”, “cx16”, “sse4_1”, “sse4_2”, “popcnt”, “hypervisor”, “lahf_lm”], “mhz”: “2666.760”, “stepping”: “5”, “cache_size”: “8192 KB”, “cores”: “1”, “physical_id”: “0”, “model_name”: “Intel(R) Xeon(R) CPU X5550 @ 2.67GHz”}, “total”: 4}, “ohai_ipaddress”: “10.10.10.71”, “ansible_form_factor”: “NA”, “ohai_root_group”: “root”, “ansible_product_version”: “NA”, “ansible_swaptotal_mb”: 34236, “ansible_user_id”: “myapp”, “ohai_macaddress”: “0E:A2:CD:3F:CE:7A”, “ansible_userspace_bits”: “64”, “ansible_architecture”: “x86_64”, “ohai_block_device”: {“ram14”: {“removable”: “0”, “size”: “131072”}, “ram15”: {“removable”: “0”, “size”: “131072”}, “ram12”: {“removable”: “0”, “size”: “131072”}, “ram13”: {“removable”: “0”, “size”: “131072”}, “ram10”: {“removable”: “0”, “size”: “131072”}, “ram11”: {“removable”: “0”, “size”: “131072”}, “xvdf”: {“removable”: “0”, “size”: “419430400”}, “xvdg”: {“removable”: “0”, “size”: “419430400”}, “xvdb”: {“removable”: “0”, “size”: “1761475584”}, “ram8”: {“removable”: “0”, “size”: “131072”}, “ram9”: {“removable”: “0”, “size”: “131072”}, “ram4”: {“removable”: “0”, “size”: “131072”}, “ram5”: {“removable”: “0”, “size”: “131072”}, “ram6”: {“removable”: “0”, “size”: “131072”}, “ram7”: {“removable”: “0”, “size”: “131072”}, “ram0”: {“removable”: “0”, “size”: “131072”}, “ram1”: {“removable”: “0”, “size”: “131072”}, “ram2”: {“removable”: “0”, “size”: “131072”}, “ram3”: {“removable”: “0”, “size”: “131072”}, “loop3”: {“removable”: “0”, “size”: “0”}, “loop2”: {“removable”: “0”, “size”: “0”}, “loop1”: {“removable”: “0”, “size”: “0”}, “loop0”: {“removable”: “0”, “size”: “0”}, “loop7”: {“removable”: “0”, “size”: “0”}, “loop6”: {“removable”: “0”, “size”: “0”}, “loop5”: {“removable”: “0”, “size”: “0”}, “loop4”: {“removable”: “0”, “size”: “0”}, “xvda1”: {“removable”: “0”, “size”: “16777216”}}, “ansible_distribution_version”: “12.04”, “ansible_domain”: “prodauth2.mydomain.com”, “ansible_virtualization_type”: “xen”, “ansible_fqdn”: “host.mydomain.com”, “ansible_product_serial”: “NA”, “ansible_virtualization_role”: “guest”, “ohai_hostname”: “i-0eae6d70”, “ansible_env”: {“LANG”: “C”, “TERM”: “xterm”, “SHELL”: “/bin/bash”, “MAIL”: “/var/mail/myapp”, “SHLVL”: “1”, “SSH_TTY”: “/dev/pts/0”, “SSH_CLIENT”: “10.10.10.169 54535 22”, “PWD”: “/home/myapp”, “LOGNAME”: “myapp”, “USER”: “myapp”, “HOME”: “/home/myapp”, “PATH”: “/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games”, “JAVA_HOME”: “/usr/lib/jvm/default-java”, “_”: “/bin/sh”, “SSH_CONNECTION”: “10.10.10.169 54535 10.10.10.71 22”}, “ansible_processor_vcpus”: 4, “ohai_virtualization”: {“role”: “guest”, “system”: “xen”}, “ansible_bios_version”: “NA”, “ohai_etc”: {“passwd”: {“sync”: {“shell”: “/bin/sync”, “gid”: 65534, “gecos”: “sync”, “uid”: 4, “dir”: “/bin”}, “syslog”: {“shell”: “/bin/false”, “gid”: 103, “gecos”: “”, “uid”: 101, “dir”: “/home/syslog”}, “gnats”: {“shell”: “/bin/sh”, “gid”: 41, “gecos”: “Gnats Bug-Reporting System (admin)”, “uid”: 41, “dir”: “/var/lib/gnats”}, “myapp”: {“shell”: “/bin/bash”, “gid”: 1001, “gecos”: “Auto-created myapp service account”, “uid”: 1001, “dir”: “/home/myapp”}, “logcheck”: {“shell”: “/bin/false”, “gid”: 116, “gecos”: “logcheck system account,”, “uid”: 108, “dir”: “/var/lib/logcheck”}, “uucp”: {“shell”: “/bin/sh”, “gid”: 10, “gecos”: “uucp”, “uid”: 10, “dir”: “/var/spool/uucp”}, “landscape”: {“shell”: “/bin/false”, “gid”: 109, “gecos”: “”, “uid”: 104, “dir”: “/var/lib/landscape”}, “lp”: {“shell”: “/bin/sh”, “gid”: 7, “gecos”: “lp”, “uid”: 7, “dir”: “/var/spool/lpd”}, “mail”: {“shell”: “/bin/sh”, “gid”: 8, “gecos”: “mail”, “uid”: 8, “dir”: “/var/mail”}, “ganglia”: {“shell”: “/bin/false”, “gid”: 999, “gecos”: “Ganglia Monitor”, “uid”: 999, “dir”: “/var/lib/ganglia”}, “irc”: {“shell”: “/bin/sh”, “gid”: 39, “gecos”: “ircd”, “uid”: 39, “dir”: “/var/run/ircd”}, “bin”: {“shell”: “/bin/sh”, “gid”: 2, “gecos”: “bin”, “uid”: 2, “dir”: “/bin”}, “messagebus”: {“shell”: “/bin/false”, “gid”: 105, “gecos”: “”, “uid”: 102, “dir”: “/var/run/dbus”}, “ntp”: {“shell”: “/bin/false”, “gid”: 115, “gecos”: “”, “uid”: 107, “dir”: “/home/ntp”}, “whoopsie”: {“shell”: “/bin/false”, “gid”: 106, “gecos”: “”, “uid”: 103, “dir”: “/nonexistent”}, “nobody”: {“shell”: “/bin/sh”, “gid”: 65534, “gecos”: “nobody”, “uid”: 65534, “dir”: “/nonexistent”}, “sshd”: {“shell”: “/usr/sbin/nologin”, “gid”: 65534, “gecos”: “”, “uid”: 105, “dir”: “/var/run/sshd”}, “sys”: {“shell”: “/bin/sh”, “gid”: 3, “gecos”: “sys”, “uid”: 3, “dir”: “/dev”}, “proxy”: {“shell”: “/bin/sh”, “gid”: 13, “gecos”: “proxy”, “uid”: 13, “dir”: “/bin”}, “ubuntu”: {“shell”: “/bin/bash”, “gid”: 1000, “gecos”: “Ubuntu”, “uid”: 1000, “dir”: “/home/ubuntu”}, “news”: {“shell”: “/bin/sh”, “gid”: 9, “gecos”: “news”, “uid”: 9, “dir”: “/var/spool/news”}, “man”: {“shell”: “/bin/sh”, “gid”: 12, “gecos”: “man”, “uid”: 6, “dir”: “/var/cache/man”}, “daemon”: {“shell”: “/bin/sh”, “gid”: 1, “gecos”: “daemon”, “uid”: 1, “dir”: “/usr/sbin”}, “postfix”: {“shell”: “/bin/false”, “gid”: 113, “gecos”: “”, “uid”: 106, “dir”: “/var/spool/postfix”}, “root”: {“shell”: “/bin/bash”, “gid”: 0, “gecos”: “root”, “uid”: 0, “dir”: “/root”}, “libuuid”: {“shell”: “/bin/sh”, “gid”: 101, “gecos”: “”, “uid”: 100, “dir”: “/var/lib/libuuid”}, “list”: {“shell”: “/bin/sh”, “gid”: 38, “gecos”: “Mailing List Manager”, “uid”: 38, “dir”: “/var/list”}, “games”: {“shell”: “/bin/sh”, “gid”: 60, “gecos”: “games”, “uid”: 5, “dir”: “/usr/games”}, “www-data”: {“shell”: “/bin/sh”, “gid”: 33, “gecos”: “www-data”, “uid”: 33, “dir”: “/var/www”}, “backup”: {“shell”: “/bin/sh”, “gid”: 34, “gecos”: “backup”, “uid”: 34, “dir”: “/var/backups”}}, “group”: {“tty”: {“gid”: 5, “members”: }, “plugdev”: {“gid”: 46, “members”: [“ubuntu”]}, “sudo”: {“gid”: 27, “members”: }, “mlocate”: {“gid”: 107, “members”: }, “crontab”: {“gid”: 102, “members”: }, “adm”: {“gid”: 4, “members”: [“ubuntu”, “logcheck”]}, “syslog”: {“gid”: 103, “members”: }, “video”: {“gid”: 44, “members”: [“ubuntu”]}, “operator”: {“gid”: 37, “members”: }, “root”: {“gid”: 0, “members”: }, “myapp”: {“gid”: 1001, “members”: }, “disk”: {“gid”: 6, “members”: }, “gnats”: {“gid”: 41, “members”: }, “logcheck”: {“gid”: 116, “members”: }, “staff”: {“gid”: 50, “members”: }, “uucp”: {“gid”: 10, “members”: }, “admin”: {“gid”: 111, “members”: [“ubuntu”]}, “utmp”: {“gid”: 43, “members”: }, “tape”: {“gid”: 26, “members”: }, “landscape”: {“gid”: 109, “members”: }, “lp”: {“gid”: 7, “members”: }, “dialout”: {“gid”: 20, “members”: [“ubuntu”]}, “mail”: {“gid”: 8, “members”: }, “ganglia”: {“gid”: 999, “members”: }, “irc”: {“gid”: 39, “members”: }, “whoopsie”: {“gid”: 106, “members”: }, “bin”: {“gid”: 2, “members”: }, “fax”: {“gid”: 21, “members”: }, “users”: {“gid”: 100, “members”: }, “messagebus”: {“gid”: 105, “members”: }, “floppy”: {“gid”: 25, “members”: [“ubuntu”]}, “ntp”: {“gid”: 115, “members”: }, “kmem”: {“gid”: 15, “members”: }, “sys”: {“gid”: 3, “members”: }, “fuse”: {“gid”: 104, “members”: }, “proxy”: {“gid”: 13, “members”: }, “ubuntu”: {“gid”: 1000, “members”: }, “cdrom”: {“gid”: 24, “members”: [“ubuntu”]}, “news”: {“gid”: 9, “members”: }, “shadow”: {“gid”: 42, “members”: }, “postdrop”: {“gid”: 114, “members”: }, “man”: {“gid”: 12, “members”: }, “src”: {“gid”: 40, “members”: }, “daemon”: {“gid”: 1, “members”: }, “audio”: {“gid”: 29, “members”: [“ubuntu”]}, “nogroup”: {“gid”: 65534, “members”: }, “postfix”: {“gid”: 113, “members”: }, “backup”: {“gid”: 34, “members”: }, “libuuid”: {“gid”: 101, “members”: }, “list”: {“gid”: 38, “members”: }, “netdev”: {“gid”: 110, “members”: [“ubuntu”]}, “games”: {“gid”: 60, “members”: }, “www-data”: {“gid”: 33, “members”: }, “sasl”: {“gid”: 45, “members”: }, “voice”: {“gid”: 22, “members”: }, “dip”: {“gid”: 30, “members”: [“ubuntu”]}, “ssl-cert”: {“gid”: 112, “members”: }, “ssh”: {“gid”: 108, “members”: }}}, “ansible_date_time”: {“tz”: “UTC”, “hour”: “21”, “time”: “21:55:23”, “epoch”: “1386021323”, “month”: “12”, “tz_offset”: “+0000”, “second”: “23”, “iso8601_micro”: “2013-12-02T21:55:23.439470Z”, “year”: “2013”, “date”: “2013-12-02”, “iso8601”: “2013-12-02T21:55:23Z”, “day”: “02”, “minute”: “55”}, “ansible_lo”: {“ipv4_secondaries”: , “mtu”: 16436, “active”: true, “promisc”: false, “ipv4”: {“netmask”: “255.0.0.0”, “network”: “127.0.0.0”, “address”: “127.0.0.1”}, “ipv6”: [{“scope”: “host”, “prefix”: “128”, “address”: “::1”}], “device”: “lo”, “type”: “loopback”}, “ohai_network”: {“interfaces”: {“lo”: {“encapsulation”: “Loopback”, “state”: “unknown”, “flags”: [“LOOPBACK”, “UP”, “LOWER_UP”], “addresses”: {“::1”: {“prefixlen”: “128”, “scope”: “Node”, “family”: “inet6”}, “127.0.0.1”: {“prefixlen”: “8”, “scope”: “Node”, “netmask”: “255.0.0.0”, “family”: “inet”}}, “mtu”: “16436”}, “eth0”: {“arp”: {“10.10.10.1”: “0e:a2:cd:00:00:02”, “10.10.10.185”: “0e:a2:cd:32:4a:fa”, “10.10.10.98”: “0e:a2:cd:07:35:a0”, “10.10.10.209”: “0e:a2:cd:1c:81:59”, “10.10.10.251”: “0e:a2:cd:15:27:bc”, “10.10.10.82”: “0e:a2:cd:28:52:20”, “10.10.10.97”: “0e:a2:cd:0e:a4:df”}, “addresses”: {“10.10.10.71”: {“broadcast”: “10.10.10.255”, “scope”: “Global”, “netmask”: “255.255.255.0”, “prefixlen”: “24”, “family”: “inet”}, “fe80::ca2:cdff:fe3f:ce7a”: {“prefixlen”: “64”, “scope”: “Link”, “family”: “inet6”}, “0E:A2:CD:3F:CE:7A”: {“family”: “lladdr”}}, “number”: “0”, “mtu”: “1500”, “state”: “up”, “flags”: [“BROADCAST”, “MULTICAST”, “UP”, “LOWER_UP”], “routes”: [{“via”: “10.10.10.1”, “metric”: “100”, “destination”: “default”, “family”: “inet”}, {“src”: “10.10.10.71”, “destination”: “10.10.10.0/24”, “scope”: “link”, “family”: “inet”, “proto”: “kernel”}, {“metric”: “256”, “destination”: “fe80::/64”, “family”: “inet6”, “proto”: “kernel”}], “encapsulation”: “Ethernet”, “type”: “eth”}}, “default_interface”: “eth0”, “default_gateway”: “10.10.10.1”}, “ansible_memtotal_mb”: 34236, “ansible_ssh_host_key_ecdsa_public”: “REMOVED=”, “ansible_lsb”: {“release”: “12.04”, “major_release”: “12”, “codename”: “precise”, “id”: “Ubuntu”, “description”: “Ubuntu 12.04.2 LTS”}, “ansible_default_ipv4”: {“macaddress”: “0e:a2:cd:3f:ce:7a”, “network”: “10.10.10.0”, “mtu”: 1500, “alias”: “eth0”, “netmask”: “255.255.255.0”, “address”: “10.10.10.71”, “interface”: “eth0”, “type”: “ether”, “gateway”: “10.10.10.1”}, “ansible_swapfree_mb”: 34231, “ansible_default_ipv6”: {}, “ansible_distribution_release”: “precise”, “ansible_system_vendor”: “NA”, “ansible_os_family”: “Debian”, “ansible_cmdline”: {“console”: “hvc0”, “ro”: true, “root”: “LABEL=cloudimg-rootfs”}, “ansible_mounts”: [{“size_total”: 8563015680, “mount”: “/”, “size_available”: 5544919040, “fstype”: “ext4”, “device”: “/dev/xvda1”, “options”: “rw”}, {“size_total”: 887723384832, “mount”: “/mnt”, “size_available”: 805409431552, “fstype”: “ext3”, “device”: “/dev/xvdb”, “options”: “rw”}, {“size_total”: 214488244224, “mount”: “/opt”, “size_available”: 39826911232, “fstype”: “ext4”, “device”: “/dev/xvdf”, “options”: “rw”}], “ansible_processor_cores”: 1, “ansible_selinux”: false, “ohai_fqdn”: “host.mydomain.com”, “ansible_userspace_architecture”: “x86_64”, “ansible_bios_date”: “NA”, “ansible_product_uuid”: “NA”, “ansible_kernel”: “3.2.0-23-virtual”, “ohai_ohai_time”: 1386021323.88637, “ansible_pkg_mgr”: “apt”, “ansible_memfree_mb”: 18933, “ansible_system”: “Linux”, “ansible_devices”: {“xvdf”: {“scheduler_mode”: “deadline”, “rotational”: “0”, “vendor”: null, “sectors”: “419430400”, “host”: “”, “sectorsize”: “512”, “removable”: “0”, “support_discard”: “0”, “model”: null, “size”: “200.00 GB”, “holders”: , “partitions”: {}}, “xvdg”: {“scheduler_mode”: “deadline”, “rotational”: “0”, “vendor”: null, “sectors”: “419430400”, “host”: “”, “sectorsize”: “512”, “removable”: “0”, “support_discard”: “0”, “model”: null, “size”: “200.00 GB”, “holders”: , “partitions”: {}}, “xvdb”: {“scheduler_mode”: “deadline”, “rotational”: “0”, “vendor”: null, “sectors”: “1761475584”, “host”: “”, “sectorsize”: “512”, “removable”: “0”, “support_discard”: “0”, “model”: null, “size”: “839.94 GB”, “holders”: , “partitions”: {}}, “xvda1”: {“scheduler_mode”: “deadline”, “rotational”: “0”, “vendor”: null, “sectors”: “16777216”, “host”: “”, “sectorsize”: “512”, “removable”: “0”, “support_discard”: “0”, “model”: null, “size”: “8.00 GB”, “holders”: , “partitions”: {}}}, “ohai_languages”: {“python”: {“version”: “2.7.3”, “builddate”: “Apr 10 2013, 06:20:15”}, “ruby”: {“gems_dir”: “/var/lib/gems/1.8”, “bin_dir”: “/usr/bin”, “target”: “x86_64-pc-linux-gnu”, “target_cpu”: “x86_64”, “gem_bin”: “/usr/bin/gem1.8”, “release_date”: “2011-06-30”, “host”: “x86_64-pc-linux-gnu”, “platform”: “x86_64-linux”, “ruby_bin”: “/usr/bin/ruby1.8”, “version”: “1.8.7”, “target_vendor”: “pc”, “host_cpu”: “x86_64”, “host_vendor”: “pc”, “host_os”: “linux-gnu”, “target_os”: “linux”}, “java”: {“runtime”: {“build”: “1.6.0_30-b12”, “name”: “Java™ SE Runtime Environment”}, “version”: “1.6.0_30”, “hotspot”: {“build”: “20.5-b03, mixed mode”, “name”: “Java HotSpot™ 64-Bit Server VM”}}, “perl”: {“archname”: “x86_64-linux-gnu-thread-multi”, “version”: “5.14.2”}}, “ohai_platform_version”: “12.04”, “ohai_domain”: “host.mydomain.com”, “ansible_distribution”: “Ubuntu”, “ohai_kernel”: {“name”: “Linux”, “modules”: {“acpiphp”: {“refcount”: “0”, “size”: “24231”}, “isofs”: {“refcount”: “0”, “size”: “40257”}}, “machine”: “x86_64”, “version”: “#36-Ubuntu SMP Tue Apr 10 22:29:03 UTC 2012”, “release”: “3.2.0-23-virtual”, “os”: “GNU/Linux”}, “ohai_keys”: {“ssh”: {“host_rsa_public”: “REMOVED==”, “host_ecdsa_public”: “REMOVED=”, “host_ecdsa_type”: “ecdsa-sha2-nistp256”}}, “ansible_ssh_host_key_dsa_public”: “REMOVED=”, “ansible_eth0”: {“macaddress”: “0e:a2:cd:3f:ce:7a”, “ipv4_secondaries”: , “mtu”: 1500, “active”: true, “promisc”: false, “ipv4”: {“netmask”: “255.255.255.0”, “network”: “10.10.10.0”, “address”: “10.10.10.71”}, “ipv6”: [{“scope”: “link”, “prefix”: “64”, “address”: “fe80::ca2:cdff:fe3f:ce7a”}], “device”: “eth0”, “type”: “ether”}, “ansible_processor_count”: 1, “ohai_dmi”: {“dmidecode_version”: “2.11”}, “ansible_hostname”: “i-0eae6d70”, “ohai_uptime_seconds”: 20224352, “ohai_command”: {“ps”: “ps -ef”}, “ohai_os_version”: “3.2.0-23-virtual”, “ohai_ip6address”: “fe80::ca2:cdff:fe3f:ce7a”, “ansible_all_ipv6_addresses”: [“fe80::ca2:cdff:fe3f:ce7a”], “ansible_interfaces”: [“lo”, “eth0”], “ohai_platform_family”: “debian”, “ohai_counters”: {“network”: {“interfaces”: {“lo”: {“rx”: {“packets”: “26456806”, “drop”: “0”, “errors”: “0”, “bytes”: “47688238230”, “overrun”: “0”}, “tx”: {“errors”: “0”, “bytes”: “47688238230”, “drop”: “0”, “packets”: “26456806”, “collisions”: “0”, “carrier”: “0”}}, “eth0”: {“rx”: {“packets”: “873365963”, “drop”: “0”, “errors”: “0”, “bytes”: “802767702614”, “overrun”: “0”}, “tx”: {“errors”: “0”, “bytes”: “809236223996”, “drop”: “0”, “packets”: “573010427”, “collisions”: “0”, “queuelen”: “1000”, “carrier”: “0”}}}}}, “ansible_ssh_host_key_rsa_public”: “REMOVED”, “ohai_filesystem”: {“s3fs”: {“kb_available”: “274877906944”, “mount”: “/myapp-repo”, “fs_type”: “fuse.s3fs”, “mount_options”: [“rw”, “nosuid”, “nodev”], “kb_used”: “0”, “kb_size”: “274877906944”, “percent_used”: “0%”}, “none”: {“kb_available”: “17529124”, “mount”: “/run/shm”, “fs_type”: “tmpfs”, “mount_options”: [“rw”, “nosuid”, “nodev”], “kb_used”: “0”, “kb_size”: “17529124”, “percent_used”: “0%”}, “devpts”: {“mount”: “/dev/pts”, “fs_type”: “devpts”, “mount_options”: [“rw”, “noexec”, “nosuid”, “gid=5”, “mode=0620”]}, “/dev/disk/by-label/cloudimg-rootfs”: {“mount”: “/”, “fs_type”: “ext4”, “mount_options”: [“rw”, “relatime”, “user_xattr”, “acl”, “barrier=1”, “data=ordered”]}, “sysfs”: {“mount”: “/sys”, “fs_type”: “sysfs”, “mount_options”: [“rw”, “noexec”, “nosuid”, “nodev”]}, “udev”: {“kb_available”: “17520856”, “mount”: “/dev”, “fs_type”: “devtmpfs”, “mount_options”: [“rw”, “mode=0755”], “kb_used”: “12”, “kb_size”: “17520868”, “percent_used”: “1%”}, “/dev/xvdb”: {“uuid”: “b0139a17-d827-4060-96d6-29a7b59352f9”, “kb_available”: “786532648”, “mount”: “/mnt”, “fs_type”: “ext3”, “percent_used”: “5%”, “kb_used”: “36347832”, “kb_size”: “866917368”, “mount_options”: [“rw”]}, “/dev/xvda1”: {“uuid”: “3ad27d04-4ecf-493d-bb19-4710c3caf924”, “kb_available”: “5414960”, “mount”: “/”, “label”: “cloudimg-rootfs”, “fs_type”: “ext4”, “percent_used”: “32%”, “kb_used”: “2527932”, “kb_size”: “8362320”, “mount_options”: [“rw”]}, “/dev/xvdf”: {“uuid”: “0420e22c-1e81-4acb-bad3-73626177c286”, “kb_available”: “38893468”, “mount”: “/opt”, “fs_type”: “ext4”, “percent_used”: “81%”, “kb_used”: “160081948”, “kb_size”: “209461176”, “mount_options”: [“rw”]}, “/dev/xvdg”: {“fs_type”: “ext4”, “uuid”: “0420e22c-1e81-4acb-bad3-73626177c286”}, “tmpfs”: {“kb_available”: “7011460”, “mount”: “/run”, “fs_type”: “tmpfs”, “mount_options”: [“rw”, “noexec”, “nosuid”, “size=10%”, “mode=0755”], “kb_used”: “192”, “kb_size”: “7011652”, "percent_used

prodauth2.mydomain.com | FAILED => Traceback (most recent call last):
File “/home/e9000718/ansible/lib/ansible/runner/init.py”, line 394, in _executor
exec_rc = self._executor_internal(host, new_stdin)
File “/home/e9000718/ansible/lib/ansible/runner/init.py”, line 485, in _executor_internal
return self._executor_internal_inner(host, self.module_name, self.module_args, inject, port, complex_args=complex_args)
File “/home/e9000718/ansible/lib/ansible/runner/init.py”, line 685, in _executor_internal_inner
result = handler.run(conn, tmp, module_name, module_args, inject, complex_args)
File “/home/e9000718/ansible/lib/ansible/runner/action_plugins/normal.py”, line 54, in run
return self.runner._execute_module(conn, tmp, module_name, module_args, inject=inject, complex_args=complex_args)
File “/home/e9000718/ansible/lib/ansible/runner/init.py”, line 369, in _execute_module
data = utils.parse_json(res[‘stdout’])
File “/home/e9000718/ansible/lib/ansible/utils/init.py”, line 306, in parse_json
tokens = shlex.split(data)
File “/usr/lib/python2.7/shlex.py”, line 279, in split
return list(lex)
File “/usr/lib/python2.7/shlex.py”, line 269, in next
token = self.get_token()
File “/usr/lib/python2.7/shlex.py”, line 96, in get_token
raw = self.read_token()
File “/usr/lib/python2.7/shlex.py”, line 172, in read_token
raise ValueError, “No closing quotation”
ValueError: No closing quotation

Yes, this appears to be the same issue from the outside looks of things.

We are digging into this, stay tuned!

– Michael

Just to follow up on this thread for any future searchers… this appears to be resolved for me, now, with the following:

https://github.com/ansible/ansible/issues/5082

Thanks,

Glad to hear that!

BTW, our plans are to release this as a 1.4.2 with our special Ansible-users Christmas present, approximately Wednesday of next week.

Extra testing is welcome!