Bug 1709798

Summary: DNF cannot work with installed modularity content if repo is disabled.
Product: Red Hat Enterprise Linux 8 Reporter: Andrei Stepanov <astepano>
Component: dnfAssignee: Jaroslav Mracek <jmracek>
Status: CLOSED ERRATA QA Contact: Karel Srot <ksrot>
Severity: unspecified Docs Contact:
Priority: medium    
Version: 8.2CC: dmach, james.antill, mdomonko
Target Milestone: rcKeywords: Triaged
Target Release: 8.0   
Hardware: Unspecified   
OS: Unspecified   
Fixed In Version: dnf-4.2.7-1.el8 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-11-05 22:22:06 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:
Bug Depends On: Red Hat1681084    
Bug Blocks:    

Description Andrei Stepanov 2019-05-14 10:49:23 UTC
DNF cannot perform any action on _installed_ module if originate repo is disabled.



rpm -q httpd

The package was installed as part of httpd module. httpd module was installed.

Let's suppose there is no Internet connection. And user disabled AppStream repo.

With this DNF completely unable to manage already installed httpd module.
It cannot be removed. User cannot get any information about this installed module.

yum --disablerepo='*' module remove httpd
Problems in request:
missing groups or modules: httpd
Dependencies resolved.
Nothing to do.

This bug is about allowing to perform actions on installed modules.
For example: allow user to get list of installed modules, even all repos are disabled.

Comment 1 Jaroslav Mracek 2019-06-19 10:54:41 UTC
The behavior is improved by fail-safe mechanism that stores module information about enabled streams.

Comment 4 Daniel Mach 2019-08-14 11:36:43 UTC
This has been fixed already as part of Red Hatbug#1623128.
When a repo is disabled, cached modulemd is used and DNF operates as usual.

Comment 14 errata-xmlrpc 2019-11-05 22:22:06 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, and where to find the updated
files, follow the link below.

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