+++ This bug was initially created as a clone of Bug #1059105 +++ Description of problem: Run oo-accept-node on node to check the apache config issue on node, it will only return the issues when the node using mod_rewrite plugin. That means for nodes which running with vhost plugin will never failed the httpd config check by oo-accept-node. Version-Release number of selected component (if applicable): devenv_4295 How reproducible: always Steps to Reproduce: 1. Launch instance and let it using vhost frontend plugin 2. Make the httpd config mismatch with gear eg, copy the 52e89ec6070b084933000006_bmengdev_0_php1.conf and 52e89ec6070b084933000006_bmengdev_php1/ back after gear deleted. or delete the existing config files for running gear. 3. Run oo-accept-node -v Actual results: It will pass the checking. Expected results: Should fail since the http config does not match the gear. Additional info: Set it to low severity since for the online product, mod_rewrite plugin is using for most of the nodes. --- Additional comment from Meng Bo on 2014-08-21 02:31:50 EDT --- Raise the severity since the vhost plugin will be used by default. And seems the behavior is a little different for now, but the oo-accept-node will still only check the mod_rewrite httpd configs. # oo-accept-node -v INFO: loading node configuration file /etc/openshift/node.conf INFO: loading resource limit file /etc/openshift/resource_limits.conf INFO: finding external network device INFO: checking that external network device has a globally scoped IPv4 address ... INFO: checking 1 user accounts INFO: checking application dirs INFO: checking system httpd configs FAIL: No such file or directory - /etc/httpd/conf.d/openshift/aliases.db FAIL: No such file or directory - /etc/httpd/conf.d/openshift/idler.db FAIL: No such file or directory - /etc/httpd/conf.d/openshift/nodes.db FAIL: No such file or directory - /etc/httpd/conf.d/openshift/sts.db FAIL: No such file or directory - /etc/httpd/conf.d/openshift/aliases.txt FAIL: No such file or directory - /etc/httpd/conf.d/openshift/idler.txt FAIL: No such file or directory - /etc/httpd/conf.d/openshift/nodes.txt FAIL: No such file or directory - /etc/httpd/conf.d/openshift/sts.txt FAIL: Gear has a web framework cartridge but no Apache configuration: 53f5c91b6db2e685f9000075 --- Additional comment from Rajat Chopra on 2014-08-21 16:13:14 EDT --- To master: https://github.com/openshift/origin-server/pull/5736 To stage : https://github.com/openshift/origin-server/pull/5737 --- Additional comment from Meng Bo on 2014-08-21 23:03:06 EDT --- The bug got partial fixed, it will not check the mod_rewrite apache configs when using vhost plugin. But it still cannot find out the configuration issue for vhost plugin, as comment#0 said. Remove the gear apache config 53f6e9ef7828706bb4000001_bmengsdev_0_php54.conf under /var/lib/openshift/.httpd.d/ and run oo-accept-node -v. It will report pass, and it should figure out the apache config mis-match. --- Additional comment from Rajat Chopra on 2014-08-22 01:07:28 EDT --- It is correct that all the functionality of accept-user that existed for mod-rewrite, has not been imported to vhost. This is one of them. If you delete the gear's config, then we will not be able to report it. Some checks remain, like if we have a config but the gear does not exist, then it will be reported. A new user story will cover the improvements meant for oo-accept-node in vhost mode. Marking this ON_QA. --- Additional comment from Meng Bo on 2014-08-22 01:36:23 EDT --- According to comment#4, move the bug to verified.
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 1000 days