Bug 789891 - jenkins client is never allowed to add again after a jenkins client embed failure
Summary: jenkins client is never allowed to add again after a jenkins client embed fai...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OKD
Classification: Red Hat
Component: Pod
Version: 1.x
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: ---
Assignee: Krishna Raman
QA Contact: libra bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-02-13 08:04 UTC by Johnny Liu
Modified: 2014-06-18 07:24 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-02-17 02:06:51 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Johnny Liu 2012-02-13 08:04:24 UTC
Description of problem:
Create an app, try to embed jenkins client without jenkins server app created, that caused a failure on purpose. After create jenkins server app, embed jenkins client again, the error - "jenkins-client-1.4 already embedded" is thrown out.

Version-Release number of selected component (if applicable):
ruby-cloud-sdk-common-0.4.2-1.git.0.84af454.el6.noarch
rubygem-cloud-sdk-controller-0.4.2-1.git.0.14d41a6.el6.noarch
rubygem-cloud-sdk-node-0.4.2-1.git.0.688d091.el6.noarch
ruby-cloud-sdk-controller-0.4.2-1.git.0.14d41a6.el6.noarch
ruby-cloud-sdk-node-0.4.2-1.git.0.688d091.el6.noarch
rubygem-cloud-sdk-common-0.4.2-1.git.0.84af454.el6.noarch
rhc-broker-0.86.2-1.git.27.f8ff104.el6.noarch


How reproducible:
Always

Steps to Reproduce:
1. Create an app.
2. Try to embed jenkins client without jenkins server app created.
$ rhc-ctl-app -a phptest -e add-jenkins-client-1.4 -p xx
Problem reported from server. Response code was 500.
Re-run with -d for more information.

RESULT:
Jenkins server does not exist!  Please create with rhc-create-app -t jenkins-1.4
3. Create jenkins server app to meet the dependency.
4. Embed jenkins client again.
$ rhc-ctl-app -a phptest -e add-jenkins-client-1.4 -p xx

  
Actual results:
Even after meet the dependency, still fail to embed jenkins client.

$ rhc-ctl-app -a phptest -e add-jenkins-client-1.4 -p xx
Problem reported from server. Response code was 400.
Re-run with -d for more information.

RESULT:
jenkins-client-1.4 already embedded in 'phptest'



Expected results:
Jenkins client should embedded successfully.

Additional info:

Comment 1 Krishna Raman 2012-02-13 22:15:32 UTC
Fixed in #b54b2e802193aa2d5cb7b5c2d3f348a9746f1b96

For currently broken apps, do an explicit cartridge remove before retrying.

Comment 2 Xiaoli Tian 2012-02-14 06:49:45 UTC
(In reply to comment #1)
Verified this bug on devenv_1608 with rhc-cartridge-jenkins-client-1.4-0.20.2-1.el6_2.noarch.

It's fixed now.


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