Bug 2080386

Summary: [RFE] Hosts should upload package profile after content view / lifecycle environment change
Product: Red Hat Satellite Reporter: Aldrey Souza <alsouza>
Component: Hosts - ContentAssignee: Jeremy Lenz <jlenz>
Status: CLOSED ERRATA QA Contact: David Moore <damoore>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.10.0CC: damoore, feper, iballou, jbhatia, jlenz, sbible
Target Milestone: 6.14.0Keywords: FutureFeature, Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-11-08 14:17:47 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Aldrey Souza 2022-04-29 15:04:20 UTC
Description of problem:

 After changing the Content-View the Satellite doesn't show the errata information properly

Version-Release number of selected component (if applicable):
Satellite 6.10.4

How reproducible:

 Change the Content-View or Lifecycle-environment via WebUI doesn't work as expected to update the errata information

Steps to Reproduce:
1. Satellite WebUI -> Hosts -> Content Hosts -> server 
2. Change the Content-View to another one


Actual results:
 The errata information is the same but there are new errata available.

Expected results:
 The Satellite updates this information or trigger some task for that

Additional info:

Comment 18 Jeremy Lenz 2023-03-17 14:37:52 UTC
It's true that you need to run 'subscription-manager repos' or some other action that triggers a profile upload, before the host's errata and package information will be updated.

I'm not yet sure where the fix is, but this would be a valid RFE.

Comment 19 Jeremy Lenz 2023-03-17 15:35:01 UTC
A possible fix in Katello would be

When changing a host's CV/LCE:

1. Display a banner informing the user that changes to errata applicability and installed packages won't be reflected until the next checkin or package action.
2. Offer the user the option to send the host a REX job that initiates a package profile upload, so that you won't have to wait for the above.

Comment 20 Jeremy Lenz 2023-03-23 13:31:55 UTC
*** Bug 2168710 has been marked as a duplicate of this bug. ***

Comment 21 Jeremy Lenz 2023-03-23 13:36:58 UTC
See https://bugzilla.redhat.com/show_bug.cgi?id=2168710#c15 which confirms the fix should be in Katello and not sub-man/yum/dnf.

Comment 23 Jeremy Lenz 2023-03-30 16:19:11 UTC
Created redmine issue https://projects.theforeman.org/issues/36256 from this bug

Comment 24 Bryan Kearney 2023-03-30 20:02:42 UTC
Upstream bug assigned to jlenz

Comment 25 Bryan Kearney 2023-03-30 20:02:44 UTC
Upstream bug assigned to jlenz

Comment 26 Bryan Kearney 2023-03-30 20:02:53 UTC
Upstream bug assigned to jlenz

Comment 27 Bryan Kearney 2023-03-30 20:02:55 UTC
Upstream bug assigned to jlenz

Comment 28 Bryan Kearney 2023-04-05 00:02:43 UTC
Moving this bug to POST for triage into Satellite since the upstream issue https://projects.theforeman.org/issues/36256 has been resolved.

Comment 33 errata-xmlrpc 2023-11-08 14:17:47 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 (Important: Satellite 6.14 security and bug fix update), 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-2023:6818