Bug 534653 (RHQ-1429)

Summary: Disable "Manual add:" in inventory when the resource is marked as down, as the create will fail in any case
Product: [Other] RHQ Project Reporter: Heiko W. Rupp <hrupp>
Component: InventoryAssignee: Jirka Kremser <jkremser>
Status: CLOSED EOL QA Contact: Mike Foley <mfoley>
Severity: medium Docs Contact:
Priority: low    
Version: unspecifiedCC: cwelton, jshaughn, mazz
Target Milestone: ---Keywords: FutureFeature
Target Release: RHQ 4.13   
Hardware: All   
OS: All   
URL: http://jira.rhq-project.org/browse/RHQ-1429
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-07-04 15:05:31 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:    
Bug Blocks: 678340    

Description Heiko W. Rupp 2009-01-29 15:46:00 UTC
Go to the inventory  page of a downed resource (e.g. a platform where the agent is down).
Try to e.g. manually a postgres server.
The add dialog works as normal, but after submitting an error is shown:

An unexpected error occurred in the Agent. Failed to add resource with type [Postgres Server] and parent resource id [500050]. - Cause: java.lang.NullPointerException:null

We should perhaps grey out / disable the "Manually add" section when the resource is down, as the manual will not work when the resource is not started. 




Side note: 
Agent shows:

2009-01-29 16:38:34,119 ERROR [WorkerThread#0[127.0.0.1:57571]] (rhq.core.pc.inv
entory.InventoryManager)- Manual add failed for resource of type 'Postgres Serve
r' and parent resource id [500050].
java.lang.NullPointerException
        at org.rhq.core.pc.inventory.InventoryManager.manuallyAddResource(InventoryManager.java:387)


Comment 1 Red Hat Bugzilla 2009-11-10 20:32:48 UTC
This bug was previously known as http://jira.rhq-project.org/browse/RHQ-1429


Comment 2 Charles Crouch 2010-07-12 22:14:33 UTC
Making a bunch of UI related bugs block the 'gwt' issue. Doesn't mean these have to be done, but they should at least be thought about.

Comment 3 John Mazzitelli 2011-02-11 21:56:37 UTC
there are two items - in the left hand resource tree, right mouse button and the inventory tab>children there is an Import option. That's the option we should disable.

Comment 4 John Mazzitelli 2011-02-11 21:58:01 UTC
this is also true for the Create child option as well (from the left hand tree popup menu). need to disable that too.

Comment 5 Jay Shaughnessy 2014-05-02 20:55:48 UTC
I believe this is still true. Not sure.

Comment 6 Jirka Kremser 2017-07-04 15:05:31 UTC
too old to fix