Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1098544

Summary: On fresh OpenShift Enterprise 2.1 installation, rhc cartridges does not list any cartridges
Product: OpenShift Container Platform Reporter: Jan Pazdziora (Red Hat) <jpazdziora>
Component: DocumentationAssignee: Alex Dellapenta <adellape>
Status: CLOSED CURRENTRELEASE QA Contact: ecs-bugs
Severity: high Docs Contact:
Priority: unspecified    
Version: 2.1.0CC: adellape, baulakh, bleanhar, jeff.mccormick, jokerman, jpazdziora, juwu, libra-onpremise-devel, mmccomas
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-06-11 01:20:44 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:

Description Jan Pazdziora (Red Hat) 2014-05-16 14:09:35 UTC
Description of problem:

After fresh installation of OpenShift Enterprise 2.1 on RHEL 6.5 using openshift.sh, the rhc command does not list any cartridges even if rpm shows them installed.

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

# rpm -q openshift-enterprise-release openshift-origin-broker
openshift-enterprise-release-2.1.0-1.el6op.noarch
openshift-origin-broker-1.16.1.3-1.el6op.noarch

How reproducible:

Deterministic.

Steps to Reproduce:
1. Install OpenShift Enterprise 2.1 using openshift.sh.
2. Run rhc setup.
3. Run rhn cartridges to see what applications you could create.

Actual results:

# rhc cartridges

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

Expected results:

List of cartridges.

Additional info:

I do have the cartridges installed:

# rpm -qa | grep cartridge | sort
openshift-origin-cartridge-cron-1.21.2-1.el6op.noarch
openshift-origin-cartridge-dependencies-recommended-jbosseap-1.23.3.1-1.el6op.noarch
openshift-origin-cartridge-dependencies-recommended-jbossews-1.23.3.1-1.el6op.noarch
openshift-origin-cartridge-dependencies-recommended-nodejs-1.23.3.1-1.el6op.noarch
openshift-origin-cartridge-dependencies-recommended-perl-1.23.3.1-1.el6op.noarch
openshift-origin-cartridge-dependencies-recommended-php-1.23.3.1-1.el6op.noarch
openshift-origin-cartridge-dependencies-recommended-python-1.23.3.1-1.el6op.noarch
openshift-origin-cartridge-dependencies-recommended-ruby-1.23.3.1-1.el6op.noarch
openshift-origin-cartridge-diy-1.21.3.1-1.el6op.noarch
openshift-origin-cartridge-haproxy-1.23.5.3-1.el6op.noarch
openshift-origin-cartridge-jbosseap-2.16.3.4-1.el6op.noarch
openshift-origin-cartridge-jbossews-1.22.3.4-1.el6op.noarch
openshift-origin-cartridge-jenkins-1.20.3.3-1.el6op.noarch
openshift-origin-cartridge-jenkins-client-1.19.3-1.el6op.noarch
openshift-origin-cartridge-mysql-1.23.4.3-1.el6op.noarch
openshift-origin-cartridge-nodejs-1.24.3.3-1.el6op.noarch
openshift-origin-cartridge-perl-1.22.5.3-1.el6op.noarch
openshift-origin-cartridge-php-1.23.3.4-1.el6op.noarch
openshift-origin-cartridge-postgresql-1.23.3.3-1.el6op.noarch
openshift-origin-cartridge-python-1.23.4.3-1.el6op.noarch
openshift-origin-cartridge-ruby-1.23.3.3-1.el6op.noarch

Comment 2 Brenton Leanhardt 2014-05-16 14:32:10 UTC
It's going to depend how you install 2.1.  If you use oo-install from install.openshift.com it should run the necessary commands.  If you are using openshift.sh directly the following will need to be done:

oo-admin-ctl-cartridge -c import-node --activate --obsolete

In addition, for gears to be created a node must be added to a district.  If you simply need to do this for a test environment this command is useful:

oo-admin-ctl-district -p small -n default-small -c add-node --available

Let me know if this works around your problem.

Comment 7 Jan Pazdziora (Red Hat) 2014-05-20 16:16:39 UTC
(In reply to Brenton Leanhardt from comment #2)
> It's going to depend how you install 2.1.  If you use oo-install from
> install.openshift.com it should run the necessary commands.  If you are
> using openshift.sh directly the following will need to be done:
> 
> oo-admin-ctl-cartridge -c import-node --activate --obsolete
> 
> In addition, for gears to be created a node must be added to a district.  If
> you simply need to do this for a test environment this command is useful:
> 
> oo-admin-ctl-district -p small -n default-small -c add-node --available
> 
> Let me know if this works around your problem.

Adding oo-admin-ctl-cartridge -c import-node --activate --obsolete after creating the district and adding nodes to it (I do -c add-node -n small_district -i $node in a loop instead of --available) makes things pass. I wonder if add-node could have done that import-node as well, to avoid that extra steps in 2.1.

Thank you.

Comment 9 Luke Meyer 2014-05-20 20:09:28 UTC
(In reply to Jan Pazdziora from comment #7)

> Adding oo-admin-ctl-cartridge -c import-node --activate --obsolete after
> creating the district and adding nodes to it (I do -c add-node -n
> small_district -i $node in a loop instead of --available) makes things pass.
> I wonder if add-node could have done that import-node as well, to avoid that
> extra steps in 2.1.

set CONF_ACTIONS=do_all_actions,post_deploy

post_deploy does what you need. It is not part of the standard actions because it runs on the broker after you have your nodes up and running, and openshift.sh has no way to coordinate that. But if all you are doing is an all-in-one then that should work fine. For anything more interesting, you may want to look into oo-install.

Comment 14 Jeff McCormick 2014-05-22 13:34:21 UTC
*** Bug 1098639 has been marked as a duplicate of this bug. ***