Bug 1746912 - Async hypervisor update doesn't override nil hypervisorId
Summary: Async hypervisor update doesn't override nil hypervisorId
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Candlepin
Classification: Community
Component: candlepin
Version: 2.6
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: 2.6
Assignee: Abhishek Kumar
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks: 1744515 1751727
TreeView+ depends on / blocked
 
Reported: 2019-08-29 13:49 UTC by Jonathon Turel
Modified: 2019-09-19 15:46 UTC (History)
6 users (show)

Fixed In Version: candlepin-2.6.9-1
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1751727 (view as bug list)
Environment:
Last Closed: 2019-09-19 15:46:57 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github candlepin candlepin pull 2436 0 None closed [2.6] 1746912: update new hypervisorid when existing hypervisorid is null; ENT-1603 2020-05-01 17:27:16 UTC

Description Jonathon Turel 2019-08-29 13:49:02 UTC
Description of problem:

If a hypervisor is registered with subscription-manager it won't have a hypervisorId at that time. Subsequent virt-who checkins won't set the hypervisorId to the value in the virt-who report (The host will be reported as Unchanged)

Version-Release number of selected component (if applicable): candlepin-2.6.8-1.el7sat.noarch


How reproducible: Always


Steps to Reproduce:
1. Register a hypervisor with subman
2. Install virt-who on the hypervisor and initiate a checkin (ensure the DMI UUID is present so it finds the existing hypervisor)

Actual results: hypervisorId doesn't get updated to what's in the virt-who report


Expected results: it should be updated


Additional info:

Related code: https://github.com/candlepin/candlepin/blob/bf4b1f18d045dcec3136a1b0f4e94452c80728c9/server/src/main/java/org/candlepin/service/impl/HypervisorUpdateAction.java#L153-L154


Note You need to log in before you can comment on or make changes to this bug.