Support Migration Notice: To update migrated JIRA cases click here to open a new case use www.vmware.com/go/sr | vFabric Hyperic 5.7.0 is Now Available

Hyperic HQ

Agents with no associated platforms remain in the db

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: None
  • Fix Version/s: 4.6.5
  • Component/s: Agent / PDK
  • Case Links:
    none
  • Regression:
    No
  • Tags:

Description

When a platform is removed from inventory the agent remains in EAM_AGENT. This can create issues while reregistering the same agent. When this issue arises customers need to clean up EAM_AGENT manually with

DELETE FROM EAM_AGENT WHERE ID NOT IN (SELECT agent_id FROM EAM_PLATFORM);

Need to clean up eam_agent after last platform is deleted for agent.

Activity

Hide
Wes Schlichter added a comment -

Changed PlatformManagerImpl to check if agent has 0 platforms after deleting the platform. If 0 then it removes the agent. Tested with multiple "Network Device" platforms associated with agent and deleting all but one of the platform. agent remained in db.

To git@git.springsource.org:hq/hq.git
cd05518..9000be5 master -> master

Show
Wes Schlichter added a comment - Changed PlatformManagerImpl to check if agent has 0 platforms after deleting the platform. If 0 then it removes the agent. Tested with multiple "Network Device" platforms associated with agent and deleting all but one of the platform. agent remained in db. To git@git.springsource.org:hq/hq.git cd05518..9000be5 master -> master
Hide
yael twina (c) added a comment -

tested on version 4.6.5.BUILD-SNAPSHOT-2012-01-15.
i deleted 1 platform.
i runed "select * from EAM_AGENT" and "select * from EAM_PLATFORM" before i deleted and after and saw the right change.

Show
yael twina (c) added a comment - tested on version 4.6.5.BUILD-SNAPSHOT-2012-01-15. i deleted 1 platform. i runed "select * from EAM_AGENT" and "select * from EAM_PLATFORM" before i deleted and after and saw the right change.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved:
    Last comment:
    2 years, 14 weeks ago