Bug 1318580
Summary: | [RFE] restore: ensure that 3.6 backup can be restored on clean 4.0 | |||
---|---|---|---|---|
Product: | [oVirt] ovirt-engine | Reporter: | Sandro Bonazzola <sbonazzo> | |
Component: | Backup-Restore.Engine | Assignee: | Yedidyah Bar David <didi> | |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Jiri Belka <jbelka> | |
Severity: | high | Docs Contact: | ||
Priority: | urgent | |||
Version: | 4.0.0 | CC: | bugs, didi, jbelka, melewis, mgoldboi, sbonazzo | |
Target Milestone: | ovirt-4.0.0-beta | Keywords: | FutureFeature | |
Target Release: | 4.0.0 | Flags: | rule-engine:
ovirt-4.0.0+
pnovotny: testing_plan_complete+ mgoldboi: planning_ack+ sbonazzo: devel_ack+ pstehlik: testing_ack+ |
|
Hardware: | Unspecified | |||
OS: | Unspecified | |||
Whiteboard: | ||||
Fixed In Version: | Doc Type: | Enhancement | ||
Doc Text: |
With this update, Red Hat Virtualization 4.0 can now restore backups taken of Red Hat Enterprise Virtualization 3.6. Red Hat Virtualization 4.0 does not support Red Hat Enterprise Linux 6 and, previously, this meant that users could not upgrade from Red Hat Enterprise Virtualization 3.6. Now, users can back up their Red Hat Enterprise Virtualization 3.6 and restore it on Red Hat Virtualization 4.0.
To backup Red Hat Enterprise Virtualization 3.6 run, engine-backup --mode=backup --file=engine-3.6.bck --log=backup.log. Other options for engine-backup, including remote databases, can be found in the engine-backup documentation, https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Virtualization/3.6/html-single/Administration_Guide/index.html#sect-Backing_Up_and_Restoring_the_Red_Hat_Enterprise_Virtualization_Manager
To migrate to Red Hat Virtualization 4.0, install Red Hat Virtualization 4.0 then copy engine-3.6.bck to the Red Hat Enterprise Linux machine. Run engine-backup --mode=restore --file=engine-3.6.bck --log=restore.log --provision-db --no-restore-permissions to restore the backup then run engine-setup.
|
Story Points: | --- | |
Clone Of: | ||||
: | 1332463 (view as bug list) | Environment: | ||
Last Closed: | 2016-07-05 07:51:43 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: | ||
Embargoed: | ||||
Bug Depends On: | 1323201, 1332088 | |||
Bug Blocks: | 1302228, 1332463, 1351435 |
Description
Sandro Bonazzola
2016-03-17 09:46:12 UTC
One potential problem I noticed re this (thanks to testing by nsednev) is that engine-setup starts the engine *before* the upgrade in asynctasks.py . Not sure how well this will work. This bug was accidentally moved from POST to MODIFIED via an error in automation, please see mmccune with any questions *** Bug 1323220 has been marked as a duplicate of this bug. *** (In reply to Yedidyah Bar David from comment #1) > One potential problem I noticed re this (thanks to testing by nsednev) is > that engine-setup starts the engine *before* the upgrade in asynctasks.py . > Not sure how well this will work. Two problems I currently see with this: 1. we'll need to patch the new jboss location prior to starting the engine. We can decide that this isn't a major issue and do it during restore (not setup, where we try hard to not touch the system before STAGE_TRANSACTION_BEGIN ("Stage: Transaction setup"). 2. The inherent issue is that we start a new engine code with an old engine db. This is different from an upgrade flow, where this stage runs with the old engine code installed. Some solutions/ideas: 1. Seems like we can already optionally skip this action by passing 'OVESETUP_ASYNC/clearTasks=bool:False'. This will also prevent running the taskcleaner, need to think about making either optional (but the core problem still applies to both of them, although taskcleaner is a much smaller piece of code, hopefully easier to make it compatible with older db). 2. We can add to engine-backup --mode=backup, a check whether there are pending tasks etc., and if so, abort, unless an option (say '--force-backup-pending-tasks') is passed. Or perhaps the opposite ('--prevent-backup-pending-tasks'), assuming that the normal flow is routine backup, and migration is the special case. Sandro, what do you think? Ignore this. I now realized that we clean these on restore anyway, so should never need to handle them. The only problem is that we always start the engine. I'll fix. Can this be merged to 3.6? Otherwise migration from 3.6 EL6 to 3.6 EL7 does fail. This is not a clean cherry-pick, but should be simple enough. But see my comment on bug 1323201 . ok, 4.0.0-10 tested many times for migration between 3.6 EL6 and 4.0 EL7 oVirt 4.0.0 has been released, closing current release. |