Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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 2216407

Summary: Disabling module does not disable modular dependencies
Product: Red Hat Enterprise Linux 8 Reporter: Mikhail Campos <Mikhail_Campos-Guadamuz>
Component: dnfAssignee: Dave Cantrell <dcantrell>
Status: CLOSED MIGRATED QA Contact: swm-qe
Severity: unspecified Docs Contact:
Priority: low    
Version: 8.8CC: james.antill, mcurlej
Target Milestone: rcKeywords: MigratedToJIRA, Triaged
Target Release: ---Flags: pm-rhel: mirror+
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-08-26 11:54:44 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Mikhail Campos 2023-06-21 08:41:30 UTC
Description of problem:
When we disable a module with

  dnf module disable

all other modules which are not disabled and depend on it trigger showing warnings. This happens on any dnf operation, even not related to modularity. For example:

$ dnf module disable llvm-toolset
<... output skipped>
Modular dependency problems with Defaults:

 Problem 1: module rust-toolset:rhel8:8030020200807201053:d48633fe.x86_64 requires module(llvm-toolset:rhel8), but none of the providers can be installed
  - conflicting requests
  - module llvm-toolset:rhel8:8060020220204053142:d63f516d.x86_64 is disabled
<... output skipped>
$ dnf search smb
Updating Subscription Management repositories.
Last metadata expiration check: 0:02:05 ago on Wed 21 Jun 2023 10:21:45 AM CEST.
Modular dependency problems:

 Problem 1: module rust-toolset:rhel8:8030020200807201053:d48633fe.x86_64 requires module(llvm-toolset:rhel8), but none of the providers can be installed
  - conflicting requests
  - module llvm-toolset:rhel8:8060020220204053142:d63f516d.x86_64 is disabled
<... output skipped>
================================== Name & Summary Matched: smb ===================================
gvfs-smb-debuginfo.x86_64 : Debug information for package gvfs-smb
gvfs-smb-debuginfo.i686 : Debug information for package gvfs-smb
libsmbclient.i686 : The SMB client library
libsmbclient.x86_64 : The SMB client library
<... output skipped>

Note, that all dnf operations can complete, but we have annoying warnings during each operation.

The proposal is to disable also all dependent modules on module disable op. For example above, the operation 'dnf module disable llvm-toolset' should also disable rust-toolset module as well.


Version-Release number of selected component (if applicable):
# rpm -qa | grep dnf-
python3-dnf-4.7.0-16.el8_8.noarch
python3-libdnf-0.63.0-8.el8.x86_64
dnf-4.7.0-16.el8_8.noarch
python3-dnf-plugins-core-4.0.21-19.el8_8.noarch
dnf-plugin-subscription-manager-1.28.36-2.el8.x86_64
dnf-plugins-core-4.0.21-19.el8_8.noarch
libdnf-0.63.0-8.el8.x86_64
kpatch-dnf-0.2-5.el8.noarch
dnf-data-4.7.0-16.el8_8.noarch

How reproducible:
Always

Actual results:
Module in status disabled, while dependent modules are not

Expected results:
Module in status disabled, all dependent modules are also disabled

Additional info:
The similar rule can be applied for module enable

Comment 1 Jaroslav Mracek 2023-07-31 09:09:48 UTC
I think the request is valid, but fix would be very difficult. Disabled operation is not handled as remove but as an exclude, therefore it creates unsatisfied dependency. The change would require to change the scheme of modular solver (not deliverable during lifecycle of RHEL). As a workaround I suggest to manually disable `rust-toolset`.

Comment 2 RHEL Program Management 2023-08-18 07:27:38 UTC
Issue migration from Bugzilla to Jira is in process at this time. This will be the last message in Jira copied from the Bugzilla bug.

Comment 3 RHEL Program Management 2023-08-26 11:54:44 UTC
This BZ has been automatically migrated to the issues.redhat.com Red Hat Issue Tracker. All future work related to this report will be managed there.

To find the migrated issue, look in the "Links" section for a direct link to the new issue location. The issue key will have an icon of 2 footprints next to it, and begin with "RHEL-" followed by an integer.  You can also find this issue by visiting https://issues.redhat.com/issues/?jql= and searching the "Bugzilla Bug" field for this BZ's number, e.g. a search like:

"Bugzilla Bug" = 1234567

In the event you have trouble locating or viewing this issue, you can file an issue by sending mail to rh-issues.