Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1653386 - Can't search for virt-who hypervisors
Summary: Can't search for virt-who hypervisors
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Hosts - Content
Version: 6.5.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: 6.5.0
Assignee: Evgeni Golov
QA Contact: Perry Gagne
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-11-26 17:10 UTC by Perry Gagne
Modified: 2020-08-03 07:43 UTC (History)
5 users (show)

Fixed In Version: tfm-rubygem-katello-3.10.0
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-05-14 12:39:09 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 25407 0 High Closed Katello::Resources::Candlepin::Consumer.get not always returns HashWithIndifferentAccess 2020-10-05 08:02:22 UTC
Red Hat Bugzilla 1653430 0 unspecified CLOSED Virt-who Status column shows "No Report Sent" even though reports have been sent . 2021-02-22 00:41:40 UTC
Red Hat Product Errata RHSA-2019:1222 0 None None None 2019-05-14 12:39:16 UTC

Internal Links: 1653430

Description Perry Gagne 2018-11-26 17:10:09 UTC
Description of problem: It doesn't seem possible to search for virt-who hypervisors anymore. This seems to be an issue in 6.4.1, (possible 6.4.0) and 6.5


Version-Release number of selected component (if applicable): Sat 6.5.0 snap 5 


How reproducible:


Steps to Reproduce:
1. Configure virt-who to repo hypervisor hosts 
2. In content Host, try to search "hypervisor=True"


Actual results:
No Results returned


Expected results:
Host which are virt-who reported hypervisors are returned. 

Additional info:

Comment 5 John Mitsch 2019-01-07 16:48:51 UTC
Here is what I found:

Upstream - Hypervisor search works
6.5 (satellite-6.5.0-5.beta.el7sat.noarch) - Hypervisor search works
6.4 (satellite-6.4.1-2.el7sat.noarch) - Hypervisor search does not work

It appears this is still an issue in 6.4, I will look for the commit that fixes this bug so we can pull it into 6.4

Comment 7 John Mitsch 2019-01-08 16:22:52 UTC
In 6.4, I believe the difference is what we are getting from candlepin:

6.4: irb(main):006:0> Host.find(6).subscription_facet.consumer_attributes
=> {"autoheal"=>false, "serviceLevel"=>nil, "releaseVer"=>nil, "environment"=>{"id"=>"20301a96cedcb1ef915e2149b300128a"}, "installedProducts"=>[], "guestIds"=>[]}

Compare that with upstream (I had that available to check)

irb(main):007:0> Host.find(8).subscription_facet.consumer_attributes
=> {"autoheal"=>true, "usage"=>nil, "role"=>nil, "addOns"=>[], "serviceLevel"=>"", "releaseVer"=>nil, "environment"=>{"id"=>"64c2cce3716a5bf67b0413fac95e5daa"}, "installedProducts"=>[], "guestIds"=>["b7503e93-0692-42aa-8ec9-32f2f5e99801"]}


upstream has guest ids, which triggers our logic that the host is a hypervisor.

I can look more, but there really isn't a big difference in the 6.5 and 6.4 katello code in this area, so I'm guessing it is related to what we receive from candlepin for the host's subscription facet

Comment 8 John Mitsch 2019-01-08 16:49:37 UTC
Looks like this is actually related to how we are parsing candlepin data, and will be fixed with https://bugzilla.redhat.com/show_bug.cgi?id=1651774

Comment 9 John Mitsch 2019-01-08 16:57:21 UTC
Connecting redmine issue https://projects.theforeman.org/issues/25407 from this bug

Comment 11 Perry Gagne 2019-01-24 19:42:03 UTC
Verified fix in 6.5 snap 12

Searching with hypervisor=True and hypervisor=False give the correct result.

Comment 14 errata-xmlrpc 2019-05-14 12:39:09 UTC
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/RHSA-2019:1222


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