Bug 1063315

Summary: unable to create an app from custom cartridge manifest via REST
Product: OpenShift Online Reporter: Oleg Fayans <ofayans>
Component: MasterAssignee: Dan McPherson <dmcphers>
Status: CLOSED NOTABUG QA Contact: libra bugs <libra-bugs>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 1.xCC: amarecek, dmcphers
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-02-10 14:53:45 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:
Attachments:
Description Flags
my manifest none

Description Oleg Fayans 2014-02-10 13:46:43 UTC
Created attachment 861396 [details]
my manifest

Description of problem:
When I try to create an app from custom cartridge manifest, I get the following error:
The cartridge manifest at 'https://github.com/ofayans/openshift-custom-php/blob/master/metadata/manifest.yml' could not be downloaded: The cartridge manifest at 'https://github.com/ofayans/openshift-custom-php/blob/master/metadata/manifest.yml' must be smaller than 20480 bytes

The manifest's size is, however, only some 3 kilobytes


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

How reproducible:
always

Steps to Reproduce:
1. execute the following rest request:
curl -k -s -H "Content-Type: application/json" -u $ofayans1:redhat https://$OPENSHIFT_BROKER/broker/rest/domains/somedomain/applications -X POST -d '{"name":"app1","cartridges":{"url":"https://github.com/ofayans/openshift-custom-php/blob/master/metadata/manifest.yml"}}' | json_reformat

Actual results:
Error is returned

Expected results:
Should pass

Additional info:

Comment 1 Dan McPherson 2014-02-10 14:53:45 UTC
You need to use the raw form of the url.  Example:

https://raw.github.com/ofayans/openshift-custom-php/master/metadata/manifest.yml


On the page:

https://github.com/ofayans/openshift-custom-php/blob/master/metadata/manifest.yml

there is a button above and to the right of the content that saws RAW to link you to the contents of just the file.