Created attachment 861879 [details] setup logs Description of problem: Scenario: - there's newer redhat-support-plugin-rhev and engine-setup should upgrade it. It should called update on RHEVM YUM group, but /usr/share/ovirt-engine/setup/ovirt_engine_setup/constants.py has 'UPGRADE_YUM_GROUP = 'rhevm33' and this YUM group is not found. engine-setup falls back to yum update rhevm style but this does not update redhat-support-plugin-rhev. sbonazzo@ found that it is problem between 'rhevm33' and 'RHEV Manager' names. Changing UPGRADE_YUM_GROUP to 'RHEV Manager' made engine-setup update the plugin. 17:17 < sbonazzo> jbelka: since we call yum groups update rhevm33 ... 17:18 < sbonazzo> jbelka: as I said, it's not called because not found, so fallback on yum update rhevm ... 17:23 < sbonazzo> jbelka: found the bug: it compares group name "RHEV Manager" against its id "rhevm33" :-/ [root@pb-rh33 ~]# egrep 'RHEV Manager|redhat-support-plugin' /var/log/ovirt-engine/setup/ovirt-engine-setup-20140211172614.log 2014-02-11 17:26:27 DEBUG otopi.plugins.ovirt_engine_setup.distro-rpm.packages packages.verbose:177 Yum: queue group RHEV Manager for update 2014-02-11 17:26:29 DEBUG otopi.plugins.ovirt_engine_setup.distro-rpm.packages packages.verbose:177 Yum: group RHEV Manager queued 2014-02-11 17:26:29 DEBUG otopi.plugins.ovirt_engine_setup.distro-rpm.packages packages.verbose:177 Yum: updated - redhat-support-plugin-rhev-3.3.0-13.el6ev.noarch 2014-02-11 17:26:29 DEBUG otopi.plugins.ovirt_engine_setup.distro-rpm.packages packages.verbose:177 Yum: update - redhat-support-plugin-rhev-3.3.0-14.el6ev.noarch 2014-02-11 17:26:29 DEBUG otopi.plugins.ovirt_engine_setup.distro-rpm.packages packages._checkForProductUpdate:240 PACKAGE: [updated] redhat-support-plugin-rhev-3.3.0-13.el6ev.noarch 2014-02-11 17:26:29 DEBUG otopi.plugins.ovirt_engine_setup.distro-rpm.packages packages._checkForProductUpdate:240 PACKAGE: [update] redhat-support-plugin-rhev-3.3.0-14.el6ev.noarch 2014-02-11 17:26:30 DEBUG otopi.plugins.ovirt_engine_setup.distro-rpm.packages packages._checkForProductUpdate:254 dupes: operation [available] package redhat-support-plugin-rhev-3.3.0-14.el6ev.noarch 2014-02-11 17:26:30 DEBUG otopi.plugins.ovirt_engine_setup.distro-rpm.packages packages._checkForProductUpdate:254 dupes: operation [installed] package redhat-support-plugin-rhev-3.3.0-13.el6ev.noarch 2014-02-11 17:26:30 DEBUG otopi.plugins.ovirt_engine_setup.distro-rpm.packages packages._checkForProductUpdate:254 dupes: operation [reinstall_available] package redhat-support-plugin-rhev-3.3.0-13.el6ev.noarch 2014-02-11 17:26:30 DEBUG otopi.plugins.ovirt_engine_setup.distro-rpm.packages packages._checkForProductUpdate:254 dupes: operation [available] package redhat-support-plugin-rhev-3.3.0-14.el6ev.noarch 2014-02-11 17:26:30 DEBUG otopi.plugins.ovirt_engine_setup.distro-rpm.packages packages._checkForProductUpdate:254 dupes: operation [installed] package redhat-support-plugin-rhev-3.3.0-13.el6ev.noarch 2014-02-11 17:26:30 DEBUG otopi.plugins.ovirt_engine_setup.distro-rpm.packages packages._checkForProductUpdate:254 dupes: operation [reinstall_available] package redhat-support-plugin-rhev-3.3.0-13.el6ev.noarch 2014-02-11 17:26:37 DEBUG otopi.context context.dumpEnvironment:456 ENV OSETUP_RPMDISTRO/versionLockFilter=list:'['rhevm', 'redhat-support-plugin-rhev']' Version-Release number of selected component (if applicable): rhevm-setup-3.3.0-0.46.el6ev.noarch How reproducible: 100% Steps to Reproduce: 1. have a repo with newer redhat-support-plugin-rhev 2. engine-setup 3. Actual results: redhat-support-plugin-rhev is not updated as engine-setup does not find valid YUM group and falls back to metapackage update Expected results: work Additional info:
This code hasn't been changed since 3.2, so either it was never tested, or the groups within the channel changed. Nevertheless I suggest to apply this since 3.3.z.
Fail, upgrade from av2.1 to av3 did not use yum group. # yum repolist -v | sed -n '/av3/,/^$/p' Repo-id : av3 Repo-name : av3 Repo-revision: 1394971743 Repo-updated : Sun Mar 16 13:06:47 2014 Repo-pkgs : 111 Repo-size : 1.3 G Repo-baseurl : http://bob.eng.lab.tlv.redhat.com/builds/av3/ Repo-expire : 21,600 second(s) (last: Mon Mar 17 13:03:10 2014) # yum grouplist -v | grep -i rhev RHEV Manager (rhevm33) # grep 'group.*rhevm' /var/log/ovirt-engine/setup/ovirt-engine-setup-20140317130251.log 2014-03-17 13:03:02 DEBUG otopi.context context.dumpEnvironment:478 ENV OVESETUP_RPMDISTRO/packagesUpgradeList=list:'[{'packages': ['rhevm'], 'group': 'rhevm34'}]' 2014-03-17 13:03:38 DEBUG otopi.context context.dumpEnvironment:478 ENV OVESETUP_RPMDISTRO/packagesUpgradeList=list:'[{'packages': ['rhevm'], 'group': 'rhevm34'}]' 2014-03-17 13:09:30 DEBUG otopi.context context.dumpEnvironment:478 ENV OVESETUP_RPMDISTRO/packagesUpgradeList=list:'[{'packages': ['rhevm'], 'group': 'rhevm34'}]' # grep 'YUM.*GROUP' /usr/share/ovirt-engine/setup/ovirt_engine_setup/constants.py UPGRADE_YUM_GROUP = 'ovirt-engine-3.4'
Created attachment 875487 [details] ovirt-engine-setup-20140317130251.log
(In reply to Jiri Belka from comment #5) > Fail, upgrade from av2.1 to av3 did not use yum group. > > # yum repolist -v | sed -n '/av3/,/^$/p' > Repo-id : av3 > Repo-name : av3 > Repo-revision: 1394971743 > Repo-updated : Sun Mar 16 13:06:47 2014 > Repo-pkgs : 111 > Repo-size : 1.3 G > Repo-baseurl : http://bob.eng.lab.tlv.redhat.com/builds/av3/ > Repo-expire : 21,600 second(s) (last: Mon Mar 17 13:03:10 2014) > > # yum grouplist -v | grep -i rhev > RHEV Manager (rhevm33) This is a bug in the repo. Should be 'rhevm34'. Eyal? > > # grep 'group.*rhevm' > /var/log/ovirt-engine/setup/ovirt-engine-setup-20140317130251.log > 2014-03-17 13:03:02 DEBUG otopi.context context.dumpEnvironment:478 ENV > OVESETUP_RPMDISTRO/packagesUpgradeList=list:'[{'packages': ['rhevm'], > 'group': 'rhevm34'}]' > 2014-03-17 13:03:38 DEBUG otopi.context context.dumpEnvironment:478 ENV > OVESETUP_RPMDISTRO/packagesUpgradeList=list:'[{'packages': ['rhevm'], > 'group': 'rhevm34'}]' > 2014-03-17 13:09:30 DEBUG otopi.context context.dumpEnvironment:478 ENV > OVESETUP_RPMDISTRO/packagesUpgradeList=list:'[{'packages': ['rhevm'], > 'group': 'rhevm34'}]' This is ok > > # grep 'YUM.*GROUP' > /usr/share/ovirt-engine/setup/ovirt_engine_setup/constants.py > UPGRADE_YUM_GROUP = 'ovirt-engine-3.4' It's rewritten by rhevm-setup-plugins, look there
otopi and engine are two separate components. When you find an issue with ovirt-engine, please open a bug on ovirt-engine and not reopen bugs. Worse case we mark a bug as duplicate. This bug was to detect groups based on id and not name, which was indeed otopi miniyum issue.
ok, av3. I modified repodata on our builds mirror and engine-setup reported in the log using rhevm34 yum group.
Closing as part of 3.4.0