Bug 811287

Summary: RFE (availability): Allow component code to disable or enable resource
Product: [Other] RHQ Project Reporter: Jay Shaughnessy <jshaughn>
Component: Agent, PluginsAssignee: Jay Shaughnessy <jshaughn>
Status: CLOSED CURRENTRELEASE QA Contact: Mike Foley <mfoley>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 4.3CC: hrupp
Target Milestone: ---   
Target Release: RHQ 4.4.0   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-09-01 10:15:31 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:    
Bug Blocks: 741450    

Description Jay Shaughnessy 2012-04-10 15:55:28 UTC
We already have (starting in 4.4) the ability for a user to
DISABLE/ENABLE resources via the GUI or CLI.  In some circumstances
it makes sense for plugin code to be able to do the same.  AS7 has
the notion of managed servers that may or may not be auto-started. A
managed server that is not started is not UP or DOWN, but more
logically DISABLED.  This can be determined via the component code.

This feature will make it possible for the component code to
set resource enablement programmatically.

Comment 1 Jay Shaughnessy 2012-04-10 18:54:50 UTC
commit 48694295b96f8e28a84d7f1d36be3b9d8ae456e9

Added this new feature. Called like:
     resourceContext.getAvailabilityContext().disable();



Test Notes
----------
This will likely be used in the AS7 plugin. Perhaps a test
using that plugin can be designed.

Comment 2 Heiko W. Rupp 2013-09-01 10:15:31 UTC
Bulk closing of items that are on_qa and in old RHQ releases, which are out for a long time and where the issue has not been re-opened since.