Project

General

Profile

Actions

Bug #37162

closed

Update Checkin time for ESXi hypervisors from virt-who report

Added by Chris Roberts 9 months ago. Updated 9 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Hosts
Target version:
Fixed in Releases:
Found in Releases:

Description

  1. What are the changes introduced in this pull request?
  • When the hypervisors checkin from a `virt-who` report we call the method `update_hosts` which calls `update_subscripiton_facet`
  • In `update_subscripiton_facet` we were not declaring the checkin time. We only created a fake subscription_facet for an ESXi host on initial checkin and creation
  • Since ESXi does not have `rhsmcertd` running, it cannot check in like a RHEL host can and update its own `subscription_facet`
  • This makes sure each time we get a report from virt-who we make sure the checkin time in the UI reflects when the report was recieved
  1. Considerations taken when implementing this change?
  • N/A
  1. What are the testing steps for this pull request?
  • Either install virt-who configure plugin either by adding it to forklift in extra plugins, or cloning the repo, adding to bundler.d in the foreman directory and then doing a db:migrate db:seed or spin up a stream box with Beaker
  • Check out PR
  • Create a config for VMware (Ping me for creds) set it for an hour
  • Run the deploy scripts for each one, verify that each report updates in the UI
  • Check the UI to make sure the checkin time reflects correctly
  • Check on it for a few hours with virt-who running on your box and see if you notice it keeping up with the checkin
Actions

Also available in: Atom PDF