Bug 1020264

Summary: [JBT]Could not add cartridge to the app via JBoss Tools
Product: OpenShift Online Reporter: Wei Sun <wsun>
Component: MasterAssignee: Lili Nader <lnader>
Status: CLOSED CURRENTRELEASE QA Contact: libra bugs <libra-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 2.xCC: mfisher, rpenta, wjiang
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-01-24 03:24:54 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 Wei Sun 2013-10-17 11:09:09 UTC
Description of problem:
Create an application via JBossTools,and try to add cartridge to this app,but could not add it successfully.It shows error messages
"

    Could not embed cartridges for application ews1
    Could not request https://54.205.106.245/broker/rest/domain/wsunjbt3907/application/ews1/cartridges: Error in parameters. Cannot determine cartridge. Use 'cartridge'/'name'/'url'

"

This bug could not be reproduced on STG(devenv-stage_498)

Version-Release number of selected component (if applicable):
JBossTools-4.1.1.Alpha2
openshift plugin version : 2.5.1.Alpha2-v20130927-0359-B91
devenv_3907

How reproducible:
Always

Steps to Reproduce:
1.Create an application via JBossTools
2.Add cartridge to this cartridge via JBossTools
3.

Actual results:
Could not add cartridge to the app successfully

Expected results:
Could add cartridge to the app successfully

Additional info:
Check development.log

2013-10-17 07:00:46.453 [INFO ] Started POST "/broker/rest/domain/wsunjbt3907/application/ews1/cartridges" for 203.114.244.88 at 2013-10-17 07:00:46 -0400 (pid:21022)
2013-10-17 07:00:46.459 [INFO ] Processing by EmbCartController#create as JSON (pid:21022)
2013-10-17 07:00:46.459 [INFO ] Parameters: {"cartridge"=>{"name"=>"cron-1.4"}, "domain_id"=>"wsunjbt3907", "application_id"=>"ews1", "emb_cart"=>{"cartridge"=>{"name"=>"cron-1.4"}}} (pid:21022)
2013-10-17 07:00:46.460 [DEBUG] API version 1.2 (pid:21022)
2013-10-17 07:00:46.463 [DEBUG] SUCCESS ACTION=AUTHENTICATE USER_ID=525f7770c9083ac697000001 LOGIN=wsun IP=203.114.244.88 SCOPES=session Authenticated (pid:21022)
2013-10-17 07:00:46.467 [DEBUG] SUCCESS ACTION=ADD_APP_CARTRIDGE USER_ID=525f7770c9083ac697000001 LOGIN=wsun APP_UUID=525fb397c9083aa045000120 DOMAIN=wsunjbt3907 Error in parameters. Cannot determine cartridge. Use 'cartridge'/'name'/'url' (pid:21022)

Comment 1 Ravi Sankar 2013-10-17 21:41:23 UTC
Fixed in https://github.com/openshift/origin-server/pull/3919

Comment 2 weiwei jiang 2013-10-21 06:25:11 UTC
Tried on devenv_3921 with JBossTools-4.1.1.Alpha2, and work as normal. so verified this issue.