Bug 1025768 - The 'rhc apps' fail after unsuccessful downloadable cartridge install
Summary: The 'rhc apps' fail after unsuccessful downloadable cartridge install
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OpenShift Online
Classification: Red Hat
Component: Pod
Version: 2.x
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: Abhishek Gupta
QA Contact: libra bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-11-01 14:04 UTC by Michal Fojtik
Modified: 2015-05-15 00:22 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-01-24 03:28:31 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

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.


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