Bug 1062844

Summary: Should give a meaningful message when creating one app with an invalid manifest file
Product: OpenShift Container Platform Reporter: Nan Wei <nwei>
Component: NodeAssignee: Brenton Leanhardt <bleanhar>
Status: CLOSED ERRATA QA Contact: libra bugs <libra-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 2.0.0CC: abhgupta, adellape, bleanhar, jolamb, libra-onpremise-devel, xtian, zzhao
Target Milestone: ---Keywords: Regression, Reopened
Target Release: ---   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: rubygem-openshift-origin-controller-1.17.12.2-1.el6op Doc Type: Bug Fix
Doc Text:
Attempting to create an application using an invalid manifest produced an unhelpful error message. This bug fix improves the exception handling so that a more helpful error message is displayed when an invalid manifest is used.
Story Points: ---
Clone Of: 1036507 Environment:
Last Closed: 2014-02-25 15:48:08 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:
Embargoed:
Bug Depends On: 1036507    
Bug Blocks:    

Comment 1 Nan Wei 2014-02-08 08:33:55 UTC

*** This bug has been marked as a duplicate of bug 1062655 ***

Comment 3 Brenton Leanhardt 2014-02-10 13:49:51 UTC
The upstream fix for this is trivial so I'm proposing it for 2.0.3.  It does look like the code for this in 2.1 will be completely different since we will no longer need the cartridge cache.

Upstream commit

commit a012f7e3e7231ac56759dfbdd6868f8b8781a7b3
Author: Rajat Chopra <rchopra>
Date:   Tue Dec 3 14:19:48 2013 -0800

    fix bz1036507 - improve error message

Comment 7 Nan Wei 2014-02-11 08:08:48 UTC
openshift enterprise: 2014-02-10.2

[root@br215 ~]# rhc app-create testappa https://s3-eu-west-1.amazonaws.com/cpg.openshift.cartridges/bugrepro/diy-cart/manifffest.yml
The cartridge 'https://s3-eu-west-1.amazonaws.com/cpg.openshift.cartridges/bugrepro/diy-cart/manifffest.yml' will be downloaded and installed

Application Options
-------------------
Domain:     nweidomain
Cartridges: https://s3-eu-west-1.amazonaws.com/cpg.openshift.cartridges/bugrepro/diy-cart/manifffest.yml
Gear Size:  default
Scaling:    no

Creating application 'testappa' ... Invalid cartridge, error downloading from url 'https://s3-eu-west-1.amazonaws.com/cpg.openshift.cartridges/bugrepro/diy-cart/manifffest.yml'

Comment 9 errata-xmlrpc 2014-02-25 15:48:08 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2014-0209.html