Bug 1035168

Summary: old cartridge is not clean after update ose from 1.2 to 2.0
Product: OpenShift Container Platform Reporter: Johnny Liu <jialiu>
Component: Cluster Version OperatorAssignee: Jason DeTiberus <jdetiber>
Status: CLOSED CURRENTRELEASE QA Contact: libra bugs <libra-bugs>
Severity: high Docs Contact:
Priority: high    
Version: 2.0.0CC: bleanhar, gpei, jdetiber, libra-onpremise-devel
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-02-04 14:42:06 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:

Description Johnny Liu 2013-11-27 08:27:41 UTC
Description of problem:
After upgrade from 1.2 to 2.0, jbosseap-6.0, jenkins-1.4, jenkins-client-1.4 are still existing, they should be removed.

Version-Release number of selected component (if applicable):
openshift-enterprise-upgrade-node-2.0.0b-1.git.16.a0bff65.el6op.noarch
openshift-enterprise-release-2.0.0b-1.git.16.a0bff65.el6op.noarch

How reproducible:
Always

Steps to Reproduce:
1. Setup ose-1.2 env
2. Create some app on the node
3. Upgrade env from 1.2 to 2.0

Actual results:
$ rhc cartridge list
jbosseap-6.0       JBoss Enterprise Application Platform 6.0   web
jbosseap-6         JBoss Enterprise Application Platform 6.1.0 web
jenkins-1          Jenkins Server                              web
jenkins-1.4        Jenkins Server 1.4                          web
perl-5.10          Perl 5.10                                   web
php-5.3            PHP 5.3                                     web
python-2.6         Python 2.6                                  web
python-2.7         Python 2.7                                  web
ruby-1.8           Ruby 1.8                                    web
ruby-1.9           Ruby 1.9                                    web
jbossews-1.0       Tomcat 6 (JBoss EWS 1.0)                    web
jbossews-2.0       Tomcat 7 (JBoss EWS 2.0)                    web
diy-0.1            Do-It-Yourself 0.1                          web
cron-1.4           Cron 1.4                                    addon
jenkins-client-1   Jenkins Client                              addon
jenkins-client-1.4 Jenkins Client 1.4                          addon
mysql-5.1          MySQL 5.1                                   addon
postgresql-8.4     PostgreSQL 8.4                              addon
postgresql-9.2     PostgreSQL 9.2                              addon
haproxy-1.4        Web Load Balancer                           addon

You will see that old cartridges are still existing, e.g: jbosseap-6.0, jenkins-1.4, jenkins-client-1.4. 


Expected results:
jbosseap-6.0, jenkins-1.4, jenkins-client-1.4 should be removed from cartridge list.

Additional info:

Comment 2 Jason DeTiberus 2013-11-28 05:40:22 UTC
This is fixed in the latest pad: http://etherpad.corp.redhat.com/ose-2-0-upgrade-2013-11-27

Comment 3 Gaoyun Pei 2013-11-28 08:33:06 UTC
Verify this bug with
openshift-enterprise-release-2.0.0c-1.git.2.acc7a39.el6op.noarch
openshift-enterprise-upgrade-node-2.0.0c-1.git.2.acc7a39.el6op.noarch


After upgrade node from 1.2 to 2.0, check the cartridge list
[root@broker ~]# rhc cartridge list
jbosseap-6       JBoss Enterprise Application Platform 6.1.0 web
jenkins-1        Jenkins Server                              web
perl-5.10        Perl 5.10                                   web
php-5.3          PHP 5.3                                     web
python-2.6       Python 2.6                                  web
python-2.7       Python 2.7                                  web
ruby-1.8         Ruby 1.8                                    web
ruby-1.9         Ruby 1.9                                    web
jbossews-1.0     Tomcat 6 (JBoss EWS 1.0)                    web
jbossews-2.0     Tomcat 7 (JBoss EWS 2.0)                    web
diy-0.1          Do-It-Yourself 0.1                          web
cron-1.4         Cron 1.4                                    addon
jenkins-client-1 Jenkins Client                              addon
mysql-5.1        MySQL 5.1                                   addon
postgresql-8.4   PostgreSQL 8.4                              addon
postgresql-9.2   PostgreSQL 9.2                              addon
haproxy-1.4      Web Load Balancer                           addon

Note: Web cartridges can only be added to new applications.

jbosseap-6.0, jenkins-1.4, jenkins-client-1.4 were not in the list.