Bug 1522985 - RFE: engine-backup needs a --quiet parameter
Summary: RFE: engine-backup needs a --quiet parameter
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: ovirt-engine
Classification: oVirt
Component: Backup-Restore.Engine
Version: 4.1.7.6
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: ---
: ---
Assignee: Yedidyah Bar David
QA Contact: Pavel Stehlik
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-12-06 21:35 UTC by Troels Arvin
Modified: 2018-06-12 11:15 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-06-12 11:15:00 UTC
oVirt Team: Integration
Embargoed:
rule-engine: planning_ack?
rule-engine: devel_ack?
rule-engine: testing_ack?


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.