Bug 1371658

Summary: restoring files scope needs --restore-permissions/--no-restore-permissions
Product: Red Hat Enterprise Virtualization Manager Reporter: vaibhav <vpagar>
Component: ovirt-engineAssignee: Yedidyah Bar David <didi>
Status: CLOSED WONTFIX QA Contact: Jiri Belka <jbelka>
Severity: medium Docs Contact:
Priority: medium    
Version: 3.6.8CC: didi, lsurette, mgoldboi, pstehlik, rbalakri, Rhev-m-bugs, srevivo, tjelinek, vpagar, ykaul, ylavi
Target Milestone: ---Keywords: Reopened
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-06-18 07:47:52 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:
Bug Depends On: 1331016    
Bug Blocks:    

Description vaibhav 2016-08-30 18:04:14 UTC
Description of problem:

While restoring the database dump on the RHEV 3.6.8 getting below error 

# engine-backup --mode=restore --scope=files --file=backup --log=restore_files.log 
Preparing to restore:
- Unpacking file 'backup'
FATAL: Please pass one of --restore-permissions or --no-restore-permissions when restoring a backup with a custom dump format

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

RHEV 3.6.8 

How reproducible:

100% 

Steps to Reproduce:
1. Take a db backup on RHEV 3.6.8 
2.  Try to restore it on RHEV 3.6.8 
3.

Actual results:-

FATAL: Please pass one of --restore-permissions or --no-restore-permissions when restoring a backup with a custom dump format



Expected results:

DB  resrote should complete without any error message.

Additional info:

Comment 1 vaibhav 2016-08-30 18:07:17 UTC
Taking backup :- 

[root@dhcp3-112 ~]# /usr/bin/engine-backup --scope=all --mode=backup --file="/rhevm-backup/backup.$(/bin/date +%d-%m-%Y-%H_%M).tar.bz2" --log="/rhevm-backup/backup.$(/bin/date +%d-%m-%Y-%H_%M).log" 
Backing up:
Notifying engine
- Files
- Engine database 'engine'
Packing into file '/rhevm-backup/backup.30-08-2016-20_50.tar.bz2'
Notifying engine
Done.

Error while restoring backup.

[root@dhcp3-112 ~]# /usr/bin/engine-backup --mode=restore --scope=all --file=/rhevm-backup/backup.30-08-2016-20_50.tar.bz2 --log=/rhevm-backup/backup.30-08-2016-20_50.log
Preparing to restore:
- Unpacking file '/rhevm-backup/backup.30-08-2016-20_50.tar.bz2'
FATAL: Please pass one of --restore-permissions or --no-restore-permissions when restoring a backup with a custom dump format

Comment 2 Yaniv Lavi 2016-09-15 15:16:00 UTC
Is this fixed in any release already?

Comment 3 Yedidyah Bar David 2016-09-18 05:49:59 UTC
(In reply to Yaniv Dary from comment #2)
> Is this fixed in any release already?

No.

Comment 4 Yaniv Lavi 2016-09-22 08:33:15 UTC
The default should be '--no-restore-permissions' and some text should show we don't restore the permissions.

Comment 5 Sandro Bonazzola 2017-01-13 15:23:32 UTC
Won't make it for 4.1.0, postponing to 4.1.1

Comment 6 Yaniv Lavi 2017-02-06 10:54:09 UTC

*** This bug has been marked as a duplicate of bug 1331016 ***

Comment 7 Yaniv Lavi 2018-06-18 07:47:52 UTC
Closing old bugs, please reopen if still relevant.
We will reconsider if more customer request this.

Comment 8 Yedidyah Bar David 2018-06-18 07:55:42 UTC
This bug is also partially handled by bug 1530031.

Comment 9 Franta Kust 2019-05-16 13:04:24 UTC
BZ<2>Jira Resync