Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-1447

Disabling module does not disable modular dependencies

Linking RHIVOS CVEs to...Migration: Automation ...Sync from "Extern...XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Minor Minor
    • None
    • rhel-8.8.0
    • dnf
    • None
    • None
    • rhel-swm
    • ssg_core_services
    • None
    • False
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • If docs needed, set a value
    • None
    • 57,005

      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):

      1. 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

              packaging-team-maint packaging-team-maint
              mikhail_campos-guadamuz_epam mikhail_campos-guadamuz@epam.com (Inactive)
              packaging-team-maint packaging-team-maint
              Software Management QE Software Management QE
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: