[prev in list] [next in list] [prev in thread] [next in thread] 

List:       opensuse-factory
Subject:    [opensuse-factory] Frequent and random Ansible failures on the latest snapshot
From:       Howard Guo <hguo () suse ! com>
Date:       2016-02-27 12:20:45
Message-ID: 20160227122054.AF01C10E8B () lists5 ! opensuse ! org
[Download RAW message or body]

Hello fellow Tumbleweed users.

Certain changes in the latest Tumbleweed snapshot may have prevented Ansible from \
working properly, I have a long Ansible playbook that used to work like hot knife \
through butter, but now it frequently and randomly fails on "copy" tasks with error \
message "returned empty string".

While I'll investigate and see what might have been the cause, but has any Ansible \
expert already spotted the issue?

Here's the Ansible output:
===============
<localhost> ESTABLISH SSH CONNECTION FOR USER: root
<localhost> SSH: EXEC ssh -C -vvv -o ControlMaster=auto -o ControlPersist=60s -o \
KbdInteractiveAuthentication=no -o \
PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o \
PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o \
ControlPath=/home/howard/.ansible/cp/ansible-ssh-%h-%p-%r -tt localhost 'rc=flag; [ \
-r /etc/sysconfig/slapd ] || rc=2; [ -f /etc/sysconfig/slapd ] || rc=1; [ -d \
/etc/sysconfig/slapd ] && rc=3; python -V 2>/dev/null || rc=4; [ x"$rc" != "xflag" ] \
&& echo "${rc}  "/etc/sysconfig/slapd && exit 0; (python -c '"'"'import hashlib; \
BLOCKSIZE = 65536; hasher = hashlib.sha1(); afile = \
open("'"'"'/etc/sysconfig/slapd'"'"'", "rb") buf = afile.read(BLOCKSIZE)
while len(buf) > 0:
	hasher.update(buf)
	buf = afile.read(BLOCKSIZE)
afile.close()
print(hasher.hexdigest())'"'"' 2>/dev/null) || (python -c '"'"'import sha; BLOCKSIZE \
= 65536; hasher = sha.sha(); afile = open("'"'"'/etc/sysconfig/slapd'"'"'", "rb")
buf = afile.read(BLOCKSIZE)
while len(buf) > 0:
	hasher.update(buf)
	buf = afile.read(BLOCKSIZE)
afile.close()
print(hasher.hexdigest())'"'"' 2>/dev/null) || (echo '"'"'0  \
'"'"'/etc/sysconfig/slapd)' <localhost> ESTABLISH SSH CONNECTION FOR USER: root
<localhost> SSH: EXEC ssh -C -vvv -o ControlMaster=auto -o ControlPersist=60s -o \
KbdInteractiveAuthentication=no -o \
PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o \
PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o \
ControlPath=/home/howard/.ansible/cp/ansible-ssh-%h-%p-%r -tt localhost 'mkdir -p "$( \
echo $HOME/.ansible/tmp/ansible-tmp-1456575051.15-251162319737262 )" && echo "$( echo \
                $HOME/.ansible/tmp/ansible-tmp-1456575051.15-251162319737262 )"'
fatal: [localhost]: FAILED! => {"failed": true, "msg": "ERROR! failed to resolve \
remote temporary directory from ansible-tmp-1456575051.15-251162319737262: `mkdir -p \
\"$( echo $HOME/.ansible/tmp/ansible-tmp-1456575051.15-251162319737262 )\" && echo \
\"$( echo $HOME/.ansible/tmp/ansible-tmp-1456575051.15-251162319737262 )\"` returned \
empty string"} ======================

Regards,
Howard


[Attachment #3 (unknown)]

<html xmlns:o="urn:schemas-microsoft-com:office:office" \
xmlns:w="urn:schemas-microsoft-com:office:word" \
xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" \
xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type \
content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 15 \
(filtered medium)"><style><!-- /* Font Definitions */
@font-face
	{font-family:"Cambria Math";
	panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
	{font-family:DengXian;
	panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
	{font-family:"\@DengXian";
	panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0cm;
	margin-bottom:.0001pt;
	font-size:11.0pt;
	font-family:"Calibri",sans-serif;}
.MsoChpDefault
	{mso-style-type:export-only;}
@page WordSection1
	{size:612.0pt 792.0pt;
	margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
	{page:WordSection1;}
--></style></head><body lang=EN-GB><div class=WordSection1><p class=MsoNormal>Hello \
fellow Tumbleweed users.<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p \
class=MsoNormal>Certain changes in the latest Tumbleweed snapshot may have prevented \
Ansible from working properly, I have a long Ansible playbook that used to work like \
hot knife through butter, but now it frequently and randomly fails on "copy" tasks \
with error message "returned empty string".<o:p></o:p></p><p \
class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>While I'll investigate and \
see what might have been the cause, but has any Ansible expert already spotted the \
issue?<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p \
class=MsoNormal>Here's the Ansible output:<o:p></o:p></p><p \
class=MsoNormal>===============<o:p></o:p></p><p class=MsoNormal>&lt;localhost&gt; \
ESTABLISH SSH CONNECTION FOR USER: root<o:p></o:p></p><p \
class=MsoNormal>&lt;localhost&gt; SSH: EXEC ssh -C -vvv -o ControlMaster=auto -o \
ControlPersist=60s -o KbdInteractiveAuthentication=no -o \
PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o \
PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o \
ControlPath=/home/howard/.ansible/cp/ansible-ssh-%h-%p-%r -tt localhost 'rc=flag; [ \
-r /etc/sysconfig/slapd ] || rc=2; [ -f /etc/sysconfig/slapd ] || rc=1; [ -d \
/etc/sysconfig/slapd ] &amp;&amp; rc=3; python -V 2&gt;/dev/null || rc=4; [ \
x&quot;$rc&quot; != &quot;xflag&quot; ] &amp;&amp; echo &quot;${rc}   \
&quot;/etc/sysconfig/slapd &amp;&amp; exit 0; (python -c '&quot;'&quot;'import \
hashlib; BLOCKSIZE = 65536; hasher = hashlib.sha1();<o:p></o:p></p><p \
class=MsoNormal>afile = \
open(&quot;'&quot;'&quot;'/etc/sysconfig/slapd'&quot;'&quot;'&quot;, \
&quot;rb&quot;)<o:p></o:p></p><p class=MsoNormal>buf = \
afile.read(BLOCKSIZE)<o:p></o:p></p><p class=MsoNormal>while len(buf) &gt; \
0:<o:p></o:p></p><p class=MsoNormal>                               \
hasher.update(buf)<o:p></o:p></p><p class=MsoNormal>                               \
buf = afile.read(BLOCKSIZE)<o:p></o:p></p><p \
class=MsoNormal>afile.close()<o:p></o:p></p><p \
class=MsoNormal>print(hasher.hexdigest())'&quot;'&quot;' 2&gt;/dev/null) || (python \
-c '&quot;'&quot;'import sha; BLOCKSIZE = 65536; hasher = sha.sha();<o:p></o:p></p><p \
class=MsoNormal>afile = \
open(&quot;'&quot;'&quot;'/etc/sysconfig/slapd'&quot;'&quot;'&quot;, \
&quot;rb&quot;)<o:p></o:p></p><p class=MsoNormal>buf = \
afile.read(BLOCKSIZE)<o:p></o:p></p><p class=MsoNormal>while len(buf) &gt; \
0:<o:p></o:p></p><p class=MsoNormal>                               \
hasher.update(buf)<o:p></o:p></p><p class=MsoNormal>                               \
buf = afile.read(BLOCKSIZE)<o:p></o:p></p><p \
class=MsoNormal>afile.close()<o:p></o:p></p><p \
class=MsoNormal>print(hasher.hexdigest())'&quot;'&quot;' 2&gt;/dev/null) || (echo \
'&quot;'&quot;'0   '&quot;'&quot;'/etc/sysconfig/slapd)'<o:p></o:p></p><p \
class=MsoNormal>&lt;localhost&gt; ESTABLISH SSH CONNECTION FOR USER: \
root<o:p></o:p></p><p class=MsoNormal>&lt;localhost&gt; SSH: EXEC ssh -C -vvv -o \
ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o \
PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o \
PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o \
ControlPath=/home/howard/.ansible/cp/ansible-ssh-%h-%p-%r -tt localhost 'mkdir -p \
&quot;$( echo $HOME/.ansible/tmp/ansible-tmp-1456575051.15-251162319737262 )&quot; \
&amp;&amp; echo &quot;$( echo \
$HOME/.ansible/tmp/ansible-tmp-1456575051.15-251162319737262 \
)&quot;'<o:p></o:p></p><p class=MsoNormal>fatal: [localhost]: FAILED! =&gt; \
{&quot;failed&quot;: true, &quot;msg&quot;: &quot;ERROR! failed to resolve remote \
temporary directory from ansible-tmp-1456575051.15-251162319737262: `mkdir -p \
\&quot;$( echo $HOME/.ansible/tmp/ansible-tmp-1456575051.15-251162319737262 )\&quot; \
&amp;&amp; echo \&quot;$( echo \
$HOME/.ansible/tmp/ansible-tmp-1456575051.15-251162319737262 )\&quot;` returned empty \
string&quot;}<o:p></o:p></p><p \
class=MsoNormal>======================<o:p></o:p></p><p \
class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>Regards,<o:p></o:p></p><p \
class=MsoNormal>Howard<o:p></o:p></p></div></body></html>


-- 
To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org
To contact the owner, e-mail: opensuse-factory+owner@opensuse.org


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic