Bug 1828281

Summary: [UPGRADE] Failed to upgrade from 4.2.8.9 to 4.3.10
Product: [oVirt] ovirt-engine Reporter: msheena
Component: GeneralAssignee: bugs <bugs>
Status: CLOSED NOTABUG QA Contact: Avihai <aefrat>
Severity: high Docs Contact:
Priority: unspecified    
Version: 4.3.10CC: bugs, dholler, eshenitz, mburman, michal.skrivanek, mperina, rdlugyhe
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-05-05 09:19:51 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Infra RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description msheena 2020-04-27 13:48:13 UTC
Description of problem
======================
Given I have a VM with ovirt-engine-4.2.8.9-0.1.el7ev.noarch installed and deployed
When I put a 4.3.10 yum repository on the VM
And perform a `yum update`
Then yum fails over dependency issues

Version-Release number of selected component (if applicable)
============================================================
Red Hat Enterprise Linux Server release 7.6 (Maipo) (VM OS)
ovirt-engine-4.2.8.9-0.1.el7ev.noarch

How reproducible
================
100%

Steps to Reproduce
==================
Provided in description

Actual results
==============
yum fails over dependency issues

Expected results
================
yum succeeds updating all packages marked for update

Comment 2 Martin Perina 2020-04-27 14:03:12 UTC
(In reply to msheena from comment #0)
> Description of problem
> ======================
> Given I have a VM with ovirt-engine-4.2.8.9-0.1.el7ev.noarch installed and
> deployed
> When I put a 4.3.10 yum repository on the VM
> And perform a `yum update`
> Then yum fails over dependency issues

Hmm, have you used the correct upgrade procedure?

1. Add 4.3 repos/channels
2. Run 'yum update engine\*setup\* rh\*vm\*setup\*'
3. Run 'engine-setup'
4. Run 'yum update'


More details at https://access.redhat.com/documentation/en-us/red_hat_virtualization/4.3/html/upgrade_guide/upgrading_the_manager_to_4-3_4-0_local_db

Comment 4 Michal Skrivanek 2020-04-28 04:25:19 UTC
yum update engine\*setup\* rh\*vm\*setup\*'

Comment 7 msheena 2020-04-28 06:21:56 UTC
Output for `yum versionlock status`
===================================

# yum versionlock status
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager, versionlock
This system is not registered with an entitlement server. You can use subscription-manager to register.
https://access.redhat.com/articles/1320623

If above article doesn't help to resolve this issue please open a ticket with Red Hat Support.

0:ovirt-engine-webadmin-portal-4.3.10-0.2.el7.*
0:ovirt-engine-tools-backup-4.3.10-0.2.el7.*
0:ovirt-engine-restapi-4.3.10-0.2.el7.*
0:ovirt-engine-dbscripts-4.3.10-0.2.el7.*
0:rhvm-4.3.10-0.2.el7.*
0:ovirt-engine-4.3.10-0.2.el7.*
0:ovirt-engine-backend-4.3.10-0.2.el7.*
0:ovirt-engine-tools-4.3.10-0.2.el7.*
versionlock status done

Comment 16 Martin Perina 2020-04-29 13:30:34 UTC
I have been able to successfully upgrade from 4.2.8.9 to 4.3.10-0.2 using following steps:

1. Install 4.2.8.9

  # yum install http://bob.eng.lab.tlv.redhat.com/builds/latest_4.2/rhv-release-latest-4.2.noarch.rpm
  # yum check-update
  # yum install rhvm
  # engine-setup

2. Upgrade to 4.3.10

  # yum install http://bob.eng.lab.tlv.redhat.com/builds/4.3/rhv-4.3.10-2/rhv-release-engine-latest-4.3.noarch.rpm
  # yum check-update
  # yum update ovirt\*setup\* rh\*vm-setup-plugins
  # engine-setup

There are still some OS updates which can updated afterwards using 'yum update', but the important thing is that upgrade went fine and I haven't seen any issues around missing packages. I have been staying on RHEL 7.7 all the time, so to be completely correct and perform even RHEL updates, you should do something like below:

1. Install RHEL 7.6 and update to latest 7.6.z

2. Install 4.2.8.9 (steps above)

3. Enable RHEL 7.y repos

4. Upgrade to 4.3.10 (steps above)

5. Update the rest of packages using yum update and reboot the machine