Bug 1832707 - Errors from tar are not logged
Summary: Errors from tar are not logged
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: ovirt-engine
Classification: oVirt
Component: Backup-Restore.Engine
Version: 4.3.0
Hardware: Unspecified
OS: Unspecified
medium
unspecified
Target Milestone: ovirt-4.3.10
: 4.3.10.3
Assignee: Yedidyah Bar David
QA Contact: Guilherme Santos
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-05-07 06:46 UTC by Yedidyah Bar David
Modified: 2020-06-10 10:57 UTC (History)
2 users (show)

Fixed In Version: ovirt-engine-4.3.10.3
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-06-10 10:57:06 UTC
oVirt Team: Integration
Embargoed:
pm-rhel: ovirt-4.3+
pm-rhel: exception+
mtessun: planning_ack+
sbonazzo: devel_ack+
lleistne: testing_ack+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 108841 0 master MERGED packaging: engine-backup: Log tar errors 2020-06-02 17:10:38 UTC
oVirt gerrit 108940 0 ovirt-engine-4.3 MERGED packaging: engine-backup: Log tar errors 2020-06-02 17:10:38 UTC

Description Yedidyah Bar David 2020-05-07 06:46:38 UTC
Description of problem:

engine-backup calls tar in several different places/flows. In some of them, if tar emits errors, they are not logged to engine-backup's log, thus make it hard to diagnose failures, unless the user made sure to copy the errors from the terminal.

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

How reproducible:
Always

Steps to Reproduce:
1. Run engine-backup with a too-small /tmp
2.
3.

Actual results:
Fails, but log does not show why

Expected results:
Fails, with the error in the log

Additional info:
I never got actual reports from users requesting this to be fixed, but it recently failed in our CI, and it's not clear why, thus opening this bug. Already pushed a patch to log the specific place that failed in CI, will amend the patch later to log all such places in the code.

Comment 1 Guilherme Santos 2020-05-19 13:51:22 UTC
Verified on:
ovirt-engine-4.3.10.3-0.1.master.el7.noarch

Steps:
1. mounted a logical volume in /tmp
2. # engine-backup --file=engine.backup
3. # fallocate -l X /tmp/fake.file  <--------- X being a value to almost fill the /tmp unit fully
4. # engine-backup --mode=restore --file=engine.backup --log=backup.log
5. # grep tar backup.log

Results:
backup restore failed, tar errors found in backup.log

Comment 2 Michal Skrivanek 2020-06-10 10:57:06 UTC
4.3.10 was released


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