Bug 895686

Summary: [RFE] Generate a partition event when server goes down
Product: [Other] RHQ Project Reporter: Jirka Kremser <jkremser>
Component: Core Server, High AvailabilityAssignee: RHQ Project Maintainer <rhq-maint>
Status: NEW --- QA Contact: Mike Foley <mfoley>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 4.5CC: hrupp
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Description Jirka Kremser 2013-01-15 14:14:53 EST
Description of problem:
When RHQ server is starting the partition event of type OPERATION_MODE_CHANGE (DOWN -> NORMAL) is invoked. However, there is no dual event generated, when server goes down, so if user displays all partition events it is quite counterintuitive, because there is a lot of DOWN -> NORMAL events and no NORMAL -> DOWN event.

Method TopologyManagerBean.updateServerMode() or even better ServerManagerBean.establishCurrentServerMode() should be called in some AS shutwdown hook or registered an MBean implementing the StartupServiceMBean.stopService() could do the work. 

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

How reproducible: