Bug 1022439

Summary: Cannot perform app restart with missing httpd.pid file
Product: OpenShift Online Reporter: Chris Ryan <cryan>
Component: ContainersAssignee: Michal Fojtik <mfojtik>
Status: CLOSED CURRENTRELEASE QA Contact: libra bugs <libra-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 2.xCC: bmeng, yadu
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-01-23 22:26:22 EST Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Description Chris Ryan 2013-10-23 05:46:08 EDT
Description of problem:
This is related to bug 975700. If the httpd.pid file is missing, the app will not restart.

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

How reproducible:

Steps to Reproduce:
1. Create a php-5.3 application: 
   rhc app-create phptest php-5.3
2. SSH to the app and delete the httpd.pid file:
   rhc ssh phptest
   cd php/run
   rm httpd.pid
3. Restart the app:
   rhc app restart -a phptest

Actual results:
The restart fails with:
Unable to complete the requested operation due to: Failed to correctly execute all parallel operations.
Reference ID: 6773811579144a6f0633299c88259a13

Expected results:
The app should restart.

Additional info:
Note: this works if the app is simply "started," with rhc app start -a phptest. The httpd.pid file is regenerated. It will not regenerate with a 'restart', however.
Comment 2 Michal Fojtik 2013-10-24 07:28:00 EDT
PR: https://github.com/openshift/origin-server/pull/3979

Should be merged shortly. Thanks for reporting this!
Comment 3 openshift-github-bot 2013-10-24 08:52:11 EDT
Commit pushed to master at https://github.com/openshift/origin-server

Bug 1022439 - Restore missing httpd.pid when restarting PHP cart
Comment 4 Meng Bo 2013-10-24 22:56:22 EDT
Checked on devenv_3942,

After httpd.pid file been removed from php cartridge, the app can be restart successfully. And the pid file can be regenerated.