Problem: Our company has a list of sentos 6 hosts running legacy apps, We have a subscription to a repository where update packages are maintained. this repo is in foreman and synced and appear on the endpoint correctly when registration is completed.
However performing a refresh errata results in some cases results in execution failure. and in the case that it is successful you can see in the output that the repository has been added to the redhat.repo file on the endpoint.
in the content tab of the host under repository sets the repository is enabled. the repository itself shows over 2000 packages and 440 errata. when you perform a yum check-update you can see there are a number of packages that need updating. yet under the errata tab on the host entry it shows;
Unknown errata status
No installed packages and/or enabled repositories have been reported by subscription-manager.
this results in every centos 6 machine showing up in the interface with a yellow triangle.
Expected outcome:
Centos 6 machines should report back properly with errata data
Thanks and I have already raised that its end of life and not supported with the senior management and other team members but I have been told “well your going to have to find a way to make it just work” so I don’t really have any leigh way here.
Is there at least a way to stop it reporting these with the orange triangles?
I checked this on a CentOS 7 host, so perhaps double check in case the configuration options are different on CentOS 6’s version of subscription-manager.
Another thing to check is if you have a file for /var/lib/rhsm/cache/profile.json and if it’s up to date on the CentOS 6 machine.
Is there at least a way to stop it reporting these with the orange triangles?
We do have a feature in the host’s details UI to ignore certain host statuses, but it will likely come back when the host reports back in. Let’s try to debug why the package profile isn’t making it first.
By the way, I’m not certain it would be an issue here, but another thing to consider is that CentOS 6 relies on SHA-1 while CentOS 9 restricts its use by default.
I am not sure that sub-man reports package profiles in EL6. You may need to install katello-host-tools on the hosts to get package profile uploads via katello-upload-profile (is that even still available!?)