Bug 1002401 - [RFE] backup/restore: support restoring to different database location
[RFE] backup/restore: support restoring to different database location
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine-setup (Show other bugs)
Unspecified Unspecified
high Severity medium
: ---
: 3.3.0
Assigned To: Yedidyah Bar David
sefi litmanovich
: FutureFeature, Improvement
: 1021448 (view as bug list)
Depends On:
Blocks: 3.3snap2 3.3snap4
  Show dependency treegraph
Reported: 2013-08-29 02:23 EDT by Alon Bar-Lev
Modified: 2014-01-21 12:36 EST (History)
8 users (show)

See Also:
Fixed In Version: is26
Doc Type: Enhancement
Doc Text:
The backup and restore procedure can now be used to move the database from one location to another, for example from local to remote.
Story Points: ---
Clone Of:
Last Closed: 2014-01-21 12:36:22 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
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 20258 None None None Never
oVirt gerrit 20371 None None None Never
oVirt gerrit 20374 None None None Never
oVirt gerrit 20445 None None None Never
oVirt gerrit 20606 None None None Never
oVirt gerrit 21784 None None None Never
oVirt gerrit 21791 None None None Never
Red Hat Product Errata RHSA-2014:0038 normal SHIPPED_LIVE Important: Red Hat Enterprise Virtualization Manager 3.3.0 update 2014-01-21 17:03:06 EST

  None (edit)
Description Alon Bar-Lev 2013-08-29 02:23:37 EDT
This came up in presentation to GSS and it makes sense.

1. When restoring a machine, it does not mean that the database location is the same.

2. The backup/restore procedure can be used in order to move the database from one location (example: local) to another location (example: remote).

These two can be easily added to current implementation.
Comment 1 Yedidyah Bar David 2013-10-17 05:56:05 EDT
Comments below copied from gerrit:

Initial draft.
Includes many other fixes to be able to actually use it.
Verified only on fedora 19:
engine-setup (chose to have it provision a local db, the default)
engine-backup --mode=backup --file=oeb4-local-db --log=oeb4.log
manually created a db in another host and opened access to it
Created a file "p1" with the remote's password engine-backup --mode=restore --file=oeb4-local-db --log=oeb4-restore1.log --db-host=didi-lap --db-pass=p1
Had to manually add ovirt services to firewalld's public zone and reload it
engine seems to work
engine-cleanup also works well, apart from:
[WARNING] Preserving '/etc/ovirt-engine/engine.conf.d/10-setup-database.conf' as changed since installation

Note: Passing --db-secured and/or --db-sec-validation does not change ENGINE_DB_URL, and it probably should. Not tested. It might be better to remove or disable these options for now.
Comment 2 Yedidyah Bar David 2013-10-23 03:34:47 EDT
*** Bug 1021448 has been marked as a duplicate of this bug. ***
Comment 3 sefi litmanovich 2013-11-06 08:24:46 EST
Verified on RHEVM 3.3 IS21.

2.engine-backup --mode=backup --scope=db --file=/tmp/oeb4-local-db --log=/tmp/oeb4.log
3. created DB on remote host as per instructions on engine-backup --help
4. service ovirt-engine stop
5. engine-backup --mode=restore --scope=db --change-db-credentials --file=/tmp/oeb4-local-db --log=/tmp/oeb4-restore1.log --db-host=monique-vds05.tlv.redhat.com --db-port=5432 --db-user=engine --db-name=engine --db-password=engine
6. service ovirt-engine start; service httpd restart.
7. engine works fine, elements added to engine (Datacenter, cluster...) appear on remote database.
Comment 4 Yedidyah Bar David 2013-11-27 08:42:49 EST
Found a bug : without http://gerrit.ovirt.org/21784 , engine-backup --mode=restore and without --change-db-credentials will empty 10-setup-database.conf and so will prevent the engine from starting.
Comment 5 Charlie 2013-11-27 19:24:48 EST
This bug is currently attached to errata RHEA-2013:15231. If this change is not to be documented in the text for this errata please either remove it from the errata, set the requires_doc_text flag to minus (-), or leave a "Doc Text" value of "--no tech note required" if you do not have permission to alter the flag.

Otherwise to aid in the development of relevant and accurate release documentation, please fill out the "Doc Text" field above with these four (4) pieces of information:

* Cause: What actions or circumstances cause this bug to present.
* Consequence: What happens when the bug presents.
* Fix: What was done to fix the bug.
* Result: What now happens when the actions or circumstances above occur. (NB: this is not the same as 'the bug doesn't present anymore')

Once filled out, please set the "Doc Type" field to the appropriate value for the type of change made and submit your edits to the bug.

For further details on the Cause, Consequence, Fix, Result format please refer to:


Thanks in advance.
Comment 6 sefi litmanovich 2013-12-09 08:38:21 EST
Verified on RHEVM 3.3 IS26.

reproduce steps:
1. engine-setup
2. create DC, Cluster, add hosts etc..
3. engine-backup --mode=backup --scope=all --file=/tmp/oeb4-local-db --log=/tmp/oeb4.log
4. engine-cleanup
5. drop database
6. create new database with same credentials as the previous one which was backed up
7. engine-backup --mode=resore --scope=all --file=/tmp/oeb4-local-db --log=/tmp/oeb4.log

result= engine works fine with all the elements installed at stage (2) in-tact.
Comment 7 errata-xmlrpc 2014-01-21 12:36:22 EST
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.


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