Bug 1036507 - Should give a meaningful message when creating one app with an invalid manifest file
Summary: Should give a meaningful message when creating one app with an invalid manife...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OpenShift Online
Classification: Red Hat
Component: Pod
Version: 2.x
Hardware: All
OS: All
medium
medium
Target Milestone: ---
: ---
Assignee: Rajat Chopra
QA Contact: libra bugs
URL:
Whiteboard:
Depends On:
Blocks: 1062844
TreeView+ depends on / blocked
 
Reported: 2013-12-02 07:54 UTC by zhaozhanqi
Modified: 2015-05-15 00:23 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1062844 (view as bug list)
Environment:
Last Closed: 2014-02-26 19:08:38 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
development.log (12.24 KB, text/x-log)
2013-12-02 07:55 UTC, zhaozhanqi
no flags Details

Description zhaozhanqi 2013-12-02 07:54:19 UTC
Description of problem:
Creating one app with an invalid manifest file, the message prompted is not clearly.

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

How reproducible:
always

Steps to Reproduce:
1. Creating one app with an invalid manifest file
rhc app-create testappa https://s3-eu-west-1.amazonaws.com/cpg.openshift.cartridges/bugrepro/diy-cart/manifffest.yml

Actual results:
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:     zqd
Cartridges: https://s3-eu-west-1.amazonaws.com/cpg.openshift.cartridges/bugrepro/diy-cart/manifffest.yml
Gear Size:  default
Scaling:    no

Creating application 'testappa' ... 
Unable to complete the requested operation due to: unexpected response: #<HTTP::Message::Headers:0x0000000758f6b8 @http_version="1.1", @body_size=0, @chunked=false, @request_method="GET", @request_uri=#<URI::HTTPS:0x0000000758fc80
URL:https://s3-eu-west-1.amazonaws.com/cpg.openshift.cartridges/bugrepro/diy-cart/manifffest.yml>, @request_query=nil, @request_absolute_uri=nil, @status_code=404, @reason_phrase="Not Found", @body_type=nil, @body_charset=nil,
@body_date=nil, @body_encoding=#<Encoding:ASCII-8BIT>, @is_request=false, @header_item=[["x-amz-request-id", "634736BE522B8F90"], ["x-amz-id-2", "504nXjnMtk7C1oBWfVEy2D4QCzKPVM4+vuROGI6JlU4wk+VQRraIIxBkQuM76oZN"], ["Content-Type",
"application/xml"], ["Transfer-Encoding", "chunked"], ["Date", "Mon, 02 Dec 2013 06:47:08 GMT"], ["Server", "AmazonS3"]], @dumped=false>.
Reference ID: 2d23328b5b9f0e831203a8d9e5273ded


Expected results:
Should give a meaningful message like: 

Creating application 'testapp' ... Invalid manifest file from url 'https://s3-eu-west-1.amazonaws.com/cpg.openshift.cartridges/bugrepro/diy-cart/manifffest.yml'

Additional info:

Comment 1 zhaozhanqi 2013-12-02 07:55:08 UTC
Created attachment 831468 [details]
development.log

Comment 2 Abhishek Gupta 2013-12-02 18:52:30 UTC
Do we handle 404s (missing manifest files)?

Comment 3 Rajat Chopra 2013-12-03 22:23:38 UTC
Fixed with https://github.com/openshift/origin-server/pull/4281

Comment 4 zhaozhanqi 2013-12-04 09:17:33 UTC
Tested this bug on devenv_4093, it has been fixed

Creating application 'testappa' ... Bad response (404) from url - https://s3-eu-west-1.amazonaws.com/cpg.openshift.cartridges/bugrepro/diy-cart/manifffest.yml

mark it to 'verified'


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