Description of problem: Following error is seen while running rhsc-check-update -------------------- [root@qa-vm13 /]# rhsc-check-update Error: Upgrade failed. please check log at /var/log/ovirt-engine/ovirt-engine-upgrade_2013_06_13_15_28_32.log [root@qa-vm13 /]# cat /var/log/ovirt-engine/ovirt-engine-upgrade_2013_06_13_15_28_32.log 2013-06-13 15:28:32::DEBUG::common_utils::827::root:: found existing pgpass file /etc/ovirt-engine/.pgpass, fetching DB host value 2013-06-13 15:28:32::DEBUG::common_utils::827::root:: found existing pgpass file /etc/ovirt-engine/.pgpass, fetching DB port value 2013-06-13 15:28:32::DEBUG::common_utils::827::root:: found existing pgpass file /etc/ovirt-engine/.pgpass, fetching DB user value 2013-06-13 15:28:32::DEBUG::common_utils::347::root:: YUM: VERB: Loaded plugins: product-id, rhnplugin, versionlock 2013-06-13 15:28:35::DEBUG::common_utils::347::root:: YUM: VERB: This system is receiving updates from RHN Classic or RHN Satellite. 2013-06-13 15:28:35::DEBUG::common_utils::347::root:: YUM: VERB: Repository JBOSS6.1.0 is listed more than once in the configuration 2013-06-13 15:28:35::DEBUG::common_utils::347::root:: YUM: VERB: Repository JBEAP-6_6.0.1 is listed more than once in the configuration 2013-06-13 15:28:35::DEBUG::common_utils::347::root:: YUM: VERB: Repository rhel-source is listed more than once in the configuration 2013-06-13 15:28:35::DEBUG::common_utils::347::root:: YUM: VERB: Repository rhel-source-beta is listed more than once in the configuration 2013-06-13 15:28:35::INFO::engine-upgrade::1283::root:: Info: /etc/ovirt-engine/.pgpass file found. Continue. 2013-06-13 15:28:35::DEBUG::common_utils::456::root:: Executing command --> '/bin/rpm -q rhevm' in working directory '/' 2013-06-13 15:28:35::DEBUG::common_utils::494::root:: output = package rhevm is not installed 2013-06-13 15:28:35::DEBUG::common_utils::495::root:: stderr = 2013-06-13 15:28:35::DEBUG::common_utils::496::root:: retcode = 1 2013-06-13 15:28:35::ERROR::engine-upgrade::1523::root:: Traceback (most recent call last): File "/usr/share/ovirt-engine/scripts/engine-upgrade.py", line 1516, in <module> main(options) File "/usr/share/ovirt-engine/scripts/engine-upgrade.py", line 1286, in main if isUpdateFrom30(): File "/usr/share/ovirt-engine/scripts/engine-upgrade.py", line 937, in isUpdateFrom30 msg=output_messages.ERR_READ_RPM_VER % "rhevm", File "/usr/share/ovirt-engine/scripts/common_utils.py", line 499, in execCmd raise Exception(msg) Exception: Error reading version number for package rhevm -------------------- Version-Release number of selected component (if applicable): Red Hat Storage Console Version: 2.1.0-0.bb3.el6rhs How reproducible: Always Steps to Reproduce: 1. Execute rhsc-check-update from the engine 2. 3. Actual results: rhsc-check-update is failing as it's actually trying to check the update for rhevm version and not rhsc Expected results: rhsc-upgrade should work as expected
Triage : Remove the cmd in Corbett or give a proper error msg
"rhsc-check-update" tool was actually working fine in RHS-C 2.0 techpreview1-5, when a newer version is available in the channel. See below: ---------------------- [root@vm11 ~]# rpm -qa|grep rhsc rhsc-dbscripts-2.0.techpreview1-5.el6rhs.noarch rhsc-userportal-2.0.techpreview1-5.el6rhs.noarch rhsc-notification-service-2.0.techpreview1-5.el6rhs.noarch rhsc-backend-2.0.techpreview1-5.el6rhs.noarch rhsc-config-2.0.techpreview1-5.el6rhs.noarch rhsc-jboss-deps-2.0.techpreview1-5.el6rhs.noarch rhsc-sdk-3.1.0.2-1alpha.el6rhs.noarch rhsc-webadmin-portal-2.0.techpreview1-5.el6rhs.noarch rhsc-genericapi-2.0.techpreview1-5.el6rhs.noarch rhsc-2.0.techpreview1-5.el6rhs.noarch rhsc-restapi-2.0.techpreview1-5.el6rhs.noarch rhsc-tools-common-2.0.techpreview1-5.el6rhs.noarch rhsc-log-collector-2.0-1.el6rhs.noarch rhsc-setup-2.0.techpreview1-5.el6rhs.noarch [root@vm11 ~]# rhn-channel -l jbappplatform-6-x86_64-server-6-rpm rhel-x86_64-server-6 rhel-x86_64-server-6-rhs-rhsc-2.0 rhel-x86_64-server-6-rhs-rhsc-2.1 [root@vm11 ~]# rhsc-check-update Loaded plugins: product-id, rhnplugin, versionlock This system is receiving updates from RHN Classic or RHN Satellite. Checking for updates... (This may take several minutes) 7 Updates available: * rhsc-2.1.0-0.bb10.el6rhs.noarch * rhsc-backend-2.1.0-0.bb10.el6rhs.noarch * rhsc-dbscripts-2.1.0-0.bb10.el6rhs.noarch * rhsc-log-collector-2.1-0.1.el6rhs.noarch * rhsc-restapi-2.1.0-0.bb10.el6rhs.noarch * rhsc-setup-2.1.0-0.bb10.el6rhs.noarch * rhsc-webadmin-portal-2.1.0-0.bb10.el6rhs.noarch ---------------------- So not sure what recent changes had broken the tool in RHS-C 2.1,
Targeting for 2.1.z U2 (Corbett) release.
Darshan, I'm reassigning to you as you were looking into this.
This issue is fixed in the build CB2. rhsc-check-update command is obsoleted by engine-upgrade-check in this version. Fix: Add the repo for CB2, run yum update. This will update the package rhsc-setup where the issue is fixed. Now engine-upgrade-check command will work as expected.
Verified. [root@vm09 ]# rhsc-check-update rhsc-check-update is obsoleted by engine-upgrade-check. please run engine-upgrade-check for upgrading product or update settings. [root@vm09 ]# engine-upgrade-check VERB: queue package rhsc-setup for update VERB: package rhsc-setup queued VERB: Building transaction VERB: Transaction built VERB: Transaction Summary: VERB: updated - rhsc-lib-2.1.1-0.0.2.master.el6ev.noarch VERB: update - rhsc-lib-2.1.1-0.0.3.master.el6ev.noarch VERB: updated - rhsc-setup-2.1.1-0.0.2.master.el6ev.noarch VERB: update - rhsc-setup-2.1.1-0.0.3.master.el6ev.noarch Upgrade available
Please review the edited DocText and confirm.
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/RHEA-2014-0208.html