Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1027390

Summary: Jenkins Cartridge Tied to "small" node_profile or "Gear Size"
Product: OpenShift Container Platform Reporter: Eric Rich <erich>
Component: ImageStreamsAssignee: Timothy Williams <tiwillia>
Status: CLOSED CURRENTRELEASE QA Contact: libra bugs <libra-bugs>
Severity: medium Docs Contact:
Priority: low    
Version: 2.0.0CC: adellape, bleanhar, erich, niharvey, tiwillia
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1032791 (view as bug list) Environment:
Last Closed: 2016-04-15 21:00:15 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: 1032791, 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 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 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

...