Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1132963

Summary: oo-accept-node will still check the apache configs for mod_rewrite frontend when using vhost frontend plugin
Product: OpenShift Container Platform Reporter: Brenton Leanhardt <bleanhar>
Component: ContainersAssignee: Brenton Leanhardt <bleanhar>
Status: CLOSED DUPLICATE QA Contact: libra bugs <libra-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 2.1.0CC: anli, bmeng, jhonce, jokerman, libra-bugs, libra-onpremise-devel, mmccomas, rchopra
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 1059105 Environment:
Last Closed: 2014-08-25 14:37:24 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: 1059105    
Bug Blocks: 1112446    

Description Brenton Leanhardt 2014-08-22 12:53:12 UTC
+++ 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.

Comment 4 Red Hat Bugzilla 2023-09-14 02:46:11 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 1000 days