This bug is fixed in upstream, but not merged in enterprise, clone this bug to track. Version-Release number of selected component (if applicable): rhc-1.0.6 http://buildvm-devops.usersys.redhat.com/puddle/build/OpenShiftEnterprise/1.1.x/2012-12-09.1 Steps to reproduce: 1.Check commander version. Only install 4.0.3. # gem uninstall -ax commander # gem install -v 4.0.3 commander 2.Install the latest rhc client of stage branch via yum. For now, it's 1.0.6. # yum install rhc 3.Create an app using --enable-jenkins, but don't specify the jenkins server name. # rhc app create app1 python-2.6 --enable-jenkins -d -p redhat 4.Install commander 4.1.2. # gem install -v 4.1.2 commander 5.Try step3 again. Actual Results: 3.The jenkins server app won't be created 5.The jenkins server app will be created Additional info: If the user installs rhc client via gem, the latest commander 4.1.2 will be installed. In this case, this bug won't occur. +++ This bug was initially created as a clone of Bug #878407 +++ Description of problem: Create an app using option --enable-jenkins, but don't specify the jenkins server name. The jenkins server app can't be created. But the jenkins server could be created successfully if specifying name like: rhc app create app1 python-2.6 --enable-jenkins jenkins1 Version-Release number of selected component (if applicable): stage(devenv-stage_257) rhc-1.1.10 How reproducible: Always Steps to Reproduce: 1.Create an app using --enable-jenkins, but don't specify the jenkins server name. # rhc app create app1 python-2.6 --enable-jenkins -d -p redhat 2. 3. Actual results: Only the python app is created, jenkins server is not created, and jenkins client is not added. # rhc domain show Applications in jizhao41 ======================== app1 @ http://app1-jizhao41.dev.rhcloud.com/ ============================================ Application Info ================ UUID = 5fc7e0d1d9c84ef694dd574631f568d4 Git URL = ssh://5fc7e0d1d9c84ef694dd574631f568d4.rhcloud.com/~/git/app1.git/ SSH URL = ssh://5fc7e0d1d9c84ef694dd574631f568d4.rhcloud.com Created = 6:01 AM Gear Size = small Cartridges ========== python-2.6 Expected results: The jenkins server app should be created and jenkins-client should be embedded to the app. Additional info: --- Additional comment from Fabiano Franz on 2012-11-21 01:53:08 CST --- Which version are you using (rhc --version)? It indeed happens in the one currently in prod but was fixed already (I just confirmed it by testing on 1.0.4 and 1.2.1 with the same command line provided). --- Additional comment from xiaoli on 2012-11-21 09:08:05 CST --- Guess he was using an old rhc version. Confirmed with rhc (1.1.10) in stage , it works: #rhc app create phpapp1 php-5.3 --enable-jenkins -l xtian+int1 Creating application 'phpapp1' ============================== Namespace: domxstg1 Cartridge: php-5.3 Gear Size: default Scaling: no Jenkins domain name is being propagated worldwide (this might take a minute)... Your application's domain name is being propagated worldwide (this might take a minute)... Cloning into 'phpapp1'... done phpapp1 @ http://phpapp1-domxstg1.stg.rhcloud.com/ ================================================== Application Info ================ Created = 8:02 PM UUID = bf4aea8db90b49d59170b7fd9766636a Gear Size = small Git URL = ssh://bf4aea8db90b49d59170b7fd9766636a.rhcloud.com/~/git/phpapp1.git/ SSH URL = ssh://bf4aea8db90b49d59170b7fd9766636a.rhcloud.com Cartridges ========== php-5.3 jenkins-client-1.4 = https://jenkins-domxstg1.stg.rhcloud.com/job/phpapp1-build/ RESULT: Application phpapp1 was created. Application jenkins was created. Jenkins created successfully. Please make note of these credentials: User: admin Password: SWLVIs3B1NMx Note: You can change your password at: https://jenkins-domxstg1.stg.rhcloud.com/me/configure --- Additional comment from on 2012-11-21 15:16:46 CST --- The version of gem package "commander" provided in our yum repo is 4.0.3, which causes the problem. After upgrading commander version to latest 4.1.2, --enable-jenkins option works fine. Steps to reproduce: 1.Check commander version. Only install 4.0.3. # gem uninstall -ax commander # gem install -v 4.0.3 commander 2.Install the latest rhc client of stage branch via yum. For now, it's 1.1.10. # yum install rhc 3.Create an app using --enable-jenkins, but don't specify the jenkins server name. # rhc app create app1 python-2.6 --enable-jenkins -d -p redhat 4.Install commander 4.1.2. # gem install -v 4.1.2 commander 5.Try step3 again. Actual Results: 3.The jenkins server app won't be created 5.The jenkins server app will be created Additional info: If the user installs rhc client via gem, the latest commander 4.1.2 will be installed. In this case, this bug won't occur. --- Additional comment from Clayton Coleman on 2012-11-21 22:58:20 CST --- We have to support 4.0.3 commander unfortunately. --- Additional comment from Fabiano Franz on 2012-11-23 02:06:46 CST --- Good catch about Commander 4.0.3! Pull request with the fix is placed: https://github.com/openshift/rhc/pull/233 --- Additional comment from zhangjing on 2012-11-23 11:05:36 CST --- This bug has been verified and fixed on devenv_2511. Build: devenv_2511 client built from devenv_2511 Steps: 1. Insall commander 4.0.3. # gem uninstall -ax commander # gem install -v 4.0.3 commander 2. Install rhc client 3. Create app with --enable-jenkins parameter added rhc app create app1 python-2.6 --enable-jenkins -d -p redhat Acutal results: The app is created successfully with jenkins client added as below: #rhc app create app1 python-2.6 --enable-jenkins -d -p redhat app1 @ http://app1-testdoma2.dev.rhcloud.com/ ============================================= Application Info ================ Created = Nov 22 9:58 PM UUID = 4edb35f2430645328c29d441a0b5b45b Gear Size = small Git URL = ssh://4edb35f2430645328c29d441a0b5b45b.rhcloud.com/~/git/app1.git/ SSH URL = ssh://4edb35f2430645328c29d441a0b5b45b.rhcloud.com Cartridges ========== python-2.6 jenkins-client-1.4 = https://jenkins-testdoma2.dev.rhcloud.com/job/app1-build/ RESULT: Application app1 was created. Application jenkins was created. Jenkins created successfully. Please make note of these credentials: User: admin Password: DPfcbsZYYeXV Note: You can change your password at: https://jenkins-testdoma2.dev.rhcloud.com/me/configure
Has this been fixed? I remember seeing another bug where rhc was verified to work with multiple versions of commander.
(In reply to comment #2) > Has this been fixed? I remember seeing another bug where rhc was verified > to work with multiple versions of commander. Hi, Brenton If you are asking if it's fixed in current enterprise version 1.1.11, then it's not. If you are asking if it's fixed in upstream, then yes. You could find that this bug is cloned from the upstream bug: https://bugzilla.redhat.com/show_bug.cgi?id=878407, which is fixed since rhc-1.2.2 -xiaoli
Thanks for the clarification!!
The latest puddle will ship rhc-1.3.2.
Verified this bug with rhc-1.3.2-1.1.el6op.noarch, and PASS. # gem list command *** LOCAL GEMS *** commander (4.0.3) # rhc app create phptest php-5.3 --enable-jenkins --no-git Password: ****** Application Options =================== Namespace: jialiu Cartridge: php-5.3 Scaling: no Gear Size: default Creating application 'phptest' ... done Setting up a Jenkins application ... done Setting up Jenkins build ... done Waiting for your DNS name to be available ... done phptest @ http://phptest-jialiu.example.com/ (uuid: d5133dffdd084c36898868c35343295a) ===================================================================================== Created: 5:34 AM Gear Size: small Git URL: ssh://d5133dffdd084c36898868c35343295a.com/~/git/phptest.git/ SSH: d5133dffdd084c36898868c35343295a.com php-5.3 (PHP 5.3) ================= jenkins-client-1.4 (Jenkins Client 1.4) ======================================= Connection URL: https://jenkins-jialiu.example.com/job/phptest-build/ RESULT: Application phptest was created. Application jenkins was created. Jenkins created successfully. Please make note of these credentials: User: admin Password: RiWzabREvWAU Note: You can change your password at: https://jenkins-jialiu.example.com/me/configure
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHSA-2013-0220.html