Bug 1416011

Summary: RHEL based 3.6 HE to 4.0 upgrade with wrong appliance
Product: Red Hat Enterprise Virtualization Manager Reporter: Sarvesh Pandit <sapandit>
Component: rhevm-applianceAssignee: Yuval Turgeman <yturgema>
Status: CLOSED ERRATA QA Contact: Artyom <alukiano>
Severity: high Docs Contact:
Priority: urgent    
Version: 4.0.6CC: alukiano, dfediuck, didi, eheftman, gklein, lsvaty, lveyde, mgoldboi, rbarry, rmartins, stirabos
Target Milestone: ovirt-4.0.7Keywords: Triaged, ZStream
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Release Note
Doc Text:
Previously the name of the “rhevm-appliance” RPM contained only a timestamp, without versioning information. In this release, the Red Hat Virtualization release will now be included in the name of the “rhevm-appliance” RPM and will be visible from the node channel.
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-03-16 15:37:43 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Node RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1420283    

Description Sarvesh Pandit 2017-01-24 11:02:55 UTC
Description of problem:

RHEL based 3.6 HE to 4.0 upgrade with wrong appliance.

Version-Release number of selected component (if applicable):
rhevm-appliance-20170106.0-1.el7ev.noarch
rhevm-appliance-20161214.0-1.el7ev.noarch

How reproducible:
100%

Steps to Reproduce:
1. Deploy latest 3.6 HE
2. Try to upgrade it following - https://access.redhat.com/documentation/en/red-hat-virtualization/4.0/paged/self-hosted-engine-guide/53-upgrading-a-rhel-based-self-hosted-engine-environment
3. Run # yum update ovirt-hosted-engine-setup rhevm-appliance

Actual results:
Appliance upgraded to rhevm-appliance-20170106.0-1.el7ev.noarch

Expected results:
Appliance should be upgraded to rhevm-appliance-20161214.0-1.el7ev.noarch

Additional info:

[root@rhelh36 ~]# yum repolist
Loaded plugins: product-id, search-disabled-repos, subscription-manager
repo id                                                                                      repo name                                                                                                       status
!rhel-7-server-rhev-mgmt-agent-rpms/7Server/x86_64                                           Red Hat Enterprise Virtualization Management Agents for RHEL 7 (RPMs)                                              674
rhel-7-server-rpms/7Server/x86_64                                                            Red Hat Enterprise Linux 7 Server (RPMs)                                                                        13,815
repolist: 14,489

[root@rhelh36 ~]# subscription-manager repos --enable=rhel-7-server-rhv-4-mgmt-agent-rpms
Repository 'rhel-7-server-rhv-4-mgmt-agent-rpms' is enabled for this system.

[root@rhelh36 ~]# yum update ovirt-hosted-engine-setup rhevm-appliance
...
...
...
--> Finished Dependency Resolution

Dependencies Resolved

===================================================================================================================================================================================================================
 Package                                             Arch                             Version                                                  Repository                                                     Size
===================================================================================================================================================================================================================
Installing:
 ovirt-engine-sdk-python                             noarch                           3.6.9.1-1.el7ev                                          rhel-7-server-rhv-4-mgmt-agent-rpms                           484 k
     replacing  rhevm-sdk-python.noarch 3.6.9.1-1.el7ev
Updating:
 ovirt-hosted-engine-setup                           noarch                           2.0.4.1-2.el7ev                                          rhel-7-server-rhv-4-mgmt-agent-rpms                           321 k
 rhevm-appliance                                     noarch                           20170106.0-1.el7ev                                       rhel-7-server-rhev-mgmt-agent-rpms                            1.7 G

[root@rhelh36 ~]# yum list all | grep -i rhevm-appliance
rhevm-appliance.noarch               20160721.0-1.el7ev      @rhel-7-server-rhev-mgmt-agent-rpms
rhevm-appliance.noarch               20170106.0-1.el7ev      rhel-7-server-rhev-mgmt-agent-rpms

[root@rhelh36 ~]# yum install rhevm-appliance-20161214.0-1.el7ev.noarch.rpm
Loaded plugins: product-id, search-disabled-repos, subscription-manager
No package rhevm-appliance-20161214.0-1.el7ev.noarch.rpm available.
Error: Nothing to do

[root@rhelh36 ~]# yum repolist
Loaded plugins: product-id, search-disabled-repos, subscription-manager
repo id                                                                                      repo name                                                                                                       status
rhel-7-server-rhev-mgmt-agent-rpms/7Server/x86_64                                            Red Hat Enterprise Virtualization Management Agents for RHEL 7 (RPMs)                                              674
rhel-7-server-rhv-4-mgmt-agent-rpms/7Server/x86_64                                           Red Hat Virtualization 4 Management Agents for RHEL 7 (RPMs)                                                       181
rhel-7-server-rpms/7Server/x86_64                                                            Red Hat Enterprise Linux 7 Server (RPMs)                                                                        13,815
repolist: 14,670

Workaround:

[root@rhelh36 ~]# subscription-manager repos --disable=rhel-7-server-rhev-mgmt-agent-rpms
Repository 'rhel-7-server-rhev-mgmt-agent-rpms' is disabled for this system.

[root@rhelh36 ~]# yum list all | grep -i rhevm-appliance
rhevm-appliance.noarch               20160721.0-1.el7ev      @rhel-7-server-rhev-mgmt-agent-rpms
rhevm-appliance.noarch               20161214.0-1.el7ev      rhel-7-server-rhv-4-mgmt-agent-rpms

[root@rhelh36 ~]# yum update rhevm-appliance
Loaded plugins: product-id, search-disabled-repos, subscription-manager
Resolving Dependencies
--> Running transaction check
---> Package rhevm-appliance.noarch 0:20160721.0-1.el7ev will be updated
---> Package rhevm-appliance.noarch 0:20161214.0-1.el7ev will be an update
--> Finished Dependency Resolution

Then again need to subscribe rhel-7-server-rhev-mgmt-agent-rpms for roll back.

While upgrade process following step need to be replaced:
# yum update ovirt-hosted-engine-setup rhevm-appliance

# yum update ovirt-hosted-engine-setup 

Continue upgrade process.

Comment 1 Ryan Barry 2017-01-24 13:47:47 UTC
This looks like a dupe of https://bugzilla.redhat.com/show_bug.cgi?id=1414085

Comment 2 Sandro Bonazzola 2017-01-24 14:09:12 UTC
So we need to backport to 4.0 as well

Comment 3 Gonza 2017-03-02 13:43:37 UTC
Verified basic sanity under bz1414085

Comment 4 Lukas Svaty 2017-03-02 13:52:28 UTC
The rest should be tested with flow of Hosted Engine, changing QA contact. If you believe basic sanity of BZ#1414085 is sufficient feel free to move to VERIFIED.

Comment 5 Artyom 2017-03-02 16:38:41 UTC
I believe the sanity is enough the single problem can be with the --upgrade-appliance option that relevant for the upgrade from 3.6 to 4.0, but we still do not have the 3.6 appliances with the new name convention.

Comment 9 errata-xmlrpc 2017-03-16 15:37:43 UTC
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.

https://access.redhat.com/errata/RHSA-2017:0552