Bug 642610

Summary: JON241: [apache] Unable to detect the ServerName directive if it is defined in an included configuration file
Product: [Other] RHQ Project Reporter: Lukas Krejci <lkrejci>
Component: PluginsAssignee: RHQ Project Maintainer <rhq-maint>
Status: CLOSED CURRENTRELEASE QA Contact: Corey Welton <cwelton>
Severity: medium Docs Contact:
Priority: low    
Version: 3.0.0CC: skondkar
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
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:    
Bug Blocks: 616081, 643563    
Attachments:
Description Flags
Screenshot none

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.