Bug 1334147 - Can't push code to gitserver repo so no build will be triggered.
Summary: Can't push code to gitserver repo so no build will be triggered.
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OKD
Classification: Red Hat
Component: Image
Version: 3.x
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: Cesar Wong
QA Contact: XiuJuan Wang
URL:
Whiteboard:
Depends On:
Blocks: 1365415
TreeView+ depends on / blocked
 
Reported: 2016-05-09 02:48 UTC by XiuJuan Wang
Modified: 2016-09-19 13:56 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1365415 (view as bug list)
Environment:
Last Closed: 2016-09-19 13:56:07 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description XiuJuan Wang 2016-05-09 02:48:49 UTC
Description of problem:
When push code to gitserver repo via app route, show below error. No build is triggered.
# git push openshift master
Password for 'http://xiuwang@git-xiuwang.0506-5sa.qe.rhcloud.com':
Counting objects: 267, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (166/166), done.
Writing objects: 100% (267/267), 41.00 KiB, done.
Total 267 (delta 88), reused 267 (delta 88)
error: RPC failed; result=22, HTTP code = 504
fatal: The remote end hung up unexpectedly
fatal: recursion detected in die handler
Everything up-to-date

#When push code to gitserver via app service ip or port-forward 8080 in localhost, will hang on long long time.

Version-Release number of selected component (if applicable):
openshift/origin-gitserver(6ae0b13def4c)

How reproducible:
always

Steps to Reproduce:
1.Create the Git Server
$ oc create -f gitserver.yaml
2.Grant edit access to the git service account
$ oc policy add-role-to-user edit -z git
3.Push a repository to your git server
# clone a public repository
$ git clone https://github.com/openshift/ruby-hello-world.git
# add a remote for your git server
$ cd ruby-hello-world
$ git remote add openshift http://git-myproject.infra.openshift.com/ruby-hello-world.git  
# push the code to the git server
$ git push openshift master

Actual results:

$ git push openshift master
Password for 'http://xiuwang@git-xiuwang.0506-5sa.qe.rhcloud.com':
Counting objects: 267, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (166/166), done.
Writing objects: 100% (267/267), 41.00 KiB, done.
Total 267 (delta 88), reused 267 (delta 88)
error: RPC failed; result=22, HTTP code = 504
fatal: The remote end hung up unexpectedly
fatal: recursion detected in die handler
Everything up-to-date

Expected results:
Could push code to gitserver repo, and trigger new build.

Additional info:
Should works as https://bugzilla.redhat.com/show_bug.cgi?id=1252826#c3

Comment 1 Cesar Wong 2016-05-12 22:32:52 UTC
new-app changed to use --depth=1 when cloning repositories from git servers. That parameter seems to make the gitserver server hang. Investigating.

Comment 2 Cesar Wong 2016-05-19 23:15:05 UTC
PR https://github.com/openshift/origin/pull/8953

Comment 3 XiuJuan Wang 2016-05-23 05:31:02 UTC
docker.io/openshift/origin-gitserver   12cd0a9b2c3d        46 hours ago

1.oc create -f https://raw.githubusercontent.com/openshift/origin/master/examples/gitserver/gitserver-ephemeral.yaml
2.oc policy add-role-to-user edit -z git
3.git clone http://git-truetoken.0522-oo1.qe.rhcloud.com/ruby-hello-world.git
4.Add something to repo, and push back.
5.Add other code to repo, and push back.

Could push code to repo, and create app successfully. Could trigger new build.


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