Bug 1330581

Summary: The RtFilter load vHostMappingFile but it's content is not processed and used.
Product: [JBoss] JBoss Operations Network Reporter: bkramer <bkramer>
Component: Monitoring - CallTimeAssignee: Michael Burman <miburman>
Status: CLOSED WONTFIX QA Contact: Mike Foley <mfoley>
Severity: medium Docs Contact:
Priority: medium    
Version: JON 3.3.5CC: bkramer, fbrychta, loleary
Target Milestone: ---Keywords: Triaged
Target Release: JON 3.3.9   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-07-13 14:56:33 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: 1330585    
Bug Blocks:    

Description bkramer 2016-04-26 14:01:54 UTC
Description of problem:
The RtFilter load vHostMappingFile but it's content is not processed and used.


Version-Release number of selected component (if applicable):
JBoss ON 3.3.5

How reproducible:
Always

Steps to Reproduce:
1. Install and configure RtFilter in JBoss EAP 6 standalone server as per [1].

2. Then Add following in web application web.xml :

<filter>
    <filter-name>RhqRtFilter</filter-name>
    <filter-class>org.rhq.helpers.rtfilter.filter.RtFilter</filter-class>
    <init-param>
        <param-name>vHostMappingFile</param-name>
        <param-value>vhost-mappings.properties</param-value>
    </init-param> 
</filter>

3. Create vhost-mappings.properties file (in jboss.server.config.dir) with below configuration :

jon.localhost.com = testvirtualserver
test1.example.com = testvirtualserver

4. Restart the JBoss EAP 6 server to reload the new changes.


Actual results:

The RtFilter loads vHostMappingFile but it does not read content of the vhost-mappings.properties file and call time metrics will be logged in the predefined file name.


Expected results:

The RtFilter loads vHostMappingFile, reads it and processes it so that call time metrics are captured in the correct files as defined in the vhost-mappings.properties file [2].


Additional info:


[1] https://access.redhat.com/documentation/en-US/Red_Hat_JBoss_Operations_Network/3.3/html/Users_Guide/jboss-rt-seven.html
[2] Table 21.1. Parameters Available for User-Defined <filter> Settings in [1] - vHostMappingFile parameter

Comment 1 Larry O'Leary 2016-04-28 14:43:02 UTC
@bkramer, can you review Bug 1209558 as I think this is the same thing and therefore a regression?

Comment 2 Larry O'Leary 2016-04-28 14:44:24 UTC
In addition to what I requested in comment 1, could you also provide the complete EAP version information? Perhaps that is the difference here compared to Bug 1209558.

Comment 3 bkramer 2016-04-28 15:19:33 UTC
(In reply to Larry O'Leary from comment #1)
> @bkramer, can you review Bug 1209558 as I think this is the same thing and
> therefore a regression?

Larry, that's a good question. 

The title of Bug 1209558 is: RtFilter never load vHostMappingFile from absolute or relative path in EAP 6. 

So, if "load" only means that JBoss ON can find this file then this is a new issue (this is why the title of this Bug is: The RtFilter load vHostMappingFile but it's content is not processed and used). If "load" means that file is found and it's content is used properly - then this Bug is duplicated and we have a regression. 

EAP 6.4.6 was used for test.