On Thursday, 8 May 2014 22:50:26 UTC+2, Adam Morris wrote:
Actually, this looks like a bug that occurred with script and raw in some
> earlier versions of Ansible where the sudo success string was being leaked
> back. It was fixed, I'm now wondering if it was reverted in this case...
>
> Can you upgrade to 1.6.1 and try it again?
>
Hi Adam, it still fails:
$ ansible --version
ansible 1.6.1
$ ansible bastion3.hadoop.ripe.net -sK -m service -a 'name=hdfs-sync
state=restarted'
sudo password:
bastion3.hadoop.ripe.net | FAILED => failed to parse:
SUDO-SUCCESS-dawyrikofupcjoyftolafyddywphopwj
Traceback (most recent call last):
File "/tmp/ansible-tmp-1399582444.03-10583586416099/service", line 2411, in
<module>
main()
File "/tmp/ansible-tmp-1399582444.03-10583586416099/service", line 1198, in
main
service.get_service_status()
File "/tmp/ansible-tmp-1399582444.03-10583586416099/service", line 509, in
get_service_status
rc, status_stdout, status_stderr = self.service_control()
File "/tmp/ansible-tmp-1399582444.03-10583586416099/service", line 750, in
service_control
rc_state, stdout, stderr = self.execute_command("%s %s %s" % (self.action,
self.name, arguments), daemonize=True)
File "/tmp/ansible-tmp-1399582444.03-10583586416099/service", line 250, in
execute_command
return json.loads(data)
File "/usr/lib64/python2.6/json/__init__.py", line 307, in loads
return _default_decoder.decode(s)
File "/usr/lib64/python2.6/json/decoder.py", line 319, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib64/python2.6/json/decoder.py", line 338, in raw_decode
raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/5bf2ed78-f37b-49da-8665-f23933d1e252%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.