Bug 1376318

Summary: engine-backup's log is not detailed enough
Product: [oVirt] ovirt-engine Reporter: Yedidyah Bar David <didi>
Component: Backup-Restore.EngineAssignee: Yedidyah Bar David <didi>
Status: CLOSED WONTFIX QA Contact: Jiri Belka <jbelka>
Severity: medium Docs Contact:
Priority: low    
Version: 4.0.3CC: bugs, lsvaty, ylavi
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-06-25 07:29:46 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:

Description Yedidyah Bar David 2016-09-15 05:16:08 UTC
Description of problem:

Sometimes the log generated by engine-backup is not enough for debugging failures.

Due to the fix to bug 1172191 it's somewhat difficult to cause it to produce extra debugging information.

We probably want to make it export OTOPI_DEBUG=1 for the calls to ovirt-engine-provisiondb.

We probably want to run it with 'set -x', but also need to consider using BASH_XTRACEFD with some other file descriptor, as in some places we analyze stderr of some commands. This will make it bash-specific. Another option which might be more complex but more portable is to 'set +x' before such commands.

Depending on the solution, it might make sense to make this optional, e.g. only when a flag '--debug' is passed.

Comment 1 Yaniv Lavi 2018-06-25 07:29:46 UTC
Closing old bugs.
Please reopen if still relevant.
Patches are welcomed.