Bug 878407
| Summary: | Jenkins server isn't created using option --enable-jenkins without jenkins server name speicified if commander version is 4.0.3 | |||
|---|---|---|---|---|
| Product: | OKD | Reporter: | jizhao | |
| Component: | oc | Assignee: | Fabiano Franz <ffranz> | |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | libra bugs <libra-bugs> | |
| Severity: | medium | Docs Contact: | ||
| Priority: | medium | |||
| Version: | 2.x | CC: | ccoleman, ffranz, jinzhang, szhou, xtian | |
| Target Milestone: | --- | Keywords: | Regression | |
| Target Release: | --- | |||
| Hardware: | Unspecified | |||
| OS: | Unspecified | |||
| Whiteboard: | ||||
| Fixed In Version: | Doc Type: | Bug Fix | ||
| Doc Text: | Story Points: | --- | ||
| Clone Of: | ||||
| : | 885587 (view as bug list) | Environment: | ||
| Last Closed: | 2012-12-19 19:27:18 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: | ||
| Embargoed: | ||||
| Bug Depends On: | ||||
| Bug Blocks: | 885587 | |||
|
Description
jizhao
2012-11-20 11:16:36 UTC
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). 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 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. We have to support 4.0.3 commander unfortunately. Good catch about Commander 4.0.3! Pull request with the fix is placed: https://github.com/openshift/rhc/pull/233 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 |