Bug 1099454 - Upgrading from RHSC2.1 (Corbett) to RHSC3.0 (Denali) fails
Summary: Upgrading from RHSC2.1 (Corbett) to RHSC3.0 (Denali) fails
Keywords:
Status: CLOSED DUPLICATE of bug 1095654
Alias: None
Product: Red Hat Gluster Storage
Classification: Red Hat Storage
Component: rhsc
Version: rhgs-3.0
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
: ---
Assignee: Darshan
QA Contact: Prasanth
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-05-20 10:58 UTC by Prasanth
Modified: 2015-05-13 17:18 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-05-20 12:36:25 UTC
Embargoed:


Attachments (Terms of Use)
ovirt-engine-setup-20140520162140.log (172.08 KB, text/x-log)
2014-05-20 10:58 UTC, Prasanth
no flags Details

Description Prasanth 2014-05-20 10:58:48 UTC
Created attachment 897531 [details]
ovirt-engine-setup-20140520162140.log

Description of problem:

Upgrading from RHSC2.1 to RHSC3.0 fails with the following error:

----------------
[root@ ]# rhsc-setup 
[ INFO  ] Stage: Initializing
[ ERROR ] Failed to execute stage 'Initializing': type object 'Const' has no attribute 'ACTION_UPGRADE'
[ INFO  ] Stage: Clean up
          Log file is located at /var/log/ovirt-engine/setup/ovirt-engine-setup-20140520162140.log
[ INFO  ] Generating answer file '/var/lib/ovirt-engine/setup/answers/20140520162143-setup.conf'
[ INFO  ] Stage: Pre-termination
[ INFO  ] Stage: Termination
[ ERROR ] Execution of setup failed
----------------


Following is what the setup log says:
----------------
2014-05-20 16:21:43 DEBUG otopi.context context._executeMethod:138 Stage init METHOD otopi.plugins.ovirt_engine_setup.distro-rhel.showupgradekb.Plugin._init
2014-05-20 16:21:43 DEBUG otopi.context context._executeMethod:152 method exception
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/otopi/context.py", line 142, in _executeMethod
    method['method']()
  File "/usr/share/ovirt-engine/setup/bin/../plugins/ovirt-engine-setup/distro-rhel/showupgradekb.py", line 55, in _init
    ] == osetupcons.Const.ACTION_UPGRADE and
AttributeError: type object 'Const' has no attribute 'ACTION_UPGRADE'
2014-05-20 16:21:43 ERROR otopi.context context._executeMethod:161 Failed to execute stage 'Initializing': type object 'Const' has no attribute 'ACTION_UPGRADE'
----------------

Version-Release number of selected component (if applicable):

# rpm -qa |grep rhsc
rhsc-backend-2.1.2-0.36.el6rhs.noarch
rhsc-setup-plugin-ovirt-engine-common-3.0.0-0.4.master.el6_5.noarch
rhsc-cli-2.1.2.3-2.el6rhs.noarch
rhsc-tools-2.1.2-0.36.el6rhs.noarch
rhsc-setup-3.0.0-0.4.master.el6_5.noarch
rhsc-doc-2.1.2-9.el6eng.noarch
rhsc-dbscripts-2.1.2-0.36.el6rhs.noarch
rhsc-lib-3.0.0-0.4.master.el6_5.noarch
rhsc-log-collector-2.1.2.0-0.3.el6rhs.noarch
rhsc-restapi-2.1.2-0.36.el6rhs.noarch
rhsc-webadmin-portal-2.1.2-0.36.el6rhs.noarch
rhsc-setup-plugin-ovirt-engine-3.0.0-0.4.master.el6_5.noarch
rhsc-branding-rhs-2.1.2-7.0.el6rhs.noarch
rhsc-2.1.2-0.36.el6rhs.noarch
redhat-access-plugin-rhsc-2.1.2-3.el6rhs.noarch
rhsc-setup-base-3.0.0-0.4.master.el6_5.noarch
rhsc-sdk-python-2.1.2.2-2.el6rhs.noarch
rhsc-setup-plugins-3.0.0-0.1.el6rhs.noarch


How reproducible: 100%


Steps to Reproduce:
1. Install RHSC2.1 GA bits from channel 

# rhn-channel -l
jbappplatform-6-x86_64-server-6-rpm
rhel-x86_64-server-6
rhel-x86_64-server-6-rhs-rhsc-2.1

2. Execute #rhsc-setup and add a few RHS2.1 nodes.

3. Add the following jenkins repos which has the latest RHSC3.0 bits:

 $ yum-config-manager --add http://jenkins.lab.eng.blr.redhat.com/rhsc/denali/brew/rhsc/
 $ yum-config-manager --add http://jenkins.lab.eng.blr.redhat.com/rhsc/denali/brew/nagios/

Ref: http://rhsm.pad.engineering.redhat.com/nagios-release-denali-milestone-2?


Now follow the upgrade steps as given below:

1. Check for rhsc updates using # rhsc-upgrade-check

It should show the following:

------------------
[root@localhost /]# rhsc-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    - otopi-1.1.2-1.el6ev.noarch
VERB:     update     - otopi-1.2.0-1.el6ev.noarch
VERB:     updated    - otopi-java-1.1.2-1.el6ev.noarch
VERB:     update     - otopi-java-1.2.0-1.el6ev.noarch
VERB:     updated    - rhsc-lib-2.1.2-0.36.el6rhs.noarch
VERB:     update     - rhsc-lib-3.0.0-0.4.master.el6_5.noarch
VERB:     updated    - rhsc-setup-2.1.2-0.36.el6rhs.noarch
VERB:     update     - rhsc-setup-3.0.0-0.4.master.el6_5.noarch
VERB:     install    - rhsc-setup-base-3.0.0-0.4.master.el6_5.noarch
VERB:     install    - rhsc-setup-plugin-ovirt-engine-3.0.0-0.4.master.el6_5.noarch
VERB:     install    - rhsc-setup-plugin-ovirt-engine-common-3.0.0-0.4.master.el6_5.noarch
VERB:     install    - rhsc-setup-plugins-3.0.0-0.1.el6rhs.noarch
Upgrade available
------------------

2. Now execute # yum update rhsc-setup --nogpgcheck
3. Execute # rhsc-setup (which should upgrade rhsc to the latest available release)

Actual results: Upgrade fails with an error as mentioned above.


Expected results: Upgrade from an existing production setup installed with RHSC2.1 (Corbett) GA bits to the latest RHSC3.0 (Denali) bits should be succesful. 

If the upgrade process has changed in the latest release, we need to document it accordigly.


Additional info: engine-setup log is attached.

Comment 2 Darshan 2014-05-20 12:36:25 UTC

*** This bug has been marked as a duplicate of bug 1095654 ***


Note You need to log in before you can comment on or make changes to this bug.