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   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-01-24 03:26:22 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 Chris Ryan 2013-10-23 09:46:08 UTC
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:
Always

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 11:28:00 UTC
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 12:52:11 UTC
Commit pushed to master at https://github.com/openshift/origin-server

https://github.com/openshift/origin-server/commit/b67be29bd2a40947ca50f7502e3605a695ae1988
Bug 1022439 - Restore missing httpd.pid when restarting PHP cart

Comment 4 Meng Bo 2013-10-25 02:56:22 UTC
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.