Bug 1410601

Summary: [RFE] virt-who need to make sure there is only one entry in satellite content host for the same hypervisor when configure hypervisor_id for uuid or hostname or hwuuid
Product: [Community] Candlepin Reporter: Barnaby Court <bcourt>
Component: candlepinAssignee: William Poteat <wpoteat>
Status: CLOSED CURRENTRELEASE QA Contact: Katello QA List <katello-qa-list>
Severity: high Docs Contact:
Priority: medium    
Version: 2.0CC: bbuckingham, bcourt, csnyder, hsun, jsherril, katello-qa-list, khowell, kuhuang, redakkan, rjerrido, satellite6-bugs, sgao, skallesh, sm, tomckay, wpoteat, yuefliu
Target Milestone: ---Keywords: FutureFeature, Triaged
Target Release: 2.6   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: candlepin-2.6.4-1 Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: 1408782
: 1694752 (view as bug list) Environment:
Last Closed: 2019-04-10 19:58:06 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:
Bug Depends On:    
Bug Blocks: 1362724, 1408782, 1410600, 1412719    

Comment 1 Kevin Howell 2017-07-27 15:07:04 UTC
For candlepin, overall changes necessary are:
 1) Accept all 3 (hw_uuid, uuid, hostname) [TBD: as facts or as their own thing]
 2) When receiving a hypervisor checkin, lookup existing hypervisors by the tuple (hw_uuid, uuid, hostname) & delete/migrate as necessary.

Some design decisions to be made before implementation.

Comment 2 Kevin Howell 2017-07-31 17:42:14 UTC
*** Bug 1380510 has been marked as a duplicate of this bug. ***

Comment 3 Kevin Howell 2017-07-31 17:44:34 UTC
*** Bug 1412719 has been marked as a duplicate of this bug. ***

Comment 5 Kevin Howell 2017-12-07 15:10:49 UTC
*** Bug 1520807 has been marked as a duplicate of this bug. ***

Comment 7 johnhomes 2019-02-07 10:10:27 UTC
lookup existing hypervisors by the tuple (hw_uuid, uuid, hostname) & delete/migrate as necessary.
Thanks
https://driverrestore.com/

Comment 8 William Poteat 2019-03-27 16:14:18 UTC
This was errantly resolved as part of a change for libvirt and rhevm. Will create a separate fix for esx.

Comment 9 William Poteat 2019-03-28 19:45:58 UTC
An additional exception existed in the matching of a hypervisor when its hypervisor id changed.

Comment 10 William Poteat 2019-03-28 19:47:33 UTC
Will also require a virt-who update. Will be included in RHEL 7.7 and RHEL 8.1.

Comment 11 Jonathon Turel 2019-04-12 13:59:27 UTC
Created redmine issue https://projects.theforeman.org/issues/26600 from this bug