Bug 2255949

Summary: 'Enable repository sets' in Errata tile of Host's Overview page in Satellite Web UI for RHEL 6 hosts even when repositories are enabled.
Product: Red Hat Satellite Reporter: Akshay Kapse <akapse>
Component: Hosts - ContentAssignee: Ian Ballou <iballou>
Status: CLOSED ERRATA QA Contact: visawant
Severity: medium Docs Contact:
Priority: medium    
Version: 6.15.0CC: ahumbe, iballou, jlenz, pcreech, rlavi, visawant, zhunting
Target Milestone: 6.15.0Keywords: 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: 2024-04-23 17:16:41 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 Akshay Kapse 2023-12-27 02:59:07 UTC
Description of problem:
- Errata tile in Host's Overview page on Satellite Web UI for RHEL 6 is blank with "No installed packages and/or enabled repositories have been reported by subscription-manager."

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

How reproducible:
- Easily

Steps to Reproduce:
1. Register RHEL 6 host.
2. Check Host Overview tab for Errata tile.
3. Check enabled repositories:
# yum repolist
repo id                                       repo name                                                                  status
rhel-6-server-els-rpms                        Red Hat Enterprise Linux 6 Server - Extended Life Cycle Support (RPMs)     21,451
rhel-6-server-els-satellite-client-6-rpms     Red Hat Satellite Client 6 (for RHEL 6 Server - ELS) (RPMs)                    20
repolist: 21,471


Try restarting services:
# service rhsmcertd restart
Stopping rhsmcertd...                                      [  OK  ]
Starting rhsmcertd...                                      [  OK  ]
# subscription-manager refresh
1 local certificate has been deleted.
All local data refreshed

Still Highlighted 'Enable repository sets'.

Actual results:
- 'No installed packages and/or enabled repositories have been reported by subscription-manager.'
Highlighted 'Enable repository sets'

Expected results:
- Should show correct information as for other RHEL releases.

Additional info:

Comment 3 Jeremy Lenz 2024-01-02 16:42:41 UTC
This looks like Satellite isn't getting package profile uploads from the host. I would assume that in addition to Errata, the Packages tab is also blank.

Does installing katello-host-tools on the host fix it?

Failing that, is it possible to upgrade subscription-manager on the host?

Comment 4 Akshay Kapse 2024-01-03 01:37:06 UTC
Hello,

Package katello-host-tools is installed on the host but still there is no reporting.

I can see details in 'Packages' tab.
If clicked on tab 'Repository Sets' then it shows enabled repositories too but on 'Errata' tile it says 'Enable Repository Sets'
and 'Errata' tab is also empty.

Comment 5 Jeremy Lenz 2024-01-03 14:38:33 UTC
If Satellite knew that katello-host-tools is installed, the error message should be "No installed packages and/or enabled repositories have been reported by katello-host-tools." Seems like we're having problems uploading the enabled repositories and/or installed package list.

What is the result of running 'katello-enabled-repos-upload --force' or 'katello-package-upload --force' ?

Is the issue only with a single host, or with all rhel6 hosts?

Comment 8 Ian Ballou 2024-01-19 22:54:08 UTC
katello-enabled-repos-upload is not needed to get the package profile pushed to Satellite -- it is done by subscription-manager when a yum command (like install) is run. You'll see the issue go away if you `yum install` something.

Once I installed some package, all of the errata were correctly reported on my RHEL 6 client.

On top of that, I was able to enable the RHEL 6 repositories via the UI.

---

I was able to run `katello-enabled-repos-upload --force` once I did the following:


yum install python-setuptools


I suppose the fix here would be to make python-setuptools a requirement of katello-host-tools for EL6 only.

Patrick, what would it take to get python-setuptools added as a dependency for EL6 katello-host-tools? Is that reasonably possible?

Otherwise we can mark this as a documentation issue for EL6.

Comment 9 Patrick Creech 2024-01-23 15:59:09 UTC
The technical aspect of updating, it shouldn't be difficult to add a requirement on that in the spec file.  Someone will need to update the katello-host-tools spec upstream so we can ingest it properly.

Comment 15 Ian Ballou 2024-01-25 18:45:20 UTC
PR is out -- ready for testing

Comment 16 Bryan Kearney 2024-01-25 20:02:53 UTC
Upstream bug assigned to iballou

Comment 17 Bryan Kearney 2024-01-25 20:02:55 UTC
Upstream bug assigned to iballou

Comment 18 Bryan Kearney 2024-01-30 16:02:51 UTC
Moving this bug to POST for triage into Satellite since the upstream issue https://projects.theforeman.org/issues/37106 has been resolved.

Comment 19 visawant 2024-02-14 15:47:02 UTC
Verified 
Satellite 6.15.0 snap 9
katello-host-tools-4.2.3-5.el6sat.noarch.rpm


Pre-requisites:
---------------
1. Make sure Client repos for RHEL-6 are enabled to install katello-host-tools package on rhel-6 content host
rhel-6-server-els-rpms
rhel-6-server-els-satellite-client-6-rpm


Steps performed:
---------------
1. Register RHEL 6 Host
2. Install katello-host-tools package on client
# yum install katello-host-tools
# katello-enabled-repos-upload --force

3. Check enabled repositories:
# yum repolist
rhel-6-server-els-satellite-client-6-rpms              Red Hat Satellite Client 6 (for RHEL 6 Server - ELS) (RPMs)
rhel-6-server-extras-rpms                              Red Hat Enterprise Linux 6 Server - Extras (RPMs) 
OR
# subscription-manager repos

4. Check Host Overview tab for Errata tile.

5. If any message "All up to date" it means package profile upload

6. If don't see any errata then just try to downgrade some of packages
# yum downgrade crda cpio cloud-init

Comment 22 errata-xmlrpc 2024-04-23 17:16:41 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.15.0 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-2024:2010