Bug 1340088
Summary: | Duplicate entries for hypervisors after renaming content host | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | Red Hat Satellite | Reporter: | Stefan Meyer <smeyer> | ||||||
Component: | Hosts | Assignee: | Tom McKay <tomckay> | ||||||
Status: | CLOSED ERRATA | QA Contact: | Katello QA List <katello-qa-list> | ||||||
Severity: | high | Docs Contact: | |||||||
Priority: | high | ||||||||
Version: | 6.2.0 | CC: | akarimi, cwelton, mmccune, sghai, tomckay | ||||||
Target Milestone: | Unspecified | Keywords: | Triaged | ||||||
Target Release: | Unused | ||||||||
Hardware: | All | ||||||||
OS: | All | ||||||||
Whiteboard: | |||||||||
Fixed In Version: | rubygem-katello-3.0.0.53-1 | Doc Type: | If docs needed, set a value | ||||||
Doc Text: | Story Points: | --- | |||||||
Clone Of: | Environment: | ||||||||
Last Closed: | 2016-07-27 11:26:51 UTC | Type: | Bug | ||||||
Regression: | --- | Mount Type: | --- | ||||||
Documentation: | --- | CRM: | |||||||
Verified Versions: | Category: | --- | |||||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||
Cloudforms Team: | --- | Target Upstream Version: | |||||||
Embargoed: | |||||||||
Attachments: |
|
Description
Stefan Meyer
2016-05-26 12:35:08 UTC
Created redmine issue http://projects.theforeman.org/issues/15197 from this bug Note that the host name is not changed in candlepin, which I think is a good thing. In katello, when looking for existing hypervisors to match on the results returned from candlepin, the UUID needs to be searched for with the fallback being the name. This situation will lead to corrupt database since there will be multiple hosts referencing a single candlepin consumer. If the consumer is deleted (ie. one of the hosts is deleted) then the other records will fail w/ errors when queried. Upstream bug assigned to tomckay Upstream bug component is Hosts Upstream bug assigned to tomckay Moving to POST since upstream bug http://projects.theforeman.org/issues/15197 has been closed Verified with sat62 GA snap18.1 I registered rhev hypervisor with satellite62 server and later changed the content-host name from "virt-who-rhevh2-1" to "rhevh2". Content host was successfully renamed after running virt-who without another duplicate entry. Created attachment 1174877 [details]
before renaming the content-host
Created attachment 1174879 [details]
after renaming and rerunning virt-who can see only on entry with name rhevh
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2016:1501 |