Bug 535618 (RHQ-2295)
Summary: | Uninventory, then manually add of the same server resource leaves it in inconsistent state | ||
---|---|---|---|
Product: | [Other] RHQ Project | Reporter: | Jeff Weiss <jweiss> |
Component: | Inventory | Assignee: | Charles Crouch <ccrouch> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Jeff Weiss <jweiss> |
Severity: | medium | Docs Contact: | |
Priority: | high | ||
Version: | 1.3pre | CC: | cwelton, dajohnso, hbrock, jshaughn |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | All | ||
URL: | http://jira.rhq-project.org/browse/RHQ-2295 | ||
Whiteboard: | |||
Fixed In Version: | 1.4 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: |
rev4650
|
|
Last Closed: | 2014-05-09 15:32:44 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: |
Description
Jeff Weiss
2009-08-05 19:07:00 UTC
Joe to make sure resources do get properly deleted. Pushed to 1.4 This bug was previously known as http://jira.rhq-project.org/browse/RHQ-2295 I'm setting this to a higher priority for investigation in the future, since I think it indicates we're not checking the resource status properly, which would be bad. But this is not a common execution path, so will not be targeted for 2.4 Hmm...this is a long-standing bug. My apologies for not seeing it originally Jeff / Greg. ----- Jeff... The issue here is that uninventorying a server will communicate with the agent responsible for managing that resource. It will remove that resource from the agent-side inventory...which then (I believe) triggers another auto-discovery scan...which re-discovers and re-reports the resource. In this case, the error message (depending on timing) might be completely accurate. If you go back to the auto-discovery portlet after seeing the error message, you'll notice that the resource IS in fact there (in this case, it's in the NEW state and needs to be re-imported). Greg... I don't believe this is an issue with async uninventory (first available in the RHQ 1.3.0 release, shortly before this bug was filed). Part of the in-band work for uninventory is to "destroy" the just-uninventoried resources by: 1) Marking the InventoryStatus as UNINVENTORIED (async job processes these) 2) Setting the agent reference to NULL (simulate agent-side deletion) 3) Setting the parent resource to NULL (async delete can occur in any order) 4) Setting the resourceKey to 'deleted' (prevents dup resourceKey during rediscovery) ----- So I think next steps are to kick this back to QA, re-run the reproduction steps, and determine whether the above analysis (the resource is automatically rediscovered and can be found in the AD portlet) is correct. If it is, then the very least we can do is adjust the error message to be more accurate, and point (or redirect) the user to the correct place depending on which state (InventoryState) the resource is in. Joseph/Charles: fix or doco this? The needinfo request[s] on this closed bug have been removed as they have been unresolved for 1000 days |