Bug 1027390 - Jenkins Cartridge Tied to "small" node_profile or "Gear Size"
Summary: Jenkins Cartridge Tied to "small" node_profile or "Gear Size"
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: ImageStreams
Version: 2.0.0
Hardware: Unspecified
OS: Unspecified
Target Milestone: ---
: ---
Assignee: Timothy Williams
QA Contact: libra bugs
: 1015141 (view as bug list)
Depends On:
Blocks: 1032791 1188672
TreeView+ depends on / blocked
Reported: 2013-11-06 17:29 UTC by Eric Rich
Modified: 2018-12-09 17:16 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1032791 (view as bug list)
Last Closed: 2016-04-15 21:00:15 UTC
Target Upstream Version:

Attachments (Terms of Use)

System ID Private Priority Status Summary Last Updated
Red Hat Knowledge Base (Solution) 534083 0 None None None Never

Internal Links: 1188672

Description Eric Rich 2013-11-06 17:29:43 UTC
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 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

Edit the following on: /etc/openshift/resource_limits.conf

# 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 15:36:44 UTC
We need to create a kbase article for all known issues like this with our Jenkins integration.

Comment 3 Eric Rich 2013-11-14 15:49:24 UTC
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 18:39:36 UTC
*** Bug 1015141 has been marked as a duplicate of this bug. ***

Comment 7 Eric Rich 2016-04-15 21:00:15 UTC
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.