Bug 1287159

Summary: hosted-engine-setup can fail too silently
Product: [oVirt] ovirt-hosted-engine-setup Reporter: Simone Tiraboschi <stirabos>
Component: Plugins.GeneralAssignee: Simone Tiraboschi <stirabos>
Status: CLOSED CURRENTRELEASE QA Contact: Nikolai Sednev <nsednev>
Severity: medium Docs Contact:
Priority: medium    
Version: 1.3.1CC: bugs, dfediuck, didi, gklein, lveyde, mavital, mgoldboi, rmartins, sbonazzo, stirabos
Target Milestone: ovirt-3.6.2Keywords: Triaged
Target Release: 1.3.2Flags: rule-engine: ovirt-3.6.z+
mgoldboi: planning_ack+
dfediuck: devel_ack+
mavital: testing_ack+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ovirt-hosted-engine-setup-1.3.2-1 Doc Type: Bug Fix
Doc Text:
hosted-engine-setup can fail too silently. As a workaround for a past libvirt issue hosted-engine-setup was closing the stdout before leaving the control to otopi and this can prevent it to clearly show a failure to the user. Since the libvirt issue has been fixed we can revert the workaround.
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-02-18 11:05:18 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Integration RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1293654    

Description Simone Tiraboschi 2015-12-01 16:11:14 UTC
Description of problem:
hosted-engine-setup can fail too silently. As a workaround for a past libvirt issue hosted-engine-setup was closing the stdout before leaving the control to otopi and this can prevent it to clearly show a failure to the user.

Version-Release number of selected component (if applicable):


How reproducible:
it depends from the kind of failure

Steps to Reproduce:
1. check what happens when hosted-engine-setup fails
2.
3.

Actual results:
the failure can be not that evident to the user

Expected results:
In case of a failure we should clearly state that the setup wasn't correctly completed and so the system is not reliable.

Additional info:

Comment 1 Simone Tiraboschi 2015-12-01 16:12:42 UTC
*** Bug 1287160 has been marked as a duplicate of this bug. ***

Comment 2 Yedidyah Bar David 2015-12-02 06:59:14 UTC
Check src/plugins/ovirt-hosted-engine-setup/libvirt/workarounds.py .
Adding this comment because I wasn't aware of this file.

Comment 3 Sandro Bonazzola 2015-12-23 13:42:20 UTC
oVirt 3.6.2 RC1 has been released for testing, moving to ON_QA

Comment 4 Nikolai Sednev 2016-01-14 14:48:38 UTC
Works for me on these components:


         Please specify path to OVF archive you would like to use [None]: ^C[ ERROR ] Failed to execute stage 'Environment customization': SIG2
[ INFO  ] Stage: Clean up
[ INFO  ] Generating answer file '/var/lib/ovirt-hosted-engine-setup/answers/answers-20160114100708.conf'
[ INFO  ] Stage: Pre-termination
[ INFO  ] Stage: Termination
[ ERROR ] Hosted Engine deployment failed: this system is not reliable, please check the issue, fix and redeploy
          Log file is located at /var/log/ovirt-hosted-engine-setup/ovirt-hosted-engine-setup-20160114100621-9ajja6.log


HE-Host:
mom-0.5.1-1.el7ev.noarch
ovirt-vmconsole-1.0.0-1.el7ev.noarch
ovirt-hosted-engine-ha-1.3.3.6-1.el7ev.noarch
qemu-kvm-rhev-2.3.0-31.el7_2.5.x86_64
ovirt-vmconsole-host-1.0.0-1.el7ev.noarch
ovirt-host-deploy-1.4.1-1.el7ev.noarch
libvirt-client-1.2.17-13.el7_2.2.x86_64
sanlock-3.2.4-2.el7_2.x86_64
ovirt-setup-lib-1.0.1-1.el7ev.noarch
vdsm-4.17.15-0.el7ev.noarch
ovirt-hosted-engine-setup-1.3.2.1-1.el7ev.noarch

Engine:
ovirt-vmconsole-1.0.0-1.el6ev.noarch
rhevm-dwh-3.6.2-1.el6ev.noarch
rhevm-reports-3.6.2.1-1.el6ev.noarch
ovirt-engine-extension-aaa-jdbc-1.0.4-1.el6ev.noarch
ovirt-setup-lib-1.0.1-1.el6ev.noarch
ovirt-vmconsole-proxy-1.0.0-1.el6ev.noarch
ovirt-host-deploy-1.4.1-1.el6ev.noarch
ovirt-host-deploy-java-1.4.1-1.el6ev.noarch