Bug 1025768

Summary: The 'rhc apps' fail after unsuccessful downloadable cartridge install
Product: OpenShift Online Reporter: Michal Fojtik <mfojtik>
Component: PodAssignee: Abhishek Gupta <abhgupta>
Status: CLOSED CURRENTRELEASE QA Contact: libra bugs <libra-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 2.xCC: jhou
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:28:31 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 Michal Fojtik 2013-11-01 14:04:19 UTC
Description of problem:

After I tried to add my own downloadable cartridge to an ruby-1.9 application, the application become unavailable and the 'rhc apps' command seems to be broken.

The cartridge I tried to add had an typo in install script (I forgot to source the BASH SDK), so the install script failed. How the application seems to have the cartridge assigned, even if the cartridge does not exists.


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

devenv

How reproducible:

Create an empty ruby-1.9 app and then add a broken downloadable cartridge to it.
If the install script in this downloadable cart fail, the 'rhc apps' prints this error:

~/ruby02 → rhc apps
Unable to complete the requested operation due to: The application 'ruby02' requires
'mfojtik-haproxystats-0.1' but a matching cartridge could not be found.

Steps to Reproduce:

1. $ rhc app create ruby02 -s ruby-1.9
2. $ rhc add-cartridge http://cartreflect-claytondev.rhcloud.com/reflect?github=mfojtik/openshift-origin-cartridge-haproxystats
3. $ rhc apps

Actual results:

Unable to complete the requested operation due to: The application 'ruby02' requires
'mfojtik-haproxystats-0.1' but a matching cartridge could not be found.

Expected results:

When the install script fail, the cartridge should not be registered to an app.

Additional info:

Comment 1 Abhishek Gupta 2013-11-13 19:40:17 UTC
This is now fixed.

Comment 2 Jianwei Hou 2013-11-14 02:26:45 UTC
Verified on devenv_4030, after install failure, the cartridge is not registered to the application.