History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: RHQ-748
Type: Bug Bug
Status: Accepted Accepted
Priority: Minor Minor
Assignee: Unassigned
Reporter: Jeff Weiss
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
RHQ Project

Can't "ignore" platform resource in dashboard, when its agent is no longer running- get stack trace

Created: 21/Aug/08 04:10 PM   Updated: 13/Oct/08 03:37 PM
Component/s: FX - Inventory, Core UI, Core Server
Affects Version/s: 1.1pre
Fix Version/s: None

Time Tracking:
Not Specified

Environment: linux, 1.0.1GA

Date of First Response: 25/Aug/08 12:38 AM


 Description  « Hide
To reproduce:
Install and start an agent. Stop the agent. Now go to the server dashboard and select the discovered platform resource and click "Ignore".

Failed to import one or more resources. Cause: javax.ejb.EJBTransactionRolledbackException:Cannot commit resource [Resource[id=500630, type=RHQ Agent, key=hiredgoons RHQ Agent, name=hiredgoons RHQ Agent, version=1.0.1.GA]] to inventory, because its parent resource [Resource[id=500629, type=Linux, key=hiredgoons, name=hiredgoons, version=Linux 2.6.25.11-60.fc8]] has not yet been committed. -> java.lang.IllegalStateException:Cannot commit resource [Resource[id=500630, type=RHQ Agent, key=hiredgoons RHQ Agent, name=hiredgoons RHQ Agent, version=1.0.1.GA]] to inventory, because its parent resource [Resource[id=500629, type=Linux, key=hiredgoons, name=hiredgoons, version=Linux 2.6.25.11-60.fc8]] has not yet been committed.

 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Joseph Marques - 25/Aug/08 12:38 AM
actually, you should have gotten this error regardless of the agent's status. it's basically telling you that there's no point to ignoring a platform. since agent's have a one-to-one correspondence with platforms, this action would be analogous to starting an agent and then not wanting any of its results. although this is technically possible, we assume that the user clicked the wrong thing. so, we tell the user through the error message in the exception that they need to commit the platform first, and then they can ignore servers.

Jeff Weiss - 25/Aug/08 07:55 AM - edited
Hm. I started an agent on a machine and then decided I didn't want that machine to be monitored. By then the resource had been discovered. I wanted it to go away, so I clicked "ignore". I think that was a perfectly valid thing to do.

What was my alternative? To import it and then delete the resource? Seems a lot more intuitive to just "Ignore" it. Also, it seems like this button would be a simple way for admins to "ignore" machines where someone else installed an agent without permission. I know we have security features one can use to prevent that, but this is a 'simple' way.

Edit: Also, this error message is not helpful to the end user.

Joseph Marques - 27/Aug/08 11:48 PM
ok, jeff, you convinced me. this would be a simple way of getting around mistakes and whatnot. just gotta change the server-side ignore logic.