RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 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 "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". 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 "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-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 1798278 - subscription-manager recommends drags in too much into RHCOS
Summary: subscription-manager recommends drags in too much into RHCOS
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: skopeo
Version: 8.3
Hardware: Unspecified
OS: Unspecified
Target Milestone: rc
: 8.4
Assignee: Jindrich Novy
QA Contact: Yuhui Jiang
Depends On:
TreeView+ depends on / blocked
Reported: 2020-02-05 02:41 UTC by Colin Walters
Modified: 2021-05-18 15:33 UTC (History)
8 users (show)

Fixed In Version: skopeo-1.2.1-7.el8 or newer
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Last Closed: 2021-05-18 15:32:55 UTC
Type: Bug
Target Upstream Version:

Attachments (Terms of Use)

Description Colin Walters 2020-02-05 02:41:59 UTC
Please remove Recommends: subscription-manager from container-common (which is a dependency of podman/skopeo etc.)

This came from https://src.osci.redhat.com/rpms/skopeo/c/9ad6add6ee6602fa82d4bb85d899301ca14d6774

Yes, at some point in the future we will probably switch off Recommends in RHCOS.

But let's not do this now please since RHCOS doesn't want to drag all of that in, and we're not quite ready to investigate disabling recommends.

Comment 1 Colin Walters 2020-02-05 02:44:06 UTC

Comment 2 Tom Sweeney 2020-02-05 18:10:28 UTC
Jindrich I think you can take care of this, please holler if not.  I've also cc'd Lokesh in case this is in his purview instead.

Comment 3 Colin Walters 2020-02-06 17:22:03 UTC
FWIW we have a workaround now; so urgency is lower.

I still don't think this `Recommends:` was right, but not going to fight hard to drop it either.

Comment 4 Jindrich Novy 2020-02-07 11:15:45 UTC
If the concern is to have a minimal installation footprint then it makes sense to disable Recommends/Suggests/Enhances. It would be more of an issue if it Requires the dependency as it couldn't be avoided.

The subscription management functionality is still required for some use cases so removing the Recommends as a whole wouldn't be a good thing to do.

Comment 7 Ben Breard 2020-08-20 23:42:22 UTC
reopening this BZ as we're running into the same problem with the rpm-ostree builds from Image Builder. Jindrich, can we drop subscription-manager from recommends? It creates the problem of pulling in other deps like DNF that are problematic for us.

Comment 8 Jindrich Novy 2020-08-21 05:59:26 UTC
At this point I'd suggest to create a new skopeo-subscription-manager subpackage where the relevant symlinks and the subscription-manager dependency (this time a hard dep) would be specified. By default installation of skopeo there won't be any (even soft) subscription-manager dependency. Sounds good Ben, Dan, Colin?

Comment 9 Tom Sweeney 2020-08-21 15:32:19 UTC
I'll add Ian McLeod to the ping list too, in case he's some thoughts/concerns here.

Comment 10 Tom Sweeney 2020-08-21 15:34:23 UTC
And as a reminder, Colin did opoen up a Jira card: https://issues.redhat.com/browse/GRPA-591 to handle this RFE.

Comment 11 Daniel Walsh 2020-08-24 10:27:49 UTC
Container images need this requirement, not the Base OS.  I don't understand why this was added to these packages in the first place.

All of the container-tools will work fine without subscription manager?

Comment 13 Daniel Walsh 2021-01-28 12:08:28 UTC
Jindrich did you remove the recommends?

Comment 14 Jindrich Novy 2021-01-28 12:25:39 UTC
The subscription-manager is added as a soft dependency so that skopeo doesn't ship dangling symlinks. Given it's a soft dep the subscription-manager package is optional. https://issues.redhat.com/browse/GRPA-591 should address this for RHCOS by not installing soft deps.

If I remove subscription-manager I'd introduce a regression a a customer in previous releases requested it as a softdep for the reasons above.

Comment 15 Daniel Walsh 2021-01-28 22:54:45 UTC
What if we changed it to a suggests?

Comment 16 Jindrich Novy 2021-01-29 08:54:07 UTC
Suggests would work as it's a hint (not weak/soft dep as Recommends) meaning hint deps are ignored by DNF.


Comment 24 errata-xmlrpc 2021-05-18 15:32: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 (Moderate: container-tools:rhel8 security, bug fix, and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.


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