Bug 1022361 - Fail to build app by running command 'ctl_app build'
Summary: Fail to build app by running command 'ctl_app build'
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OpenShift Online
Classification: Red Hat
Component: Containers
Version: 2.x
Hardware: All
OS: All
medium
medium
Target Milestone: ---
: ---
Assignee: Andy Goldstein
QA Contact: libra bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-10-23 06:58 UTC by zhaozhanqi
Modified: 2015-05-14 23:31 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-01-24 03:26:16 UTC
Target Upstream Version:


Attachments (Terms of Use)

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


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