I think you need to change the external bash call from `bash -s` to `bash -se`

On Tue, Oct 31, 2017 at 10:03 PM, Barak Korren <bkorren@redhat.com> wrote:


On 31 October 2017 at 17:56, Gal Ben Haim <gbenhaim@redhat.com> wrote:
The thing that bothers me is why the deploy script returned status 0 even though yum failed:

2017-10-31 11:18:14,496::ssh.py::ssh::58::lago.ssh::DEBUG::Running 2fed0ea0 on lago-basic-suite-4-1-host-0: bash -s < "#!/bin/bash -xe
yum -y install ovirt-host
rm -rf /dev/shm/*.rpm /dev/shm/yum
"
2017-10-31 11:18:16,121::ssh.py::ssh::81::lago.ssh::DEBUG::Command 2fed0ea0 on lago-basic-suite-4-1-host-0 returned with 0

By the look of it, it may be that the script is not running with 'set -e'.



--
Barak Korren
RHV DevOps team , RHCE, RHCi
Red Hat EMEA
redhat.com | TRIED. TESTED. TRUSTED. | redhat.com/trusted

_______________________________________________
Devel mailing list
Devel@ovirt.org
http://lists.ovirt.org/mailman/listinfo/devel