Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1117288

Summary: [ upgrade] During upgrade 'redhat-support-plugin-rhev' package is not updated to latest version and remains with old version.
Product: Red Hat Enterprise Virtualization Manager Reporter: Prasad Mukhedkar <pmukhedk>
Component: ovirt-engine-setupAssignee: Jay Greguske <jgreguske>
Status: CLOSED ERRATA QA Contact: Pavel Stehlik <pstehlik>
Severity: urgent Docs Contact:
Priority: urgent    
Version: 3.4.0CC: acathrow, bazulay, didi, eedri, iheim, jgreguske, kroberts, lbopf, pmukhedk, Rhev-m-bugs, sbonazzo, scohen, yeylon
Target Milestone: ---Keywords: ZStream
Target Release: 3.4.1Flags: scohen: needinfo+
Hardware: x86_64   
OS: Linux   
Whiteboard: subeng
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Previously, after upgrading the Red Hat Enterprise Virtualization Manager to 3.4, the Red Hat support plugin GUI did not appear in the Administration Portal. This happened because the 'redhat-support-plugin-rhev' package was not being upgraded as a dependency during the RHEVM upgrade. Now, the yum group 'rhevm34' appears correctly in the RHN channel, and the support plugin is available in the GUI after upgrade.
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-07-29 16:24:40 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
upgrade logs none

Description Prasad Mukhedkar 2014-07-08 12:51:40 UTC
Description of problem:

After upgrading rhevm  to 3.4, Red Hat support plugin GUI does not appear in 
admin portal. redhat-support-plugin-rhev package doesn't get upgraded as dependency while upgrading rhevm which causes this issue.

Version-Release number of selected component (if applicable):
otopi-java-1.2.1-1.el6ev.noarch
rhevm-setup 3.3

How reproducible:
Always 

Steps to Reproduce:
1. Subscribe rhevm 3.4 channel and update rhevm-setup package.

2. Check currently installed 'redhat-support-plugin-rhev' package version and fire rhevm-setup and upgrade it to 3.4. 

3. Now check the redhat-support-plugin-rhev version and see if Red Hat support Plugin appears in Web-admin portal 

Actual results:
redhat-support-plugin-rhev will not get updated although the newer version is available in repo. RHEV3.4 look plugin files at different location than 3.3 causing plug-in to not appear in webadmin portal

Expected results:

redhat-support-plugin-rhev should get upgraded while upgraded 
Additional info:

Comment 1 Prasad Mukhedkar 2014-07-08 12:55:13 UTC
Created attachment 916363 [details]
upgrade logs

Comment 2 Keith Robertson 2014-07-09 06:18:24 UTC
One possible problem is that the RHEVM specfile has not been updated to include the 3.4 plugin.

Notice the following in rhevm-3.4.0-0.22.el6ev.noarch.rpm

- Requires: redhat-support-plugin-rhev >= 3.3.0-13

This is wrong and is possibly having an effect on the rhevm-upgrade script.

Comment 3 Yedidyah Bar David 2014-07-09 07:50:55 UTC
Generally, an upgrade should upgrade all the packages listed in the yum group 'rhevm34' (for 3.4).

It seems that this group did not exist on the upgrade whose log is attached to
the bug. This is a bit hard to see there, because we do not explicitly log
the yum groups found, but can be deduced from searching for:
otopi.plugins.ovirt_engine_setup.ovirt_engine_common.distro-rpm.packages.Plugin.packages

This function does:
    def packages(self):
        groups = [group['name'] for group in self.packager.queryGroups()]
        for entry in self.environment[
            osetupcons.RPMDistroEnv.PACKAGES_UPGRADE_LIST
        ]: 
            if 'group' in entry and entry['group'] in groups:
                self.packager.updateGroup(group=entry['group'])
            else:
                self.packager.installUpdate(packages=entry['packages'])

And the log says:

2014-07-08 01:30:16 DEBUG otopi.context context._executeMethod:138 Stage packages METHOD otopi.plugins.ovirt_engine_setup.ovirt_engine_common.distro-rpm.packages.Plugin.packages
2014-07-08 01:30:16 DEBUG otopi.plugins.otopi.packagers.yumpackager yumpackager.verbose:88 Yum queue package rhevm for install

So it seems (to me) that the yum group ('rhevm34') did not appear in the
list of existing yum groups as received from queryGroups() .

Prasad - can you please verify? What is the output of:

yum grouplist -v | grep -i rhev

Thanks.

Comment 8 Eyal Edri 2014-07-10 09:26:19 UTC
sean, can you please ack this?

Comment 10 Pavel Stehlik 2014-07-16 11:57:29 UTC
ok - av10.1 - redhat-support-plugin-rhev-3.4.0-4.el6ev.noarch

Comment 12 errata-xmlrpc 2014-07-29 16:24:40 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.

http://rhn.redhat.com/errata/RHBA-2014-0960.html