Bug 1873966 - RHEL-6 client is not getting content when SCA enabled manifest is used on the Satellite
Summary: RHEL-6 client is not getting content when SCA enabled manifest is used on the...
Keywords:
Status: CLOSED DUPLICATE of bug 1859601
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Subscription Management
Version: 6.8.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: Unspecified
Assignee: satellite6-bugs
QA Contact: Cole Higgins
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-08-31 08:36 UTC by Dhaval Joshi
Modified: 2020-08-31 14:27 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-08-31 14:27:38 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Dhaval Joshi 2020-08-31 08:36:23 UTC
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

Comment 1 Dhaval Joshi 2020-08-31 08:38:12 UTC
# 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

Comment 2 Dhaval Joshi 2020-08-31 08:42:40 UTC
# 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

Comment 3 Dhaval Joshi 2020-08-31 08:46:05 UTC
[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

Comment 4 Dhaval Joshi 2020-08-31 09:14:21 UTC
# 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

Comment 5 Dhaval Joshi 2020-08-31 09:16:42 UTC
Hi Team,

The repos are not getting enabled by default but repositories are available to the client.

I guess its not a bug.

Comment 6 Craig Donnelly 2020-08-31 14:27:38 UTC
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 ***


Note You need to log in before you can comment on or make changes to this bug.