Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1027390 - Jenkins Cartridge Tied to "small" node_profile or "Gear Size"
Jenkins Cartridge Tied to "small" node_profile or "Gear Size"
Status: CLOSED CURRENTRELEASE
Product: OpenShift Container Platform
Classification: Red Hat
Component: Image (Show other bugs)
2.0.0
Unspecified Unspecified
low Severity medium
: ---
: ---
Assigned To: Timothy Williams
libra bugs
:
: 1015141 (view as bug list)
Depends On:
Blocks: 1032791 1188672
  Show dependency treegraph
 
Reported: 2013-11-06 12:29 EST by Eric Rich
Modified: 2017-03-08 12 EST (History)
5 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1032791 (view as bug list)
Environment:
Last Closed: 2016-04-15 17:00:15 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Knowledge Base (Solution) 534083 None None None Never

  None (edit)
Description Eric Rich 2013-11-06 12:29:43 EST
Description of problem:

If you do not have a small node profile in an OSE environment, the Jenkions build fails to get created because it is bound to this gear type. 

--- Notes from my logs ---

==> /var/log/openshift/broker/user_action.log <==
FAILURE DATE=2013-11-06 TIME=12:16:59 ACTION=ADD_APPLICATION REQ_ID=1cbde3cdf76a4a293707c3e45b588d6e USER_ID=51f938969e0f88db43000001 LOGIN=demo DOMAIN=test No nodes available.

==> /var/log/openshift/broker/production.log <==
Completed 500 Internal Server Error in 10256ms (Views: 2.0ms)


Started POST "/broker/rest/domains/test/applications" for 127.0.0.1 at 2013-11-06 12:17:05 -0500
Processing by ApplicationsController#create as JSON
  Parameters: {"cartridge"=>"jbosseap-6.0", "name"=>"minibossbldr", "gear_profile"=>"small", "domain_id"=>"test"} 

How reproducible:

Edit the following on: /etc/openshift/broker.conf
VALID_GEAR_SIZES="medium"
DEFAULT_GEAR_CAPABILITIES="medium"
DEFAULT_GEAR_SIZE="medium"

Edit the following on: /etc/openshift/resource_limits.conf
node_profile=medium

# rhc app create butler jenkins-1 --config ~/.openshift/ose.conf
# rhc git-clone miniboss --config ~/.openshift/ose.conf
# cd minboss ; echo "Testing" >> README.md
# git commit -am "Testing"; git push

Actual results:

Errors seen above.

Expected results:

A builder to get created and build the changes for the app.

Additional info:

Modifying the following and reinstalling the cartridge is the current workaround to this issue: 

/var/lib/openshift/.cartridge_repository/redhat-jenkins-client/0.0.1/configuration/jenkins_job_template.xml.erb.hidden:      <builderSize>medium</builderSize>
/var/lib/openshift/.cartridge_repository/redhat-jenkins/0.0.1/configuration/config.xml:      <defaultBuilderSize>medium</defaultBuilderSize>
Comment 2 Brenton Leanhardt 2013-11-14 10:36:44 EST
We need to create a kbase article for all known issues like this with our Jenkins integration.
Comment 3 Eric Rich 2013-11-14 10:49:24 EST
Its very rudamentay, but we can use https://access.redhat.com/site/solutions/541973 as a Work in Progress for issue like this.
Comment 5 Brenton Leanhardt 2014-02-04 13:39:36 EST
*** Bug 1015141 has been marked as a duplicate of this bug. ***
Comment 7 Eric Rich 2016-04-15 17:00:15 EDT
This has been resolved. 

$ --> rhc app create butler jenkins-1 -g medium
Application Options
-------------------
Domain:     penguinforge
Cartridges: jenkins-1
Gear Size:  medium
Scaling:    no

Creating application 'butler' ... done

  Jenkins created successfully.  Please make note of these credentials:

   User: admin
   Password: PASSWORD

...

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