Bug 1148192
Summary: | Race condition in `oo-httpd-singular graceful` when using apache-vhost | |||
---|---|---|---|---|
Product: | OpenShift Container Platform | Reporter: | Timothy Williams <tiwillia> | |
Component: | Containers | Assignee: | Luke Meyer <lmeyer> | |
Status: | CLOSED ERRATA | QA Contact: | libra bugs <libra-bugs> | |
Severity: | high | Docs Contact: | ||
Priority: | medium | |||
Version: | 2.1.0 | CC: | anli, bleanhar, jialiu, jokerman, libra-onpremise-devel, lmeyer, mmccomas | |
Target Milestone: | --- | Keywords: | Upstream | |
Target Release: | --- | |||
Hardware: | All | |||
OS: | Linux | |||
Whiteboard: | ||||
Fixed In Version: | openshift-origin-node-util-1.30.3.1-1.el6op | Doc Type: | Bug Fix | |
Doc Text: |
Cause:
There was a race condition when using the apache-vhost frontend. If "oo-httpd-singular graceful" is run to incorporate one gear vhost update while another gear is creating its vhost configuration, the configuration is left in a bad state and httpd will not (re)start.
Consequence:
When this condition is hit, vhost configuration will cease being updated and newly-added gears will be unreachable via the vhost frontend. If httpd is stopped, it will fail to start until the config is fixed.
Fix:
A lock was extended around the call to oo-httpd-singular preventing the race condition.
Result:
This should no longer occur.
|
Story Points: | --- | |
Clone Of: | ||||
: | 1148418 1155794 (view as bug list) | Environment: | ||
Last Closed: | 2014-11-03 19:55:18 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: | ||||
Bug Depends On: | 1147054, 1151744 | |||
Bug Blocks: |
Description
Timothy Williams
2014-09-30 22:13:24 UTC
Per bug 1147054 the fix should be coming to the next 2.2 rebase. In addition to rebase, https://github.com/openshift/origin-server/pull/5885 is required. origin-server cherrypick: commit dc07a6d177263a128f9b1506db9a7a20e64df451 Author: Rajat Chopra <rchopra> Date: Fri Oct 17 13:43:53 2014 -0700 bz1151744 - wrap the wait for reload to finish inside of the lockfile Verified and pass 1) enable httpd.worker [root@node1 ~]# ps -ef|grep httpd root 27730 1 0 05:01 ? 00:00:00 /usr/sbin/httpd.worker apache 27732 27730 0 05:01 ? 00:00:00 /usr/sbin/httpd.worker apache 27733 27730 0 05:01 ? 00:00:00 /usr/sbin/httpd.worker apache 27735 27730 0 05:01 ? 00:00:00 /usr/sbin/httpd.worker root 29466 26319 0 05:04 pts/0 00:00:00 grep httpd 2) Create many applications while removing others and run test regression testing. 3) check platform.log. oo-httpd-singular was executed and there isn't singular error was reported. [root@node1 node]# cat platform.log|grep oo-httpd October 24 05:12:57 INFO Shell command '/usr/sbin/oo-httpd-singular graceful' ran. rc=0 out= October 24 05:12:58 INFO Shell command '/usr/sbin/oo-httpd-singular graceful' ran. rc=0 out= October 24 05:13:00 INFO Shell command '/usr/sbin/oo-httpd-singular graceful' ran. rc=0 out [root@node1 node]# grep error platform.log [root@node1 node]# grep warn platform.log git archive --format=tar master | (cd /var/lib/openshift/544a4251e5fed5c217000186/app-root/runtime/repo && tar --warning=no-timestamp -xf -); *** Bug 1154645 has been marked as a duplicate of this bug. *** 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. https://rhn.redhat.com/errata/RHSA-2014-1796.html |