Bug 807862

Summary: Failed to create jenkins app
Product: OKD Reporter: Chandrika Gole <cgole>
Component: PodAssignee: Rob Millner <rmillner>
Status: CLOSED CURRENTRELEASE QA Contact: Chandrika Gole <cgole>
Severity: high Docs Contact:
Priority: high    
Version: 2.xCC: mfisher, mshao, rmillner, xtian
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-04-13 18:32:18 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
broker log none

Description Chandrika Gole 2012-03-29 00:12:21 UTC
Created attachment 573493 [details]
broker log

Description of problem:

Tried to create a non-scalable jenkins app 
$ curl -k -X POST -H 'Accept: application/xml' -d name=myapp -d
cartridge=jenkins-1.4 --user cgole:foo
https://ip/broker/rest/domains/cgole/applications

<h1>Proxy Error</h1>
<p>The proxy server received an invalid
response from an upstream server.<br />
The proxy server could not handle the request <em><a href="/broker/rest/domains/cgole2xx/applications">POST&nbsp;/broker/rest/domains/cgole2xx/applications</a></em>.<p>
Reason: <strong>Error reading from remote server</strong></p></p>
<hr>

Attaching broker logs - 


Version-Release number of selected component (if applicable):
devenv_1677
rhc-0.89.7-1.el6_2.noarch
broker-0.89.4-1.el6_2.noarch
c--10gen-mms-agent-0.1-1.7.1-1.el6_2.noarch 
c--jenkins-1.4-0.89.2-1.el6_2.noarch 


How reproducible:
always

Steps to Reproduce:
1. Create a jenkins app.
curl -k -X POST -H 'Accept: application/xml' -d name=myapp -d
cartridge=jenkins-1.4 --user cgole:foo
https://ip/broker/rest/domains/cgole/applications

Actual results:
Fail to create jenkins app. I am able to create a php app using the same curl command on the same instance and that was successful.


Expected results:
Jenkins app should be created successfully/.

Additional info:

Comment 1 Rob Millner 2012-03-29 02:53:24 UTC
Can't reproduce on devenv_1679.

$ curl -k -u 'rmillner:none' -X POST -H 'Accept: application/xml' -d name=myapp -d cartridge=jenkins-1.4  https://184.73.41.95/broker/rest/domains/rmillner0007/applications

<?xml version="1.0" encoding="UTF-8"?>
<response>
  <status>created</status>
  <type>application</type>
  <version>1.0</version>
...
</response>



$ curl -k -u 'rmillner:none' -X POST -H 'Accept: application/xml' -d name=myrealapp -d cartridge=php-5.3  https://184.73.41.95/broker/rest/domains/rmillner0007/applications

<?xml version="1.0" encoding="UTF-8"?>
<response>
  <status>created</status>
  <type>application</type>
  <version>1.0</version>
...
</response>

Comment 2 Rob Millner 2012-03-29 03:00:30 UTC
Verified with the CLI tools.

$ rhc app create -p none -a myapp -t php-5.3 --enable-jenkins
Creating application: jenkins in rmillner0007
Now your new domain name is being propagated worldwide (this might take a minute)...
...
Successfully created application: myapp

$ cd myapp; echo "" >> README ; git commit -a -m 'foo'; git push
...
remote: SUCCESS
remote: New build has been deployed.
To ssh://04163c2cfae04e26b2badde458a9d569.rhcloud.com/~/git/myapp.git/
   62b0fb8..7d8e603  master -> master

Comment 3 Xiaoli Tian 2012-03-30 10:45:41 UTC
Verified it on devenv-stage_154, it works.