Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1522985

Summary: RFE: engine-backup needs a --quiet parameter
Product: [oVirt] ovirt-engine Reporter: Troels Arvin <troels>
Component: Backup-Restore.EngineAssignee: Yedidyah Bar David <didi>
Status: CLOSED WONTFIX QA Contact: Pavel Stehlik <pstehlik>
Severity: low Docs Contact:
Priority: low    
Version: 4.1.7.6CC: bugs, michal.skrivanek, ylavi
Target Milestone: ---Keywords: FutureFeature
Target Release: ---Flags: rule-engine: planning_ack?
rule-engine: devel_ack?
rule-engine: testing_ack?
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-12 11:15:00 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:

Description Troels Arvin 2017-12-06 21:35:29 UTC
Description of problem:
When running a script in cron mode, it's normally expected that the script is silent, unless something unusual or noteworthy happens along the way. Some scripts behave like this by default; some scripts need a "--quiet" or "--silent" argument for this behavior.

The "engine-backup" tool does not currently seem to have a cron-friendly mode of operation.

I request that a "--quiet" argument be added to the tool, making it work quietly, unless something unusual happens.

Comment 1 Yedidyah Bar David 2017-12-06 21:46:09 UTC
Makes sense, does not seem high priority. Patches are welcome :-)

A workaround:

Run it with > /dev/null. If there is an error, it will be written to stderr, so you should get mail, at least by most sane cronds, and the log ('--log=') should usually be enough to debug the error.

Or run it with > /some/place/engine-backup-stdout.log, and have the same behavior, plus the extra theoretical info written to stdout and not to the log (if you find such, please open a bug), and plus the need to rotate the generated log.

Comment 2 Troels Arvin 2017-12-06 22:15:48 UTC
Yes, it's a minor thing.

By the way: Now that oVirt warns about lack of recent backups, maybe it should have a standard directory for backups and a default scheduled (nightly) backup-dump. That would leave one less task for the end-user to remember.

Comment 3 Yaniv Lavi 2018-06-12 11:15:00 UTC
Closing old RFEs, please reopen if still needed.
Patches are always welcome.