Bug 642622

Summary: [apache] ServerName with a port spec confuses the discovery
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: sdharane, 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    

Description Lukas Krejci 2010-10-13 12:52:49 UTC
Description of problem:
According to the docs, the ServerName directive value has the following format:
[scheme://]fully-qualified-domain-name[:port]

However if the scheme or port part is specified in the name, the plugin fails to discover the corresponding resource.

If such ServerName is specified in the main server config, the plugin fails to even discover the server. If such ServerName is present in the vhost, that vhost is not discovered.

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

How reproducible:
always

Steps to Reproduce:
1. Define ServerName http://localhost:80/ in the main httpd.conf
2. Let RHQ run the discovery
3. No apache gets discovered
4. Repeat 1. - 3. with the ServerName defined in some vhost
5. The corresponding vhost doesn't get discovered
  
Actual results:
$STEPS

Expected results:
The discovery should run fine in all the tested cases

Additional info:

Comment 1 Sudhir D 2010-10-22 10:51:38 UTC
Verified on the latest build of rhq-server-4.0.0-SNAPSHOT. 

The auto discovery works as expected for all the steps mentioned in previous comment. 

Marking this bug as verified.

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

Defined ServerName directive http://localhost:80/ in the main httpd.conf and in a vhost.

Apache gets discovered displaying the ServerName in main and vhost as defined.

Comment 3 Corey Welton 2011-05-24 01:11:40 UTC
Bookkeeping - closing bug - fixed in recent release.

Comment 4 Corey Welton 2011-05-24 01:11:41 UTC
Bookkeeping - closing bug - fixed in recent release.