Bug 642610 - JON241: [apache] Unable to detect the ServerName directive if it is defined in an included configuration file
Summary: JON241: [apache] Unable to detect the ServerName directive if it is defined i...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: RHQ Project
Classification: Other
Component: Plugins
Version: 3.0.0
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
: ---
Assignee: RHQ Project Maintainer
QA Contact: Corey Welton
URL:
Whiteboard:
Depends On:
Blocks: jon241-bugs 643563
TreeView+ depends on / blocked
 
Reported: 2010-10-13 12:34 UTC by Lukas Krejci
Modified: 2011-05-24 01:17 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)
Screenshot (124.74 KB, image/png)
2010-11-10 12:36 UTC, Sunil Kondkar
no flags Details

Description Lukas Krejci 2010-10-13 12:34:01 UTC
Description of problem:
$SUMMARY

Version-Release number of selected component (if applicable):
3.0.0

How reproducible:
always

Steps to Reproduce:
1. Don't define ServerName in the main httpd.conf file
2. Put Include "somefile.conf" in the main httpd.conf
3. Define the ServerName directive in the "somefile.conf"
4. Let RHQ discover the apache instance with the above config and inventory it.
5. Enable Augeas support in the connection properties to be able to see the configuration.
6. Notice that the Server name doesn't have the value defined in the config file.
  
Actual results:
No value for the Server name in the RHQ resource configuration

Expected results:
The value as in the config file.

Additional info:

Comment 1 Charles Crouch 2010-11-02 05:55:02 UTC
This appears to have gone into the release-3.0 branch so should be testable in
JON2.4.1

http://git.fedorahosted.org/git/?p=rhq/rhq.git;a=commit;h=fb4d2bdf36d713aa9bc9880db478efc81194c569

Comment 2 Sunil Kondkar 2010-11-10 12:35:27 UTC
Verified on rhq-release branch 3.0.1 - build#422

Commented directives like ServerName and ServerAdmin in main httpd.conf file.
Included test.conf in the main httpd.conf (Include conf.d/test.conf)

Created a file test.conf at /etc/httpd/conf.d/

Defined the ServerName and ServerAdmin directives in the "test.conf"

Discovered and inventoried the apache instance with the above config in RHQ.

Enable Augeas support in the connection properties.

The ServerName and ServerAdmin are displayed in resource configuration as defined in test.conf. Please refer the attached screenshot.

Comment 3 Sunil Kondkar 2010-11-10 12:36:17 UTC
Created attachment 459430 [details]
Screenshot

Comment 4 Sunil Kondkar 2010-11-18 11:30:11 UTC
Verified this against jon-server-2.4.1-SNAPSHOT build# 24. 

Followed the steps and observed that the The ServerName and ServerAdmin are displayed in resource configuration as defined in the included configuration file.

Comment 5 Corey Welton 2011-05-24 01:17:53 UTC
Bookkeeping - closing bug - fixed in recent release.

Comment 6 Corey Welton 2011-05-24 01:17:53 UTC
Bookkeeping - closing bug - fixed in recent release.

Comment 7 Corey Welton 2011-05-24 01:17:56 UTC
Bookkeeping - closing bug - fixed in recent release.

Comment 8 Corey Welton 2011-05-24 01:17:56 UTC
Bookkeeping - closing bug - fixed in recent release.


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