Bug 871974

Summary: Add availability type REMOVED to AvailabilityType class
Product: [Other] RHQ Project Reporter: Elias Ross <genman>
Component: InventoryAssignee: RHQ Project Maintainer <rhq-maint>
Status: CLOSED DUPLICATE QA Contact: Mike Foley <mfoley>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: genman, hrupp, jshaughn
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-05-02 21:05:53 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:

Description Elias Ross 2012-10-31 21:33:19 UTC
Reason is explained here: https://community.jboss.org/thread/212115

Here's the JavaDoc showing the use cases for this enum type.

public enum AvailabilityType {

    /**
     * Resource was externally removed.
     * Example situations:
     * <ul>
     * <li>For a server resource, the agent observes the server is no longer installed.</li>
     * <li>For a .war deployment, the .war is no longer running on the server</li>
     * <li>For a file, the agent observes the file is no longer on the file system.</li>
     * <li>For a database table, the agent sees the table was removed.</li>
     * </ul>
     * The difference between REMOVED and DOWN is that REMOVED resources were
     * likely intentionally removed and advises administrators that this
     * resource should no longer be inventoried.
     * <p/>
     * This availability should only be used if the agent is certain the
     * resource was removed. These are examples where DOWN would be the correct
     * type:
     * <ul>
     * <li>For a database table, the agent has no permissions to access the
     * parent schema. It is possible the table still exists.</li>
     * <li>For a file, the agent cannot access the parent's directory.</li>
     * <li>For a .war file, the server was shut down as part of upgrade.</li>
     * </ul>
     * As a rule of thumb, if the parent of a resource is available,
     * and if at least one 'siblings' of a resource are available,
     * but this particular resource is absent, then it is suggested to
     * return this availability type.
     */
    REMOVED
    ;

Comment 1 Jay Shaughnessy 2014-05-02 18:45:19 UTC
Hi Elias, 

This has been something we've thought about for a while. Bug 1093822 is being worked on and has some overlap with this RFE.  Please check it out and comment. Thanks!

Comment 2 Elias Ross 2014-05-02 20:56:49 UTC
This is exactly what I was after.

You can mark this as a duplicate.

Comment 3 Elias Ross 2014-05-02 20:57:04 UTC
This is exactly what I was after.

You can mark this as a duplicate.

Comment 4 Jay Shaughnessy 2014-05-02 21:05:53 UTC
Excellent, thanks.

*** This bug has been marked as a duplicate of bug 1093822 ***