Bug 1219630

Summary: report hook stderr to Engine if it fails an action
Product: Red Hat Enterprise Virtualization Manager Reporter: Dan Kenigsberg <danken>
Component: vdsmAssignee: Marcin Mirecki <mmirecki>
Status: CLOSED ERRATA QA Contact: Petr Kubica <pkubica>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 3.6.0CC: bazulay, gklein, lpeer, lsurette, mgoldboi, oourfali, pkliczew, pstehlik, yeylon, ykaul
Target Milestone: ovirt-3.6.0-rcKeywords: EasyFix
Target Release: 3.6.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: v4.17.2 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-03-09 19:39:29 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Infra RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Dan Kenigsberg 2015-05-07 20:12:35 UTC
When a before_* hook script returns 1, the calling action fails and reports an error code to Engine.

The "message" field reported with the error code should include the stderr of the hook, so that it is easier to discern the cause of the error from Engine event log alone.

Comment 2 Petr Kubica 2016-02-11 12:24:39 UTC
Verified in vdsm-4.17.19-0.el7ev.noarch
used: vdsm-hook-httpsisoboot-4.17.20-0.el7ev.noarch
- run VM from iso (https) with wrong address.

Comment 4 errata-xmlrpc 2016-03-09 19:39:29 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHBA-2016-0362.html