-
Bug
-
Resolution: Done
-
Major
-
None
-
6.16.z
Description of problem:
--------------------------------
When a RHEL-8 client is provisioned using Red Hat Satellite for the first time, it provisions successfully. However, when the same client is rebuild again the second time, it fails with the following error-
Error: There are no enabled repositories in "/etc/yum/repos.d", "/etc/yum/repos.d", "/etc/distro.repos.d".
How reproducible:
-------------------------
Easily reproducible.
Is this issue a regression from an earlier version:
-------------------------------------------------------------------
Yes, it is. The customer has confirmed that it works successfully in Red Hat Satellite 6.15.
Steps to Reproduce:
---------------------------
1. Provision a RHEL-8 client using Red Hat Satellite 6.16.
2. Once the machine is provisioned completely successfully the first time, then re-build the same machine.
3. It will fail with all of the subscription/repository related items, but will get provisioned successfully.
Actual behavior:
[Describe the issue in detail, including what is happening and where]
------------------------------------------------------------------------------------------------
The machine provisions successfully, but fails will all of the subscription/repository related items.
Expected behavior:
[Describe what should be happening instead]
---------------------------------------------------------------
The machine should provision successfully with the correct subscription and repository related data.
Business Impact / Additional info:
----------------------------------------------
Provisioning is not completely successful, as it throws errors for subscription and repository related data.
I have also attached the screenshot of the error that is thrown during provisioning.
Following is the output from my lab Satellite Server 6.16 -
1. When provisioned for the 1st time -
------------------------------------------------
During the 1st iteration, there are no errors as follows -
Satellite -
-----------
[root@ajambhul-rhsat ~]# cat /etc/redhat-release
Red Hat Enterprise Linux release 8.10 (Ootpa)
[root@ajambhul-rhsat ~]#
[root@ajambhul-rhsat ~]# rpm -qa satellite
satellite-6.16.1-1.el8sat.noarch
[root@ajambhul-rhsat ~]#
[root@ajambhul-rhsat ~]# hostname
ajambhul-rhsat.example.com
Content Host (Client) -
-----------------------------
[root@rocky-thigpen ~]# hostname
rocky-thigpen.example.com
[root@rocky-thigpen ~]#
[root@rocky-thigpen ~]# cat /etc/redhat-release
Red Hat Enterprise Linux release 8.10 (Ootpa)
[root@rocky-thigpen ~]#
[root@rocky-thigpen ~]# subscription-manager identity
system identity: 5af413ef-6180-4c6f-afaa-9d752fbb26c6
name: rocky-thigpen.example.com
org name: RedHat
org ID: RedHat
environment name: LCE_RHEL8/CV_RHEL8_Provisioning
root@rocky-thigpen ~]# subscription-manager status
-------------------------------------------
System Status Details
-------------------------------------------
Overall Status: Disabled
Content Access Mode is set to Simple Content Access. This host has access to content, regardless of subscription status.
System Purpose Status: Disabled
[root@rocky-thigpen ~]#
[root@rocky-thigpen ~]# dnf repolist
Updating Subscription Management repositories.
repo id repo name
rhel-8-for-x86_64-appstream-rpms Red Hat Enterprise Linux 8 for x86_64 - AppStream (RPMs)
rhel-8-for-x86_64-baseos-rpms Red Hat Enterprise Linux 8 for x86_64 - BaseOS (RPMs)
satellite-client-6-for-rhel-8-x86_64-rpms Red Hat Satellite Client 6 for RHEL 8 x86_64 (RPMs)
2. When provisioned for the 2nd time -
--------------------------------------------------
During the 2nd iteration, there are errors as follows -
Satellite -
-----------
[root@ajambhul-rhsat ~]# cat /etc/redhat-release
Red Hat Enterprise Linux release 8.10 (Ootpa)
[root@ajambhul-rhsat ~]#
[root@ajambhul-rhsat ~]# rpm -qa satellite
satellite-6.16.1-1.el8sat.noarch
[root@ajambhul-rhsat ~]#
[root@ajambhul-rhsat ~]# hostname
ajambhul-rhsat.example.com
Content Host (Client) -
-----------------------------
[root@rocky-thigpen ~]# hostname
rocky-thigpen.example.com
[root@rocky-thigpen ~]#
[root@rocky-thigpen ~]# cat /etc/redhat-release
Red Hat Enterprise Linux release 8.10 (Ootpa)
[root@rocky-thigpen ~]#
[root@rocky-thigpen ~]# subscription-manager identity
This system is not yet registered. Try 'subscription-manager register --help' for more information.
[root@rocky-thigpen ~]# subscription-manager status
-------------------------------------------
System Status Details
-------------------------------------------
Overall Status: Unknown
System Purpose Status: Unknown
[root@rocky-thigpen ~]#
[root@rocky-thigpen ~]# dnf repolist
Updating Subscription Management repositories.
Unable to read consumer identity
This system is not registered with an entitlement server. You can use subscription-manager to register.
No repositories available
[root@rocky-thigpen ~]#
- duplicates
-
SAT-27875 can not re-register rhel against satellite616 on RHEL-10.0-20240908.1 and RHEL-9.5.0-20240908.2
-
- Release Pending
-