+++ This bug was initially created as a clone of Bug #1160752 +++ Description of problem: Since release 2.0.52, apache vhosts configurations are missing or incompleted. Version-Release number of selected component (if applicable): rubygem-openshift-origin-node-1.31.9-1.el6oso.noarch How reproducible: sometimes Steps to Reproduce: Has been shown to happen on existing apps, possibly new apps. Actual results: Gears return 404, 400, 302 Expected results: Apache vhosts config should be complete and working Additional info: Attempted fix: find /etc/httpd/conf.d/openshift/ -type d -empty - match out that list, | xargs rhc-fix-missing-frontend -b This fixed ~990 out of 10900+ empty apache dirs, didn't help with gears missing in /etc/httpd/conf.d/openshift/ or with incomplete vhost entries. --- Additional comment from openshift-github-bot on 2014-11-06 21:18:38 EST --- Commits pushed to master at https://github.com/openshift/origin-server https://github.com/openshift/origin-server/commit/5b062cabb7ef125fc3743eea1b8fc2bbb17041c3 Bug 1160752 - Make apache-vhost more atomic * Write one buffer to file rather than a number of write * Truncate conf files rather than removing them to ease up httpd failures on restart * Have watchman XXX plugin clean up "deleted" configurations https://github.com/openshift/origin-server/commit/8710485cb06793ae67e4bac9aab349a41e0b19f2 Bug 1160752 - Add Watchman plugin to clean up vhost configurations https://github.com/openshift/origin-server/commit/d2299d1c917227e9dad313ee467dda74fc88a9e7 Bug 1160752 - Make Watchman frontend cleanup period configurable --- Additional comment from Meng Bo on 2014-11-07 05:01:03 EST --- Do parallel creating/deleting and accessing the gears on node, will not cause httpd workers hang. And after the watchman plugin introduced, the old httpd config files will not be deleted when the gear is deleting. Set the time to two days past, the watchman will delete the configs automatically. Move bug to verified.
Verified and pass on puddle-2-2-2014-11-24 1) Do parallel creating/deleting and accessing the gears on node for one day. No httpd worker hang was found. 2) diff gears and the httpd configure files. All gears has httpd configure files. There are extra httpd configure files for deleted gears. 3) set FRONTEND_CLEANUP_PERIOD=10 and restart watchman 4) wating several minutes, and those deleted gears httpd configure files are deleted.
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/RHBA-2014-1979.html