Bug 966868 - Can not create app or add cartridge with vendorname-cartridgename-version via CLI
Can not create app or add cartridge with vendorname-cartridgename-version vi...
Status: CLOSED WONTFIX
Product: OpenShift Online
Classification: Red Hat
Component: Command Line Interface (Show other bugs)
2.x
Unspecified Unspecified
medium Severity medium
: ---
: ---
Assigned To: Clayton Coleman
libra bugs
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2013-05-24 03:34 EDT by Wei Sun
Modified: 2015-05-14 22:23 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2013-05-24 10:44:31 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Wei Sun 2013-05-24 03:34:02 EDT
Description of problem:
Try  to create app or add cartridge to app  with  vendorname-cartridgename-version ,for example ,run `rhc app create php redhat-php-5.3` , it  will show "There are no cartridges that match 'redhat-php-5.3'".
But can create and add cartridge with vendorname-cartridgename-version via RESTAPI .

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

How reproducible:
rhc 1.9.4
INT(devenv_3266)

Steps to Reproduce:
1.Create an app  with vendorname-cartridgename-version via CLI
2.Add cartridge to the app with vendorname-cartridgename-version via CLI
3.

Actual results:
openshift@openshift-ubuntu:~$ rhc app create php redhat-php-5.3
Short Name          Full name
==========          =========
10gen-mms-agent-0.1 10gen Mongo Monitoring Service Agent
cron-1.4            Cron 1.4
diy-0.1             Do-It-Yourself 0.1
jbossas-7           JBoss Application Server 7
jbosseap-6.0        JBoss Enterprise Application Platform 6.0
jenkins-client-1.4  Jenkins Client 1.4
jenkins-1.4         Jenkins Server 1.4
mongodb-2.2         MongoDB NoSQL Database 2.2
mysql-5.1           MySQL Database 5.1
nodejs-0.6          Node.js 0.6
metrics-0.1         OpenShift Metrics 0.1
haproxy-1.4         OpenShift Web Balancer
perl-5.10           Perl 5.10
php-5.3             PHP 5.3
phpmyadmin-3.4      phpMyAdmin 3.4
postgresql-8.4      PostgreSQL Database 8.4
python-2.6          Python 2.6
python-2.7          Python 2.7
python-3.3          Python 3.3
rockmongo-1.1       RockMongo 1.1
ruby-1.8            Ruby 1.8
ruby-1.9            Ruby 1.9
switchyard-0        SwitchYard 0
jbossews-1.0        Tomcat 6 (JBoss EWS 1.0)
jbossews-2.0        Tomcat 7 (JBoss EWS 2.0)
zend-5.6            Zend Server 5.6
There are no cartridges that match 'redhat-php-5.3'.
openshift@openshift-ubuntu:~$ rhc cartridge add redhat-mongodb-2.2 -a app1
Short Name          Full name
==========          =========
10gen-mms-agent-0.1 10gen Mongo Monitoring Service Agent
cron-1.4            Cron 1.4
jenkins-client-1.4  Jenkins Client 1.4
mongodb-2.2         MongoDB NoSQL Database 2.2
mysql-5.1           MySQL Database 5.1
metrics-0.1         OpenShift Metrics 0.1
haproxy-1.4         OpenShift Web Balancer
phpmyadmin-3.4      phpMyAdmin 3.4
postgresql-8.4      PostgreSQL Database 8.4
rockmongo-1.1       RockMongo 1.1
switchyard-0        SwitchYard 0
There are no cartridges that match 'redhat-mongodb-2.2'.

Expected results:
Can create app and add cartridge with vendorname-cartridgename-version via CLI

Additional info:
Comment 1 Clayton Coleman 2013-05-24 10:44:31 EDT
This is known and will not be supported.  We support exactly one cart name being returned via the REST API, and will only use that value.
Comment 3 Clayton Coleman 2013-05-24 11:20:38 EDT
The REST API will accept redhat carts with and without vendor, but the CLI will not expose it.  All legacy clients (any client built prior to V2 carts) will operate ONLY on the list of cartridge names returned from

  /broker/rest/cartridges

and all cartridges in that list have exactly one "name" attribute.

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