Bug 1022361

Summary: Fail to build app by running command 'ctl_app build'
Product: OpenShift Online Reporter: zhaozhanqi <zzhao>
Component: ContainersAssignee: Andy Goldstein <agoldste>
Status: CLOSED CURRENTRELEASE QA Contact: libra bugs <libra-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 2.xCC: xtian
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-01-24 03:26:16 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:

Description zhaozhanqi 2013-10-23 06:58:27 UTC
Description of problem:
Given an app and ssh into app, run 'ctl_app build' to build app, will meet error 'No such file or directory - /var/lib/openshift/526764d40fd7c68bc3000035/app-root/runtime/repo/.git'

Version-Release number of selected component (if applicable):
devenv_3932

How reproducible:
always

Steps to Reproduce:
1. create one app
2. rhcssh into app and run 'ctl_app build'


Actual results:

'No such file or directory - /var/lib/openshift/526764d40fd7c68bc3000035/app-root/runtime/repo/.git'

Expected results:
could build successfully.

Additional info:

Comment 1 openshift-github-bot 2013-10-23 21:10:12 UTC
Commit pushed to master at https://github.com/openshift/origin-server

https://github.com/openshift/origin-server/commit/5ae73beea1f8dabdbabc546d81dd2b957d9da9b6
Restore 'gear build' functionality on normal gears

Restore 'gear build' functionality on normal gears.

If building from Jenkins, use $GIT_BRANCH as the git ref.

If building in a normal gear, call ApplicationRepository#archive to
replace the contents of app-root/runtime/repo with the ref to build.

Exclude .git when rsyncing the repo content from the Jenkins builder
gear to the upstream gear.

Bug 1022361

Comment 2 Andy Goldstein 2013-10-23 21:11:12 UTC
https://github.com/openshift/origin-server/pull/3971

Comment 3 zhaozhanqi 2013-10-24 09:40:54 UTC
Tested this issue on devenv_3939, it has been fixed.


[appr21-zqd.dev.rhcloud.com 5268c2649ec99323f0000001]\> gear build
Building git ref 'master', commit 8e995f4