Bug 1103138 - openshift-node-web-proxy died after oo-install
Summary: openshift-node-web-proxy died after oo-install
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Containers
Version: 2.1.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: Jason DeTiberus
QA Contact: libra bugs
URL:
Whiteboard:
Depends On: 1105324
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-05-30 11:12 UTC by Anping Li
Modified: 2018-12-05 18:44 UTC (History)
7 users (show)

Fixed In Version: openshift-origin-node-proxy-1.22.3.3-1.el6op
Doc Type: Bug Fix
Doc Text:
Starting the openshift-node-web-proxy service under certain conditions, in particular when using the oo-install installation utility, caused the service to be immediately killed when the user ended their session. This bug fix corrects this issue and the service now starts normally, including when using the installation utility.
Clone Of:
: 1105324 (view as bug list)
Environment:
Last Closed: 2014-06-23 07:41:18 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2014:0781 0 normal SHIPPED_LIVE Red Hat OpenShift Enterprise 2.1.2 bug fix update 2014-06-23 11:36:38 UTC

Description Anping Li 2014-05-30 11:12:56 UTC
Description of problem:
I traced this issue by add 'service openshift-node-web-proxy status' in the front and the end in openshif.sh.The openshift-node-web-proxy have been started by Openshift.sh  actions=configure_host,configure_openshift,restart_services.
But it died before openshift.sh actions=run_diagnostics
The issue only exists with oo-install.


Version-Release number of selected component (if applicable):
oo-install-ose-20140515-1427
oo-install-ose-20140521-1902

How reproducible:

100%

Steps to Reproduce:
1. Install node using oo-install
2. check openshift-node-web-proxy status after installation.
service openshift-node-web-proxy status


Actual results:
[root@node3 tmp]# service openshift-node-web-proxy  status
web-proxy dead but pid file exists

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

Additional info:

Comment 1 Luke Meyer 2014-05-30 14:09:02 UTC
I know Jason had observed this and thought he had fixed it. Jason, comments?

Comment 2 Jason DeTiberus 2014-05-30 15:38:39 UTC
A solution was still not found at this point... The problem is that when running openshift.sh from oo-install, it is being run over ssh with a pty, which causes the supervisor process that is spawned from the openshift-node-web-proxy init script to be killed after the pty is closed.

I suppose one workaround would be to go ahead and restart the service using an ssh connection without pty after the openshift.sh configure step is run, however, we should probably solve this upstrem with openshift-node-web-proxy.

Comment 7 Anping Li 2014-06-16 01:36:34 UTC
Can't start openshift-node-web-proxy after oo-install. However 'ssh root.15.XX service openshift-node-web-proxy restart' works.

1) oo-install failed to start service
=system_u:object_r:locale_t:s0 tclass=file
OpenShift: oo-diagnostics output - 
OpenShift: oo-diagnostics output -             Note that SELinux violations are not always logged in the audit log.
OpenShift: oo-diagnostics output - 
OpenShift: oo-diagnostics output - FAIL: test_services_enabled
OpenShift: oo-diagnostics output -       The following service(s) are not currently started:
OpenShift: oo-diagnostics output -         openshift-node-web-proxy
OpenShift: oo-diagnostics output -       These services are required for OpenShift functionality.


2) service can be started by ssh command. 
[hanli1@broker ~]$ sh test.sh
ssh root.15.89 service openshift-node-web-proxy restart
[  OK  ] node-web-proxy: [FAILED]
Starting node-web-proxy: [  OK  ]
ssh root.15.89 service openshift-node-web-proxy status
web-proxy (pid  2110) is running...

ssh root.15.89 service openshift-node-web-proxy restart
[  OK  ] node-web-proxy: [  OK  ]
Starting node-web-proxy: [  OK  ]
ssh root.15.89 service openshift-node-web-proxy status
web-proxy (pid  2172) is running..

Comment 8 Anping Li 2014-06-16 01:40:57 UTC
Remote ssh root@host oo_install_configure_10.66.XX.XX.sh worked。 only oo-installcan't start that service.

Comment 9 Jason DeTiberus 2014-06-17 18:28:49 UTC
https://github.com/openshift/enterprise-server/pull/301

Waiting for upstream PR to be merged.

Comment 10 Jason DeTiberus 2014-06-18 02:01:14 UTC
Just added the [merge] tag so moving to modified.

Comment 11 Jason DeTiberus 2014-06-18 19:12:26 UTC
http://etherpad.corp.redhat.com/puddle-2-1-2014-06-18

Comment 12 Anping Li 2014-06-19 02:20:17 UTC
Verified and pass on puddle-2-1-2014-06-18.
1)After oo-install, service openshift-node-web-proxy started
2)After 'sh -t root@XXX'sudo bash -c "service openshift-node-web-proxy restart; sleep 2;"',  service openshift-node-web-proxy started
3)'ssh -t root.78.219 service openshift-node-web-proxy restart' works
3)service openshift-node-web-proxy start/restart works in local

Comment 14 errata-xmlrpc 2014-06-23 07:41:18 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2014-0781.html


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