Bug 1319457 - [RFE] Support Hosted Engine Migration to oVirt 4.0.0
Summary: [RFE] Support Hosted Engine Migration to oVirt 4.0.0
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: ovirt-engine
Classification: oVirt
Component: BLL.HostedEngine
Version: 4.0.0
Hardware: Unspecified
OS: Unspecified
urgent
urgent
Target Milestone: ovirt-4.0.2
: 4.0.1.1
Assignee: Simone Tiraboschi
QA Contact: Jiri Belka
URL: https://www.ovirt.org/develop/release...
Whiteboard:
Depends On: 1343593 1344310 1344900 1365322
Blocks: RHEV_from_3_6_to_4_0_Migration_Tracker 1358072
TreeView+ depends on / blocked
 
Reported: 2016-03-20 09:55 UTC by Roy Golan
Modified: 2017-05-11 09:25 UTC (History)
11 users (show)

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-08-12 14:27:15 UTC
oVirt Team: Integration
Embargoed:
rule-engine: ovirt-4.0.z+
ylavi: blocker+
lsvaty: testing_plan_complete+
ylavi: planning_ack+
dfediuck: devel_ack+
mavital: testing_ack+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 59946 0 master MERGED upgrade: rework the upgrade tool 2016-07-06 15:20:57 UTC
oVirt gerrit 60248 0 ovirt-4.0 MERGED jsonrpcvdscli: add additional verbs 2016-07-08 15:11:15 UTC
oVirt gerrit 60277 0 ovirt-hosted-engine-setup-2.0 MERGED upgrade: rework the upgrade tool 2016-07-07 08:08:25 UTC

Description Roy Golan 2016-03-20 09:55:34 UTC
A hosted engine upgrade from 3.6 to 4.0 is an OS change for the Engine VM.

The upgrade procedure is expected to be a UI experience to upgrade and sync the process. The VM remains the same VM in the engine DB, but its disk should be a new one with and updated OS, with all certificates and configuration copied-over and after it is all done we switch the hosted engine OVF & DB configuration to point to the new disk. Now a called reboot to the engine VM should point to the newly updated 4.0 VM disk.

Comment 1 Roy Golan 2016-04-05 12:53:04 UTC
*THIS IS AN EXCERPT FROM THE UP-COMMING FEATURE PAGE*
*https://github.com/oVirt/ovirt-site/pull/164*

# Migration path (proposal):
- engine-backup all backup6to7.tar.gz
- Add disk to hosted engine VM (Allow that in edit VM?)
- extract the disk content from the 4.0 appliance (reuse the setup functionality)
- Edit the new disk boot order to boot 1st. Make sure OVF is rewritten
- Shutdown the VM using --vm-shutdown and start it --vm-start
- put Hosted engine to maintenance mode
- VM boots, cloud-init performs engine-setup, and engine-backup restore backup6to7.tar.gz 
- put hosted engine maintenance mode=none

# Revert
- hosted-engine --vm-start --vm-conf=vm_with_the_old_disk.conf
- Edit engine VM disk boot order, set the old disk to boot 1st or remove the new disk
- wait for OVF to persist
- restart vm using cli

# UI, REST
- ?

Comment 2 Sandro Bonazzola 2016-05-02 09:53:05 UTC
Moving from 4.0 alpha to 4.0 beta since 4.0 alpha has been already released and bug is not ON_QA.

Comment 3 Sandro Bonazzola 2016-05-11 06:51:38 UTC
Simone, is any change needed at ovirt-engine level? I understood nothing required.

Comment 4 Simone Tiraboschi 2016-05-11 07:36:25 UTC
Not really on the main flow.
Maybe something thee could help on preliminary steps: for instance one requirements is that the hosted-engine storage domain could fit a backup of the engine VM disk to allow the user to quick rollback if something goes wrong.
This is almost always true for NFS and gluster but maybe on iSCSI and FC the user has to exten the LUN and resize the VG. Using the engien for that could help.

Comment 5 Red Hat Bugzilla Rules Engine 2016-06-29 11:00:29 UTC
Target release should be placed once a package build is known to fix a issue. Since this bug is not modified, the target version has been reset. Please use target milestone to plan a fix for a oVirt release.

Comment 6 Doron Fediuck 2016-07-06 12:56:11 UTC
Just to clarify, verifying this issue should include:
1. Verify on both host types: RHEV-H and RHEL-H
2. Verify on the following storage types: NFS, iCSCI, FC, GlusterFS

Comment 7 Jiri Belka 2016-08-09 11:10:27 UTC
this bz is about migration from 3.6 to 4.0, not a tracker for all HE issue like 1364034

Comment 8 Jiri Belka 2016-08-09 11:11:55 UTC
Migration works on all storages with EL and hypervisors.

Although there's issue with permission as stated in https://bugzilla.redhat.com/show_bug.cgi?id=1364034

Comment 9 Tahlia Richardson 2016-08-18 07:12:38 UTC
Is there a link to the support tool mentioned in the doc text, that I can put in the completed text? Or is it referring to the Upgrade Helper[1], with the assumption that it will include a 3.6 -> 4.0 flow at GA? 

[1] https://access.redhat.com/labs/rhevupgradehelper/

Comment 10 Simone Tiraboschi 2016-08-18 07:17:25 UTC
Upstream it's documented here:
https://www.ovirt.org/develop/release-management/features/hosted-engine-migration-to-4-0/

Comment 11 Tahlia Richardson 2016-08-18 07:25:58 UTC
Thanks Simone. 
Since this will be have a procedure in the documentation, it probably doesn't need a release note. Let me know if you think it does.


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