Bug 642598

Summary: JON241: [apache] Apache resource upgraded from RHQ 1.3.1 to RHQ 3 stops collecting data on the vhost corresponding to the main server configuration
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: 2011-05-24 01:11:15 UTC 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: 642591    
Bug Blocks: 616081, 643563    

Description Lukas Krejci 2010-10-13 12:22:42 UTC
Description of problem:
The summary says it all.

This is also reproducible without the full server upgrade by installing RHQ 3 and replacing its apache plugin with the version from RHQ 1.3.1. Therefore an upgrade in the steps below can be replaced by a simply copying the RHQ 3 version of the plugin back and doing "plugins update" on the agent.
 
Version-Release number of selected component (if applicable):
3.0.0

How reproducible:
always

Steps to Reproduce:
1. Enable and configure the SNMP module in some apache instance
2. With RHQ 1.3.1, inventory that apache instance
3. Upgrade RHQ 1.3.1 to RHQ 3
  
Actual results:
$SUMMARY

Expected results:
The metrics should still be collected

Additional info:

Comment 1 Charles Crouch 2010-11-02 03:41:22 UTC
This looks like a good candidate for inclusion into the jon2.4.1. 
Since its currently ON_QA I presume is committed into master, though there is no git hash, so lets test it in jon2.4.1

Comment 2 Lukas Krejci 2010-11-10 13:32:53 UTC
This bug only tracks a different manifestation of the same underlying cause as the bug 642591.

Comment 3 Sunil Kondkar 2010-11-16 09:12:32 UTC
Verified on Build #23 (jon241-release/23)

-Enabled and configured the SNMP module in apache instance
-Started apache
-Installed jon241 build
-Replaced its apache plugin with the version from RHQ 1.3.1 (rhq-apache-plugin-1.3.1.GA.jar)
-Started rhq server and agent
-Copied rhq-apache-plugin-3.0.1-SNAPSHOT.jar to plugins directory
-At agent command prompt:
> plugins update
The plugin container has been stopped.
Updating plugins to their latest versions.
The plugin [Apache] has been updated at [rhq-apache-plugin-3.0.1-SNAPSHOT.jar].
Completed updating the plugins to their latest versions.
The plugin container has been started.

-Observed that the metrics are collected on the vhost corresponding to the main server configuration.

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

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