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 2046307 - New host details Errata overview card shows stale data for unregistered host
Summary: New host details Errata overview card shows stale data for unregistered host
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Errata Management
Version: 6.11.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: 6.11.0
Assignee: Jeremy Lenz
QA Contact: Akhil Jha
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-01-26 14:50 UTC by Jeremy Lenz
Modified: 2022-07-05 14:32 UTC (History)
2 users (show)

Fixed In Version: foreman-3.1.1.12-1,tfm-rubygem-katello-4.3.0.16-1
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-07-05 14:32:22 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 34320 0 Normal Ready For Testing New host details Errata overview card shows stale data for unregistered host 2022-02-14 14:52:33 UTC
Foreman Issue Tracker 34442 0 Normal Ready For Testing Allow plugins to hide tabs when host not registered 2022-02-14 14:51:55 UTC
Red Hat Product Errata RHSA-2022:5498 0 None None None 2022-07-05 14:32:30 UTC

Description Jeremy Lenz 2022-01-26 14:50:16 UTC
Steps to reproduce:
1. get a host with installable errata
2. subscription-manager unregister
3. Visit new host details page

Actual: Errata overview card still lists installable errata, but Errata tab (and content host page) lists no installable errata.  Recalculating errata fixes the issue.

I think this is because the overview card gets its data from the already-loaded host's content facet, whereas the Errata tab makes an API call.

Expected: Errata overview card and errata tab should show the same data.

Comment 1 Jeremy Lenz 2022-01-26 14:50:19 UTC
Created from redmine issue https://projects.theforeman.org/issues/34320

Comment 2 Jeremy Lenz 2022-01-26 14:50:20 UTC
Upstream bug assigned to None

Comment 3 Brad Buckingham 2022-01-27 15:20:09 UTC
Will refreshing provide the user with the correct output (as a workaround)?

Comment 4 Jeremy Lenz 2022-01-27 15:38:16 UTC
A browser refresh would not be enough. You'd have to recalculate errata applicability. (this can be done from either the old or new UI.)

Comment 5 Bryan Kearney 2022-02-17 16:06:09 UTC
Upstream bug assigned to jlenz

Comment 6 Bryan Kearney 2022-02-17 16:06:10 UTC
Upstream bug assigned to jlenz

Comment 7 Jeremy Lenz 2022-03-09 21:34:00 UTC
The scope of this ended up being that in addition to calculating errata applicability when unregistering a host, we now also hide Katello tabs & cards from the new host detail page if a host is not registered.

To verify this bz
(a) both Foreman and Katello changes must be merged (see the two redmine issues associated)
(b) Follow the testing steps from the upstream pull request https://github.com/Katello/katello/pull/9942#issue-1133010900

Comment 13 Akhil Jha 2022-04-18 06:25:53 UTC
Verified Satellite 6.11.0-16.0

Comment 16 errata-xmlrpc 2022-07-05 14:32:22 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 (Moderate: Satellite 6.11 Release), 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-2022:5498


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