[opensuse-factory] Frequent and random Ansible failures on the latest snapshot
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
participants (1)
-
Howard Guo