Bug 1099454

Summary: Upgrading from RHSC2.1 (Corbett) to RHSC3.0 (Denali) fails
Product: [Red Hat Storage] Red Hat Gluster Storage Reporter: Prasanth <pprakash>
Component: rhscAssignee: Darshan <dnarayan>
Status: CLOSED DUPLICATE QA Contact: Prasanth <pprakash>
Severity: high Docs Contact:
Priority: unspecified    
Version: rhgs-3.0CC: dpati, nlevinki, rhs-bugs, rhsc-qe-bugs
Target Milestone: ---Keywords: TestBlocker
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-05-20 12:36:25 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
ovirt-engine-setup-20140520162140.log none

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 ***