Bug 1015523

Summary: unable to restart app via REST
Product: OpenShift Online Reporter: Oleg Fayans <ofayans>
Component: PodAssignee: Mrunal Patel <mpatel>
Status: CLOSED CURRENTRELEASE QA Contact: libra bugs <libra-bugs>
Severity: high Docs Contact:
Priority: unspecified    
Version: 1.xCC: amarecek, jhou, rchopra
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: 2013-10-17 13:33:41 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 Oleg Fayans 2013-10-04 12:44:34 UTC
Description of problem:
When I restart an app via REST API the pid of app does not change

Version-Release number of selected component (if applicable):
reproduced on STG (devenv-stage_472), openshift build N 2.0.33

How reproducible:
Always

Steps to Reproduce:
1. rhc app create myapp python-2.6
2. ssh %app_uuid%@myapp cat ./python/run/httpd.pid
3. restart the app using rest request:

curl -k -X POST https://stg.openshift.redhat.com/broker/rest/applications/%app_uuid%/events --user %username%:%password% --data-urlencode event=restart

4. ssh %app_uuid%@myapp cat ./python/run/httpd.pid

Actual results:
The pids in steps 2 and 4 are identical

Expected results:
the pid should change


Additional info:

Comment 1 Mrunal Patel 2013-10-08 18:48:18 UTC
This is expected behavior since we use httpd -k restart. You will notice that the child process pids change when you restart but the main httpd pid will remain the same. Only way to see the pid change is to stop followed by a start.

Comment 2 Jianwei Hou 2013-10-09 01:55:19 UTC
Marks as verified according to comment 1