Bug 970278 - oo-frontend-connect starts openshift-node-web-proxy with reload, even if the service is shut off
Summary: oo-frontend-connect starts openshift-node-web-proxy with reload, even if the ...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: OKD
Classification: Red Hat
Component: Containers
Version: 2.x
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: Rob Millner
QA Contact: libra bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-06-03 21:18 UTC by chris alfonso
Modified: 2016-02-01 02:36 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-06-06 17:17:02 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description chris alfonso 2013-06-03 21:18:36 UTC
Description of problem:
When the --websocket argument is passed into oo-frontend-connect it will reload the openshift-node-web-proxy service. This is fine in most cases, but there are times where we need to turn that service off, and keep it off. Instead of calling of calling service openshift-node-web-proxy reload we should call condrestart so that if it's turned off, it won't restart the service.


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


How reproducible:

Create an application for any cartridge that passes --websocket when the openshift-node-web-proxy is turned off. It'll start the service.


Steps to Reproduce:
1. service openshift-node-web-proxy stop
2. rhc app create app1 jbossews
3. service openshift-node-web-proxy status

Actual results:
openshift-node-web-proxy is on.

Expected results:
openshift-node-web-proxy is off.

Additional info:
The service script already has a condrestart option defined, we can use that.

Comment 1 Rob Millner 2013-06-03 21:20:24 UTC
We should add a "condreload" - restart is quite a bit more expensive than a reload on this service.

Comment 2 Rob Millner 2013-06-03 21:25:03 UTC
Actually, this is a little weirder.  As far as I can see the reload portion of the init script should not cause the daemon to start.  Will need to examine this further to see what is happening.

Comment 3 Rob Millner 2013-06-04 01:07:03 UTC
I can't reproduce this on the latest devenv with the following commands:

1. service openshift-node-web-proxy stop
2. rhc app create rmtest php-5.3
3. ps -ef |grep node                         # Shows nothing
4. service openshift-node-web-proxy status   # Shows web-proxy is stopped
5. service openshift-node-web-proxy reload   # Reports an error
6. service openshift-node-web-proxy status   # Still shows web-proxy is stopped.

Reading the code, that's exactly how it should behave.  Do you have an environment where this is happening I can have a look at?  Thanks!

Comment 4 chris alfonso 2013-06-04 14:34:13 UTC
I haven't been able to reproduce this either, v1 or v2. I'm going to follow up with the customer and dig a little deeper.

Comment 5 chris alfonso 2013-06-06 17:17:02 UTC
We were unable to reproduce this issue. Closing.


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