Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1067551 - engine-backup script is not taking the backup of rhevm-report.
engine-backup script is not taking the backup of rhevm-report.
Status: CLOSED CURRENTRELEASE
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine-setup (Show other bugs)
3.3.0
x86_64 Linux
high Severity high
: ---
: 3.4.0
Assigned To: Yedidyah Bar David
Barak Dagan
integration
:
Depends On:
Blocks: 1092384
  Show dependency treegraph
 
Reported: 2014-02-20 11:04 EST by Udayendu Sekhar Kar
Modified: 2015-03-22 20:46 EDT (History)
13 users (show)

See Also:
Fixed In Version: org.ovirt.engine-root-3.4.0-16
Doc Type: Bug Fix
Doc Text:
The engine-backup script was extended to backup and restore DWH and Reports.
Story Points: ---
Clone Of:
: 1092384 (view as bug list)
Environment:
Last Closed:
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
oVirt gerrit 27131 None None None Never
Red Hat Product Errata RHSA-2014:0506 normal SHIPPED_LIVE Moderate: Red Hat Enterprise Virtualization Manager 3.4.0 update 2014-06-09 14:55:38 EDT

  None (edit)
Description Udayendu Sekhar Kar 2014-02-20 11:04:23 EST
Description of problem:
Currently the 'engine-backup' script is not taking the backup of rhevm-report install on the rhevm system. 

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

How reproducible:
100%

Steps to Reproduce:
1. install a rhevm system and configure the rhevm-reports
2. take the backup using engine-backup script.
3. install a new rhevm system and install the rhevm-reports package. Then use the engine-backup script to restore the backup taken from the old system. It will fail. 


Actual results:
Restore is failing as rhevm-report configuration files are not backed up. 

Expected results:
It should take the backup of the rhevm-report configuration files also.
Comment 5 Barak 2014-03-03 14:13:04 EST
(In reply to Udayendu Sekhar Kar from comment #0)
> Description of problem:
> Currently the 'engine-backup' script is not taking the backup of
> rhevm-report install on the rhevm system. 
> 
> Version-Release number of selected component (if applicable):
> rhevm 3.3
> 
> How reproducible:
> 100%
> 
> Steps to Reproduce:
> 1. install a rhevm system and configure the rhevm-reports
> 2. take the backup using engine-backup script.
> 3. install a new rhevm system and install the rhevm-reports package. 

I assume you have executed the rhevm-reports-setup post the second installation ?

> Then
> use the engine-backup script to restore the backup taken from the old
> system. It will fail.

What fails ? the restore of the engine db ?
If it fails than we need the restore logs.

 
> 
> 
> Actual results:
> Restore is failing as rhevm-report configuration files are not backed up. 
> 
> Expected results:
> It should take the backup of the rhevm-report configuration files also.
Comment 13 Yedidyah Bar David 2014-04-29 04:12:32 EDT
Notes to QE.

See --help for changes.

You now must run setup after restore. Reports will definitely not work without  setup, engine might work, didn't test dwh.

Some relevant flows to verify:

setup/backup/cleanup/restore/setup on same machine, no credentials change, engine only

same, engine+dwh

same, engine+dwh+reports

same but after cleanup change the installed applications - e.g. after engine-only backup/cleanup, install also dwh+reports and restore/setup. Also opposite - after engine+dwh+reports backup, remove dwh and/or reports and restore/setup

some/all of the above with changed credentials - for engine, dwh, reports, one or more creds changes at once

some/all of the above but on a different/new/clean machine/db

Note that probably not all of the scenarios will finish exactly as expected. Not sure all such cases are bugs. I think the minimum requirement is only that setup after restore finishes successfully and whatever was setup by it works. I personally verified only very few flows.

I also updated the wiki page http://www.ovirt.org/Ovirt-engine-backup .

Comments/ideas/opinions/reports/results are welcome :-)
Comment 14 Barak Dagan 2014-05-05 05:19:28 EDT
Verified on av8.1

1) --help, new options

2) Backup / restore sequences:

i) Backup / restore
 a) setup/backup/cleanup/restore/setup on same machine, no credentials change,  engine only
 b) setup/backup/cleanup/restore/setup on same machine, no credentials change, engine + dwh
 c) setup/backup/cleanup/restore/setup on same machine, no credentials change, engine + dwh + reports

ii) Adding components during Backup / restore process
a) setup engine /backup/cleanup install dwh /restore/setup on same machine
b) setup engine /backup/cleanup install dwh + reports /restore/setup on same machine
c) setup engine + dwh /backup/cleanup install reports /restore/setup on same machine

iii) Removing components during Backup / restore process
a) setup engine + dwh + reports /backup/cleanup remove reports /restore/setup n same machine
b) setup engine + dwh + reports /backup/cleanup remove dwh + reports /restore/setup on same machine
c) setup engine + dwh /backup/cleanup remove dwh  /restore/setup on same machine

iv) Backup / restore process over network (remote db configuration)
a) setup/backup/cleanup/restore/setup on same machine, no credentials change, engine + dwh + reports, remote db
Comment 16 Timothy 2014-05-18 20:18:16 EDT
Thanks. updated.
Comment 17 Itamar Heim 2014-06-12 10:08:47 EDT
Closing as part of 3.4.0

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