Description of problem: RHEL-6 client is not getting content when registered with the from SCA enabled Satellite. It is showing Overall Status: Unknown Version-Release number of selected component (if applicable): Red Hat Satellite 6.8 Beta RHEL 6.10 How reproducible: 100% Steps to Reproduce: 1. Use SCA enabled manifest on the Satellite server. 2. Register the RHEL-6 client with the Satellite server 3. Client is successfully registered but not getting any content and showing Overall Status: Unknown Actual results: Client is not getting any content from the Satellite server. Expected results: Client is supposed to get enabled repositories. Additional info: SCA enabled Manifest
# cat /etc/redhat-release Red Hat Enterprise Linux Server release 6.10 (Santiago) # rpm -qa | grep -i consumer katello-ca-consumer-dhjoshi-rhsat.syslab.pnq2.redhat.com-1.0-1.noarch [root@vm255-33 ~]# rpm -ev katello-ca-consumer-dhjoshi-rhsat.syslab.pnq2.redhat.com-1.0-1.noarch [root@vm255-33 ~]# subscription-manager remove --all; subscription-manager unregister; subscription-manager clean Network error. Please check the connection details, or see /var/log/rhsm/rhsm.log for more information. Unregistering from: subscription.rhsm.redhat.com:443/subscription Network error. Please check the connection details, or see /var/log/rhsm/rhsm.log for more information. All local data removed [root@vm255-33 ~]# curl --insecure --output katello-ca-consumer-latest.noarch.rpm https://dhjoshi-rhsat.syslab.pnq2.redhat.com/pub/katello-ca-consumer-latest.noarch.rpm % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 101 7481 101 7481 0 0 77200 0 --:--:-- --:--:-- --:--:-- 3652k [root@vm255-33 ~]# yum localinstall katello-ca-consumer-latest.noarch.rpm -y Loaded plugins: product-id, search-disabled-repos, security, subscription-manager This system is not registered with an entitlement server. You can use subscription-manager to register. Setting up Local Package Process Examining katello-ca-consumer-latest.noarch.rpm: katello-ca-consumer-dhjoshi-rhsat.syslab.pnq2.redhat.com-1.0-1.noarch Marking katello-ca-consumer-latest.noarch.rpm to be installed Resolving Dependencies --> Running transaction check ---> Package katello-ca-consumer-dhjoshi-rhsat.syslab.pnq2.redhat.com.noarch 0:1.0-1 will be installed --> Finished Dependency Resolution Dependencies Resolved =============================================================================================================================================== Package Arch Version Repository Size =============================================================================================================================================== Installing: katello-ca-consumer-dhjoshi-rhsat.syslab.pnq2.redhat.com noarch 1.0-1 /katello-ca-consumer-latest.noarch 16 k Transaction Summary =============================================================================================================================================== Install 1 Package(s) Total size: 16 k Installed size: 16 k Downloading Packages: Running rpm_check_debug Running Transaction Test Transaction Test Succeeded Running Transaction Warning: RPMDB altered outside of yum. Installing : katello-ca-consumer-dhjoshi-rhsat.syslab.pnq2.redhat.com-1.0-1.noarch 1/1 Verifying : katello-ca-consumer-dhjoshi-rhsat.syslab.pnq2.redhat.com-1.0-1.noarch 1/1 Installed: katello-ca-consumer-dhjoshi-rhsat.syslab.pnq2.redhat.com.noarch 0:1.0-1 Complete! [root@vm255-33 ~]# subscription-manager register --org="RedHat" --activationkey="test_ak_6" The system has been registered with ID: cbb83ba5-a4ca-45a8-b5fb-3e546a2f7a4a The registered system name is: vm255-33.gsslab.pnq2.redhat.com Installed Product Current Status: Product Name: Red Hat Enterprise Linux Server Status: Not Subscribed Unable to find available subscriptions for all your installed products. [root@vm255-33 ~]# subscription-manager refresh; subscription-manager status 1 local certificate has been deleted. All local data refreshed +-------------------------------------------+ System Status Details +-------------------------------------------+ Overall Status: Unknown [root@vm255-33 ~]# subscription-manager list +-------------------------------------------+ Installed Product Status +-------------------------------------------+ Product Name: Red Hat Enterprise Linux Server Product ID: 69 Version: 6.10 Arch: x86_64 Status: Not Subscribed Status Details: Starts: Ends: # yum repolist Loaded plugins: product-id, search-disabled-repos, security, subscription-manager This system is registered with an entitlement server, but is not receiving updates. You can use subscription-manager to assign subscriptions. repolist: 0
# subscription-manager unregister; subscription-manager clean Unregistering from: dhjoshi-rhsat.syslab.pnq2.redhat.com:443/rhsm System has been unregistered. All local data removed [root@vm255-33 ~]# subscription-manager register Registering to: dhjoshi-rhsat.syslab.pnq2.redhat.com:443/rhsm Username: admin Password: Organization: RedHat Environment: Library The system has been registered with ID: 8edf26e7-209a-4591-b9cc-d789d07906b5 The registered system name is: vm255-33.gsslab.pnq2.redhat.com [root@vm255-33 ~]# subscription-manager refresh; subscription-manager status 1 local certificate has been deleted. All local data refreshed +-------------------------------------------+ System Status Details +-------------------------------------------+ Overall Status: Unknown [root@vm255-33 ~]# yum repolist Loaded plugins: product-id, search-disabled-repos, security, subscription-manager This system is registered with an entitlement server, but is not receiving updates. You can use subscription-manager to assign subscriptions. repolist: 0
[root@vm255-33 ~]# cat client.sh export KATELLO=$(rpm -qa | grep katello-ca-consumer) rpm -e $KATELLO mv /etc/rhsm/ca/katello-server-ca.pem /tmp rm -rf /etc/pki/consumer/* rm -rf /etc/pki/entitlement/* #systemctl restart rhsmcertd service rhsmcertd restart subscription-manager remove --all subscription-manager unregister subscription-manager clean curl --insecure --output katello-ca-consumer-latest.noarch.rpm https://dhjoshi-rhsat.syslab.pnq2.redhat.com/pub/katello-ca-consumer-latest.noarch.rpm yum localinstall katello-ca-consumer-latest.noarch.rpm -y #subscription-manager register --org="RedHat" --activationkey="test_ak" subscription-manager register --org="RedHat" --activationkey="test_ak_6" subscription-manager refresh subscription-manager status yum repolist [root@vm255-33 ~]# ./client.sh Stopping rhsmcertd... [ OK ] Starting rhsmcertd... [ OK ] 0 subscriptions removed from this system. This system is currently not registered. All local data removed % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 101 7481 101 7481 0 0 68190 0 --:--:-- --:--:-- --:--:-- 3652k Loaded plugins: product-id, search-disabled-repos, security, subscription-manager This system is not registered with an entitlement server. You can use subscription-manager to register. Setting up Local Package Process Examining katello-ca-consumer-latest.noarch.rpm: katello-ca-consumer-dhjoshi-rhsat.syslab.pnq2.redhat.com-1.0-1.noarch Marking katello-ca-consumer-latest.noarch.rpm to be installed Resolving Dependencies --> Running transaction check ---> Package katello-ca-consumer-dhjoshi-rhsat.syslab.pnq2.redhat.com.noarch 0:1.0-1 will be installed --> Finished Dependency Resolution Dependencies Resolved =============================================================================================================================================== Package Arch Version Repository Size =============================================================================================================================================== Installing: katello-ca-consumer-dhjoshi-rhsat.syslab.pnq2.redhat.com noarch 1.0-1 /katello-ca-consumer-latest.noarch 16 k Transaction Summary =============================================================================================================================================== Install 1 Package(s) Total size: 16 k Installed size: 16 k Downloading Packages: Running rpm_check_debug Running Transaction Test Transaction Test Succeeded Running Transaction Warning: RPMDB altered outside of yum. Installing : katello-ca-consumer-dhjoshi-rhsat.syslab.pnq2.redhat.com-1.0-1.noarch 1/1 Verifying : katello-ca-consumer-dhjoshi-rhsat.syslab.pnq2.redhat.com-1.0-1.noarch 1/1 Installed: katello-ca-consumer-dhjoshi-rhsat.syslab.pnq2.redhat.com.noarch 0:1.0-1 Complete! The system has been registered with ID: 16061186-e323-47cd-85f0-1987d9d2ce29 The registered system name is: vm255-33.gsslab.pnq2.redhat.com Installed Product Current Status: Product Name: Red Hat Enterprise Linux Server Status: Not Subscribed Unable to find available subscriptions for all your installed products. 1 local certificate has been deleted. All local data refreshed +-------------------------------------------+ System Status Details +-------------------------------------------+ Overall Status: Unknown Loaded plugins: product-id, search-disabled-repos, security, subscription-manager This system is registered with an entitlement server, but is not receiving updates. You can use subscription-manager to assign subscriptions. repolist: 0
# subscription-manager repos --list +----------------------------------------------------------+ Available Repositories in /etc/yum.repos.d/redhat.repo +----------------------------------------------------------+ Repo ID: rhel-6-server-satellite-tools-6-beta-rpms Repo Name: Red Hat Satellite Tools 6 Beta (for RHEL 6 Server) (RPMs) Repo URL: https://dhjoshi-rhsat.syslab.pnq2.redhat.com/pulp/repos/RedHat/Library/rhel6cv/content/beta/rhel/server/6/6Server/$basearch/sat-tool s/6/os Enabled: 0 Repo ID: rhel-6-server-rpms Repo Name: Red Hat Enterprise Linux 6 Server (RPMs) Repo URL: https://dhjoshi-rhsat.syslab.pnq2.redhat.com/pulp/repos/RedHat/Library/rhel6cv/content/dist/rhel/server/6/$releasever/$basearch/os Enabled: 0 Repo ID: rhel-6-server-extras-rpms Repo Name: Red Hat Enterprise Linux 6 Server - Extras (RPMs) Repo URL: https://dhjoshi-rhsat.syslab.pnq2.redhat.com/pulp/repos/RedHat/Library/rhel6cv/content/dist/rhel/server/6/6Server/$basearch/extras/o s Enabled: 0 Repo ID: rhel-6-server-optional-rpms Repo Name: Red Hat Enterprise Linux 6 Server - Optional (RPMs) Repo URL: https://dhjoshi-rhsat.syslab.pnq2.redhat.com/pulp/repos/RedHat/Library/rhel6cv/content/dist/rhel/server/6/$releasever/$basearch/opti onal/os Enabled: 0 Repo ID: rhel-6-server-supplementary-rpms Repo Name: Red Hat Enterprise Linux 6 Server - Supplementary (RPMs) Repo URL: https://dhjoshi-rhsat.syslab.pnq2.redhat.com/pulp/repos/RedHat/Library/rhel6cv/content/dist/rhel/server/6/$releasever/$basearch/supp lementary/os Enabled: 0
Hi Team, The repos are not getting enabled by default but repositories are available to the client. I guess its not a bug.
This is the current behavior. In SCA mode, the content-certificate will provide access to all of the content on the Satellite to the client. However, the SCA cert does not cover the installed products on the client, therefore - it will not enable any default repositories. If you correctly configure your activation keys to forcefully enable repositories, it will perform the action you are expecting. See https://bugzilla.redhat.com/show_bug.cgi?id=1824959 and https://bugzilla.redhat.com/show_bug.cgi?id=1859601. *** This bug has been marked as a duplicate of bug 1859601 ***