Bug 235385
Summary: | Remove extra entries in rhnServerDmi and in rhnRam | ||
---|---|---|---|
Product: | [Retired] Red Hat Network | Reporter: | John Sanda <jsanda> |
Component: | RHN/Web Site | Assignee: | John Sanda <jsanda> |
Status: | CLOSED DUPLICATE | QA Contact: | Red Hat Satellite QA List <satqe-list> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | rhn500 | CC: | jeckersb, rhn-bugs |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2007-12-14 19:22:02 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
John Sanda
2007-04-05 14:56:06 UTC
There are a very small number of servers that have multiple rows in rhnRam and or rhnServerDmi. It has been concluded that servers should not have multiple rows in either of these tables. For those servers that do have multiple rows, it should be treated as an error. Two things probably need to be done. 1) Remove bad data from the database. 2) Make our Hibernate error handling more robust. Currently, we almost always propagate a HibernateException up the call stack and the user winds up seeing an ISE. We need to recover from errors when possible and report/log more intelligible error messages when and where possible. Both of these items are probably beyond the scope of 501. Has this hit webdev yet? The hibernate mappings for rhnServerDmi and rhnRam are in fact correct. We have concluded that the few servers that have multiple rows in these tables have erroneous data. These extra rows need to be purged from the database. Bret, in our last conversation about this, you mentioned that we could do this at any time. Can we move this off of 501h-must since it is not a high priority issue? John, we'll align this to rhn502; once the script is done and you're happy with it, we can fast-track it through the various env's. There are currently 15 servers with >1 DMI entry, 88 with >1 CPU, and 90 with >1 RAM entry. It looks like the extras are duplicates of each other. A script that deleted all but one of the dups, however we did that, would likely be sufficient. Currently, any/all of the systems affected by this will throw an ISE if you attempt to visit their SDC pages. As an example - ... Caused by: com.redhat.rhn.common.hibernate.HibernateRuntimeException: Executing query Server.findByIdandOrgId with params {orgId=779013, sid=1000122758} failed ... Caused by: org.hibernate.HibernateException: More than one row with the given identifier was found: 1000122758, for class: com.redhat.rhn.domain.server.Ram So - right now, we need to fix up the data, regardless of whatever other work we do, it looks like. moving these to rhn505-triage until we can re-examine for rhn503+ I'm using 237898 as the master BZ for tracking this problem - closing this one as adup *** This bug has been marked as a duplicate of 237898 *** *** Bug 579491 has been marked as a duplicate of this bug. *** |