Bug 966744

Summary: git-push to an idled app won't start the app. in PROD.
Product: OpenShift Online Reporter: Peter Ruan <pruan>
Component: ContainersAssignee: Jhon Honce <jhonce>
Status: CLOSED CURRENTRELEASE QA Contact: libra bugs <libra-bugs>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 2.xCC: agrimm, bmeng, pmorie, xtian
Target Milestone: ---Keywords: SupportQuestion
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-06-11 04:09:56 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:
Embargoed:

Description Peter Ruan 2013-05-23 20:22:08 UTC
Description of problem:
git-push to an idled app won't start the app. in PROD.

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


How reproducible:
always

Steps to Reproduce:
1. wait for the app to become idle or force it to be idled.
2. clone the app, modify and do git-push
  (you can use https://sandbox-servicespace.rhcloud.com/ as an example) pruan+1/vostok08



Actual results:
Service Temporarily Unavailable



Expected results:
app able to start.

Additional info:

Comment 1 Andy Grimm 2013-05-23 23:00:47 UTC
To be a little more precise, the app won't "unidle" at all.  ssh'ing in, hitting the url, and running admin-ctl-gear unidle <uuid> all fail to start the app.  only an "rhc app start" works.

It may also be meaningful that this app is fairly old, and for example, .env does not contain all of the same environment variables that my recent php app does (HOME, TMP dir aliases, etc.)

Comment 2 Jhon Honce 2013-05-28 21:21:47 UTC
In V1 this is a known issue.

In V2 pushing to git does "start" application.

Comment 3 Meng Bo 2013-05-29 10:47:39 UTC
According to comment#2,

Git push will trigger gear stop and gear start for v2 cartridge.
Idled app will be started after git push.

Move the bug to verified.


Total 2 (delta 1), reused 0 (delta 0)
remote: Stopping DIY cart
remote: CLIENT_RESULT: Application is already stopped
remote: Starting DIY cart
To ssh://51a5c7f15ec49a08dd000014.rhcloud.com/~/git/diy1.git/
   f07509a..83fbfe8  master -> master