Bug 876465 - Embedding scalable app (php) with jenkins fails to create a new builder (only via web)
Summary: Embedding scalable app (php) with jenkins fails to create a new builder (only...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Website
Version: 1.2.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: chris alfonso
QA Contact: libra bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-11-14 08:43 UTC by mzimen
Modified: 2017-03-08 17:34 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-01-31 20:32:44 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
screenshot wirh error message (116.38 KB, image/jpeg)
2012-11-14 08:43 UTC, mzimen
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2013:0220 0 normal SHIPPED_LIVE Important: Red Hat OpenShift Enterprise 1.1 update 2013-02-01 01:23:24 UTC

Description mzimen 2012-11-14 08:43:17 UTC
Created attachment 644657 [details]
screenshot wirh error message

Description of problem:
Adding Jenkins support for an app fails with attached message.

This only happens if there is no Jenkins server available and user tries to create a new one.
If there is already Jenkins server available the builder is created successfully.

The CLI works without any issues.

Version-Release number of selected component (if applicable):
onpremise-2012-11.12

How reproducible: always through WEB and missing jenkins server


Steps to Reproduce:
1. create scalable app (make sure you have no jenkins server)
2. embed with jenkins
3.
  
Actual results:


Expected results:


Additional info:

Comment 1 John Keck 2012-11-15 15:54:27 UTC
Web Console is in tech preview for 1.0 - this needs to be fixed but can be done in a dot release.

Comment 2 chris alfonso 2012-11-19 19:52:56 UTC
I attempted to recreate this issue on the latest OSE packages.  I think I'm going to need more details on the steps to reproduce the issue.  Here is what I did to attempt the recreation.

1. Set up a single server with the broker and node both installed. 
2. Created a scaled application using the rhc cli.  I used the cli since you need to do so for the -s option.
rhc app create -s phptest php-5.3
3. Log-in to the web console, go to 'My Application', go to the details of the phptest application, click on 'Enable Jenkins Builds'.
4. Since there is no jenkins server yet, I am prompted to create a jenkins server, so I do.
5. Once that is done, the jenkins cartridge has been added to the application.

Additional test:
I created a second php application and added the existing jenkins cartridge to the application successfully.

Comment 3 xjia 2012-11-21 02:04:22 UTC
I have tried several times, find that in the bad network or high load environment, the mcollective timeout is short. Then it will reproduce this bug.

In the file /etc/openshift/plugins.d/openshift-origin-msg-broker-mcollective.conf, update MCOLLECTIVE_TIMEOUT=100 or bigger, then the bug can't be reproduced.

Comment 4 Rob Millner 2012-11-21 17:51:13 UTC
In hosted, we've made the mcollective timeout 180s for stability reasons.

Comment 5 chris alfonso 2012-11-26 14:38:54 UTC
Should we just document this in the troubleshooting guide, since we are probably not going to be able to tell the broker to go faster under load of if there are network connectivity issues.

Comment 6 Brenton Leanhardt 2012-11-26 14:52:24 UTC
I think want to increase our default mcollective timeout.  The troubleshooting guide would be a good place to document general slowness issues.  We can link to reference architectures that provide greater scalability.

Comment 7 chris alfonso 2012-11-26 15:31:19 UTC
Rob, do you know if there any reason we shouldn't replicate the hosted setting as the default?

Comment 8 chris alfonso 2012-11-26 20:20:00 UTC
This configuration change has been merged upstream.
https://github.com/openshift/origin-server/pull/972

Comment 10 xjia 2012-12-10 05:38:12 UTC
Verify:
Create jenkins server successfully

Version:
http://buildvm-devops.usersys.redhat.com/puddle/build/OpenShiftEnterprise/1.1.x/2012-12-09.1/

Comment 12 errata-xmlrpc 2013-01-31 20:32:44 UTC
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


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