Bug 1015523 - unable to restart app via REST
Summary: unable to restart app via REST
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OpenShift Online
Classification: Red Hat
Component: Pod
Version: 1.x
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
: ---
Assignee: Mrunal Patel
QA Contact: libra bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-10-04 12:44 UTC by Oleg Fayans
Modified: 2016-12-01 00:27 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-10-17 13:33:41 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

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


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