Bug 789891

Summary: jenkins client is never allowed to add again after a jenkins client embed failure
Product: OKD Reporter: Johnny Liu <jialiu>
Component: PodAssignee: Krishna Raman <kraman>
Status: CLOSED CURRENTRELEASE QA Contact: libra bugs <libra-bugs>
Severity: high Docs Contact:
Priority: high    
Version: 1.xCC: mfisher, xtian
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: 2012-02-17 02:06:51 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

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.