Bug 2046307

Summary: New host details Errata overview card shows stale data for unregistered host
Product: Red Hat Satellite Reporter: Jeremy Lenz <jlenz>
Component: Errata ManagementAssignee: Jeremy Lenz <jlenz>
Status: CLOSED ERRATA QA Contact: Akhil Jha <akjha>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.11.0CC: chrobert, ehelms
Target Milestone: 6.11.0Keywords: Triaged, UserExperience
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
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:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-07-05 14:32:22 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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