Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1862772 - Default repositories are not enabled, after registering a client with an Activation Key, to an org with Simple Content Access Mode in Red Hat Satellite 6
Summary: Default repositories are not enabled, after registering a client with an Acti...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Candlepin
Version: 6.8.0
Hardware: All
OS: All
high
medium
Target Milestone: 6.8.0
Assignee: satellite6-bugs
QA Contact: Lai
URL:
Whiteboard:
: 1859601 (view as bug list)
Depends On: 1868383
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-08-02 11:20 UTC by anerurka
Modified: 2024-10-01 16:44 UTC (History)
8 users (show)

Fixed In Version: candlepin-3.1.19-1
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1868383 (view as bug list)
Environment:
Last Closed: 2020-10-27 13:04:55 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2020:4366 0 None None None 2020-10-27 13:05:09 UTC

Description anerurka 2020-08-02 11:20:02 UTC
Description of problem:

"Only Overridden Repositories" are enabled when after registering a client with an Activation Key.

Default Repositories such as "Red Hat Enterprise Linux 7 Server (RPMs)" which are enabled by default in a Repository-Set are "not" enabled over client.

 

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

Red Hat Satellite v.6.8 Beta [Snap 9.0]

Client : 
subscription-manager-rhsm-certificates-1.24.26-3.el7_8.x86_64
subscription-manager-plugin-container-1.24.26-3.el7_8.x86_64
subscription-manager-rhsm-1.24.26-3.el7_8.x86_64
subscription-manager-1.24.26-3.el7_8.x86_64


How reproducible:


Steps to Reproduce:

1. Org with a Simple Content Access Mode.
2. Content View with the RHEL7 repo
3. Activation Key 
3.1 Content View with the mentioned repo
3.2 Inside Repository-Set enable Red Hat Satellite Tools repo [Enabled (overridden)]
3.3 Ensure that "Red Hat Enterprise Linux 7 Server (RPMs)" is enabled by default.

4. Register a client to Red Hat Satellite with an Activation Key

Actual results:

Client is registered with status "Not Subscribed"
=====
# subscription-manager register --org="RedHat" --activationkey="rhel7"
The system has been registered with ID: xxxx-xxxx-xxxx-xxxx-xxxx
The registered system name is: client.example.com
Installed Product Current Status:
Product Name: Red Hat Enterprise Linux Server
Status:       Not Subscribed
=====

>>> Default repository is not enabled and only overridden repo is enabled.

=====
rhel-7-server-satellite-tools-6.7-rpms                                                                                                 | 2.1 kB  00:00:00     
(1/3): rhel-7-server-satellite-tools-6.7-rpms/x86_64/group                                                                             |  124 B  00:00:01     
(2/3): rhel-7-server-satellite-tools-6.7-rpms/x86_64/updateinfo                                                                        | 7.4 kB  00:00:01     
(3/3): rhel-7-server-satellite-tools-6.7-rpms/x86_64/primary                                                                           |  22 kB  00:00:01     
rhel-7-server-satellite-tools-6.7-rpms                                                                                                                  71/71
repo id                                                                 repo name                                                                       status
!rhel-7-server-satellite-tools-6.7-rpms/x86_64                          Red Hat Satellite Tools 6.7 (for RHEL 7 Server) (RPMs)                          71
repolist: 71
=====

- Manually enabling repository works fine, but not enabled by default, after registration.

# subscription-manager repos --enable=rhel-7-server-rpms

Expected results:

All the repositories enabled in the repository set should be enabled, including default

Additional info:

It may or may not be related to client being registered with status "not subscribed"

Comment 4 Lai 2020-09-09 20:32:13 UTC
Steps to test

1. Create an org with Simple Content Access
2. Enabled repos rhel7 and rhel7 tools repos
3. sync the 2 repos
4. Create a cv and add the 2 repos
5. Publish cv
6. Create an activation key with the 2 repos
7. Add the subscriptions and override the tools repo to enable
8. Check that the rhel7 repo is enabled by default
9. Spin up a contenthost and register to satellite using the ak
10. run 'subscription-manager repos' on contenthost

Expected result
8. rhel7 repo should be enabled by default.  No override.
10. Rhel7 repo and rhel7 tools repo should show up as enabled.

Actual result
8. rhel7 repo is shown as enabled by default.  No override message.
10. rhel7 repo and rhel7 tools repo shows up as enabled.

Repo ID:   rhel-7-server-rpms
Repo Name: Red Hat Enterprise Linux 7 Server (RPMs)
Repo URL:  <>
Enabled:   1

Repo ID:   rhel-7-server-satellite-tools-6.7-rpms
Repo Name: Red Hat Satellite Tools 6.7 (for RHEL 7 Server) (RPMs)
Repo URL:  <>
Enabled:   1


Verified on 6.8.0 snap 14

Comment 6 Ashish Humbe 2020-10-02 09:40:41 UTC
*** Bug 1859601 has been marked as a duplicate of this bug. ***

Comment 9 errata-xmlrpc 2020-10-27 13:04:55 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.8 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-2020:4366


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