Do not raise exception for ostf status check

We switch gate test to usage of ssh_manager,
where raise exception if exit code =! 0 is set by default.
But when we stop ostf service, systemctl status ostf never return 0,
so that we got false negative results.

Change-Id: I9dfb2501921dae8b1ce84a71de8ca794d227daed
Closes-Bug: #1567889
This commit is contained in:
Tatyana Leontovich 2016-04-08 15:24:24 +03:00
parent 0a7d224596
commit 2637797da1
1 changed files with 2 additions and 1 deletions

View File

@ -157,7 +157,8 @@ def update_ostf():
ssh.execute_on_remote(ssh.admin_ip, cmd=cmd)
cmd = "service ostf status"
helpers.wait(lambda: "dead" in ssh.execute_on_remote(
ssh.admin_ip, cmd=cmd)['stdout_str'], timeout=60)
ssh.admin_ip, cmd=cmd,
raise_on_assert=False)['stdout_str'], timeout=60)
logger.info("OSTF status: inactive")
cmd = "rpm -e fuel-ostf"
ssh.execute_on_remote(ssh.admin_ip, cmd=cmd)