Bug 786354

Summary: `rhc-app` cannot recognize names of embed cartridges
Product: OKD Reporter: Linqing Lu <lilu>
Component: ocAssignee: Abhishek Gupta <abhgupta>
Status: CLOSED CURRENTRELEASE QA Contact: libra bugs <libra-bugs>
Severity: medium Docs Contact:
Priority: high    
Version: 1.xCC: gshipley
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-02-02 23:55:43 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Linqing Lu 2012-02-01 07:52:06 UTC
Description of problem:
when trying to embed cartrdges like mysql-5.1 into app via new `rhc-app` client tool, it cannot recognize names of embed cartridges

Version-Release number of selected component (if applicable):
devenv_1575
rhc-0.85.10-1.el6_2.noarch

How reproducible:


Steps to Reproduce:
1.
2.
3.
  
Actual results:
it returns "Cartridge name is required"

Expected results:
cartridges can be embedded like using rhc-ctl-app

Additional info:
[root@intel-q8200novt-8-6 python]# rhc app cartridge list

List of supported embedded cartridges:

Obtaining list of cartridges (please excuse the delay)...
mongodb-2.0, cron-1.4, mysql-5.1, postgresql-8.4, 10gen-mms-agent-0.1, phpmyadmin-3.4, metrics-0.1, phpmoadmin-1.0, rockmongo-1.1, jenkins-client-1.4

[root@intel-q8200novt-8-6 python]# rhc app cartridge add mysql-5.1 -a python
Cartridge name is required
Obtaining list of cartridges (please excuse the delay)...
......

Comment 1 Abhishek Gupta 2012-02-01 18:04:45 UTC
This is not a bug. You have specified an incorrect command format. The correct command format is:

rhc app cartridge add -a <app-name> -c <cartridge-name>

and so, in your case, you should run,

rhc app cartridge add -a python -c mysql-5.1


The usage description for "rhc app" lists the cartridge option:
 -c|--cartridge    cartridge    The embedded cartrige to manage (required for the cartridge command)

Comment 2 Linqing Lu 2012-02-02 03:04:56 UTC
yes, it works.
thanks for clarification!

Comment 3 Mrunal Patel 2012-02-02 23:55:43 UTC
Closing verified bugs.