Bug 987726 - An error occurred executing 'gear postreceive' When push an app with submodule added
Summary: An error occurred executing 'gear postreceive' When push an app with submodul...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Containers
Version: 1.2.1
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: Brenton Leanhardt
QA Contact: libra bugs
URL:
Whiteboard:
Depends On: 975183
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-07-24 02:19 UTC by Nan Wei
Modified: 2017-03-08 17:35 UTC (History)
4 users (show)

Fixed In Version: rubygem-openshift-origin-node-1.9.14.1-1
Doc Type: Bug Fix
Doc Text:
The node runtime did not properly handle nested submodules, causing application builds to deploy improperly and produce an error. With this fix, logic was added to archive_git_submodules.sh in the node runtime to handle this case. Application deployments now work as expected.
Clone Of:
Environment:
Last Closed: 2013-08-05 17:20:44 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2013:1138 0 normal SHIPPED_LIVE OpenShift Enterprise 1.2.1 bug fix and enhancement update 2013-08-05 21:14:54 UTC

Description Nan Wei 2013-07-24 02:19:36 UTC
Description of problem:
When creating a ruby app, git submodule add https://github.com/jhou1/submodule.git, then git push,  and prompting the following error:
Counting objects: 4, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (3/3), done.
Writing objects: 100% (3/3), 371 bytes, done.
Total 3 (delta 1), reused 0 (delta 0)
remote: Stopping Ruby cart
remote: Waiting for stop to finish
remote: An error occurred executing 'gear postreceive'
remote: stdout: Initialized empty Git repository in /tmp/git_cache/.git/
remote: Submodule 'submodule' (https://github.com/jhou1/submodule.git) registered for path 'submodule'
remote: Initialized empty Git repository in /tmp/git_cache/submodule/.git/
remote: Submodule path 'submodule': checked out 'f34a7b53aeee72f1b10f0ed99751d4e04f5d9ce9'
remote: Submodule 'rack' (git://github.com/chneukirchen/rack.git) registered for path 'rack'
remote: Initialized empty Git repository in /tmp/git_cache/submodule/rack/.git/
remote: Submodule path 'rack': checked out '382c3c560f661df4fe9c1b31bb8d291721977949'
remote: Entering 'submodule'
remote: Entering 'submodule/rack'
remote: stderr: + pushd /tmp/
remote: + git clone /var/lib/openshift/51ee371ba421243308000169/git/ruby18.git git_cache
remote: + pushd git_cache
remote: + git submodule update --init --recursive
remote: + git submodule foreach --recursive 'git archive --format=tar HEAD | (cd /var/lib/openshift/51ee371ba421243308000169/app-root/runtime/repo/$name && tar --warning=no-timestamp -xf -)'
remote: /usr/libexec/git-core/git-submodule: line 283: cd: /var/lib/openshift/51ee371ba421243308000169/app-root/runtime/repo/rack: No such file or directory
remote: Stopping at 'rack'; script returned non-zero status.
remote: Stopping at 'submodule'; script returned non-zero status.
remote: 
remote: For more details about the problem, try running the command again with the '--trace' option.
To ssh://51ee371ba421243308000169.com/~/git/ruby18.git/
   ff27e57..262e09f  master -> master
   
But if use devenv_3540, there is no such problem, it is pushed successfully.

Version-Release number of selected component (if applicable):
OpenShift Enterprise puddle: 1.2/2013-07-22.2

How reproducible:
always

Steps to Reproduce:
1. Create a ruby-1.8 application
#rhc app-create ruby18 ruby-1.8
2. Aftre creation, in app's repo, add submodule in setup
#git submodule add https://github.com/jhou1/submodule.git
3. git add && git commit && git push

Actual results:
The output of git push is as following:
remote: Stopping Ruby cart
remote: Waiting for stop to finish
remote: An error occurred executing 'gear postreceive'
remote: stdout: Initialized empty Git repository in /tmp/git_cache/.git/
remote: Submodule 'submodule' (https://github.com/jhou1/submodule.git) registered for path 'submodule'

Expected results:
App should be pushed successfully and no error should be occurred.

Additional info:

Comment 2 Brenton Leanhardt 2013-07-24 14:22:32 UTC
Upstream commit:

commit 1586aeb6db061e39d4d3835e6bc1834963805c69
Author: Jhon Honce <jhonce>
Date:   Tue Jun 18 16:43:13 2013 -0700

    Bug 975183 -  nested submodule repository cannot be found
    
    * lib/module001/module002 was not supported
    * test added

Comment 5 Johnny Liu 2013-07-26 14:11:10 UTC
Verified this bug with rubygem-openshift-origin-node-1.9.14.1-1.el6op.noarch, and PASS.

Comment 7 errata-xmlrpc 2013-08-05 17:20:44 UTC
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.

http://rhn.redhat.com/errata/RHBA-2013-1138.html


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