Bug 1265423 - .gitconfig is not configurable for application create
.gitconfig is not configurable for application create
Product: OpenShift Container Platform
Classification: Red Hat
Component: Containers (Show other bugs)
Unspecified Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Timothy Williams
Depends On:
  Show dependency treegraph
Reported: 2015-09-22 18:00 EDT by Eric Rich
Modified: 2016-03-22 12:51 EDT (History)
7 users (show)

See Also:
Fixed In Version:
Doc Type: Enhancement
Doc Text:
Feature: Allows for .gitconfig of gears to be configurable by an admin on the system, through the use of skeleton files. Reason: This is needed to allow for an existing Git repository with a large amount of data to be more easily used in OpenShift. Without this change, some Git repositories could not be imported into OpenShift using --from-code, due to their size or memory consumption during the clone process. Result: This enhancement allows for an administrator to use concepts in https://access.redhat.com/solutions/535653 configuration as defined by https://access.redhat.com/solutions/693593. It should be noted that when setting up a custom .gitconfig that: 1) The .gitconfig file can now be overwritten by a .gitconfig file provided in the user's git repository 2) The user-provided .gitconfig "should" contain the following options to ensure the Git repository can be cloned when the gear is close to its memory limits: [gc] auto=100 [pack] windowMemory = 10m packSizeLimit = 20m
Story Points: ---
Clone Of:
Last Closed: 2016-03-22 12:51:15 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Eric Rich 2015-09-22 18:00:45 EDT
Description of problem:

The git configuration for an application's initial creation is hard coded. See code below: 

Version-Release number of selected component (if applicable): 2.2.6
How reproducible: 100% 

Steps to Reproduce:

1. set up .gitconfig in /etc/openshift/skel with a custom .gitconfig

Actual results:

Configuration is always: 


Expected results:

Provided skeleton configuration should be the configuration that is put in place. 

Additional info:
    # rpm -qf /opt/rh/ruby193/root/usr/share/gems/gems/openshift-origin-node-

    # rpm -qc rubygem-openshift-origin-node-
Comment 7 Miciah Dashiel Butler Masters 2016-01-11 15:13:06 EST
Eric, to clarify, is it possible to use a custom .gitconfig under /etc/openshift/skel/ as described in the original description for this Bugzilla report, or does your change *only* enable the user or administrator to provide a custom .gitconfig by putting it in the Git repository specified by the user or configured by the administrator?

We need to clone this Bugzilla report to track the required modifications to the documentation, but first I want to clarify that point.  Thanks!
Comment 8 Eric Rich 2016-01-11 15:46:03 EST

This change simply allows for an "administrator" to set a "default" for a gear using a skeleton file. If a default is not specified then the system will use the hard coded values. 

- in the case of the customer asking for this to be change the hard coded values were not what were needed to use "--from-code" to launch an application.
Comment 9 Rory Thrasher 2016-02-22 17:39:35 EST

Please verify that a custom .gitconfig file, if provided, will be used instead of the default .gitconfig file.

1. Set up .gitconfig in /etc/openshift/USER with a custom .gitconfig.  It should contain the [gc] and [pack] sections as outlined in comment #4.

2. The values from this custom .gitconfig should be used instead of the default .gitconfig.

Puddle: http://etherpad.corp.redhat.com/puddle-2-2-2016-02-19

Thank you
Comment 10 Johnny Liu 2016-02-29 03:12:45 EST
Verified this bug with OpenShiftEnterpriseErrata/2.2/2016-02-25.2 puddle, and PASS.

# cat /etc/openshift/skel/.gitconfig 
  name = 111
  auto = 100
  windowMemory = 10m
  packSizeLimit = 20m

Create an app, then log into it to check its gitconfig.

[perlapp-jialiu.ose22-auto.com.cn jialiu-perlapp-1]\> cat .gitconfig 

  name = 111
  auto = 100
  windowMemory = 10m
  packSizeLimit = 20m

User's customized .gitconfig take effect.
Comment 12 errata-xmlrpc 2016-03-22 12:51:15 EDT
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.


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