Bug 1127874

Summary: Apache httpd VirtualHost ServerName value should be used for resource's name in inventory
Product: [JBoss] JBoss Operations Network Reporter: John Mazzitelli <mazz>
Component: Plugin -- Apache, UsabilityAssignee: RHQ Project Maintainer <rhq-maint>
Status: CLOSED CURRENTRELEASE QA Contact: Sunil Kondkar <skondkar>
Severity: medium Docs Contact:
Priority: medium    
Version: JON 3.0.1CC: lkrejci, loleary, mfoley, miburman, mshirley, myarboro, skondkar
Target Milestone: ER01Keywords: Triaged
Target Release: JON 3.3.0Flags: jmorgan: needinfo? (skondkar)
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
JBoss ON was not reflecting the Apache Virtual Host ServerName specified in the httpd.conf virtual host definition. This caused JBoss ON to not display Apache Virtual Hosts correctly: all virtual hosts showed the same name or IP Address. The Virtual Host resource name was shown as the machine name rather than the specified ServerName. The fix changes the behaviour of the Apache Plug-in to select the ServerName and VirtualHost combination as the first priority for resourceName, and fall back to ServerName if required.
Story Points: ---
Clone Of: 837449 Environment:
Last Closed: 2014-12-11 14:05:15 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---
Bug Depends On: 835312, 837449    
Bug Blocks:    
Attachments:
Description Flags
screenshot none

Comment 1 John Mazzitelli 2014-08-07 20:01:55 UTC
git commit to release/3.3.x : 19b538137f7c45f52e6a639d539fa220a68e72f6

Comment 2 Simeon Pinder 2014-08-19 23:50:47 UTC
Moving to ON_QA as available to test in the following brew build:

https://brewweb.devel.redhat.com//buildinfo?buildID=379025

Comment 3 Sunil Kondkar 2014-08-25 08:01:03 UTC
Verified on version : 3.3.0.ER01 build Number :	23b3476:f3aa7e7

Followed the steps and verified that virtual host is referencing the value of the ServerName directive of the virtual host configuration.
Please refer attached screenshot.

Comment 4 Sunil Kondkar 2014-08-25 08:02:03 UTC
Created attachment 930359 [details]
screenshot