Bug 1039778

Summary: Downloadable size restriction is not realistic for jboss cartridges
Product: OpenShift Online Reporter: Scott M Stark <sstark>
Component: PodAssignee: Rajat Chopra <rchopra>
Status: CLOSED NOTABUG QA Contact: libra bugs <libra-bugs>
Severity: low Docs Contact:
Priority: unspecified    
Version: 2.xCC: 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-08 00:54:42 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 Scott M Stark 2013-12-10 00:54:23 UTC
Description of problem:
I am unable to access any jbossas type of cartridge due to the current 20k size restriction of the downloadable cartridge option, even though wget is able to download the contents zip file in less than a second. I would suggest a limit of 100k in size to allow for application server sized cartridges.


Version-Release number of selected component (if applicable):
[openshift@broker-11344 ~]$ rpm -qa | grep broker
rubygem-openshift-origin-msg-broker-mcollective-1.13.0.1-1.fc19.noarch
openshift-origin-broker-1.10.2.1-1.fc19.noarch
openshift-origin-broker-util-1.13.0.2-1.fc19.noarch

How reproducible:
Every time

Steps to Reproduce:
1. Either create an OpenShift origin environment or use the OpenShift online environment.
2. rhc create-app wildfly1 https://raw.github.com/starksm64/openshift-origin-cartridge-wildfly/master/metadata/manifest.yml
3.

Actual results:
[openshift@broker-11344 ~]$ rhc create-app wildfly1 https://raw.github.com/starksm64/openshift-origin-cartridge-wildfly/master/metadata/manifest.yml
The cartridge
'https://raw.github.com/starksm64/openshift-origin-cartridge-wildfly/master/metadata/manifest.yml'
will be downloaded and installed

Application Options
-------------------
  Namespace:  sstark
  Cartridges:
https://raw.github.com/starksm64/openshift-origin-cartridge-wildfly/master/metadata/manifest.yml
  Gear Size:  default
  Scaling:    no

Creating application 'wildfly1' ... 
Unable to complete the requested operation due to: Node execution failure (error
getting result from node)..
Reference ID: 9a4b8348356672dd04e39bae87d95216


Expected results:
Successful download of the cartridge and progress with completing the application creation.

Additional info:

[openshift@broker-11344 ~]$ wget https://github.com/starksm64/openshift-origin-cartridge-wildfly/archive/master.zip
--2013-12-09 19:40:01--  https://github.com/starksm64/openshift-origin-cartridge-wildfly/archive/master.zip
Resolving github.com (github.com)... 192.30.252.130
Connecting to github.com (github.com)|192.30.252.130|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://codeload.github.com/starksm64/openshift-origin-cartridge-wildfly/zip/master [following]
--2013-12-09 19:40:01--  https://codeload.github.com/starksm64/openshift-origin-cartridge-wildfly/zip/master
Resolving codeload.github.com (codeload.github.com)... 192.30.252.145
Connecting to codeload.github.com (codeload.github.com)|192.30.252.145|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 66089 (65K) [application/zip]
Saving to: ‘master.zip’

100%[======================================>] 66,089      --.-K/s   in 0.1s    

2013-12-09 19:40:02 (590 KB/s) - ‘master.zip’ saved [66089/66089]

Comment 1 Rajat Chopra 2013-12-10 21:25:50 UTC
The 20k restriction is for the cartridge manifest, and it seems reasonable. That limit does not apply on the actual cartridge contents. The wildfly cart mentioned in the bug seems to be fine wrt downloads.
However I see the errors while executing 'start'/'teardown' etc.


Error: Failed to execute: 'control start' for /var/lib/openshift/52a784c7ddd3fa421f000001/wildfly
CLIENT_MESSAGE: Starting wildfly cartridge
CLIENT_MESSAGE: Timed out waiting for http listening port

Also, permissions issue here on deconfigure -
/var/lib/openshift/52a784c7ddd3fa421f000001/wildfly/bin/teardown: is not executable

Comment 2 Dan McPherson 2014-02-08 00:54:42 UTC
Scott,

  Please reopen if you have issues other than the ones Rajat mentioned and let us know if you need help debugging why the cart isn't starting.