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 1673289 - dnf enableplugin/disableplugin does not report unknown plugin
Summary: dnf enableplugin/disableplugin does not report unknown plugin
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: dnf
Version: 8.0
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: rc
: 8.1
Assignee: Jaroslav Mracek
QA Contact: Eva Mrakova
URL:
Whiteboard:
Depends On: 1681084
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-02-07 09:07 UTC by Eva Mrakova
Modified: 2020-11-14 07:21 UTC (History)
3 users (show)

Fixed In Version: dnf-4.2.7-1.el8
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-11-05 22:21:12 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2019:3583 0 None None None 2019-11-05 22:21:20 UTC

Description Eva Mrakova 2019-02-07 09:07:22 UTC
Description of problem:
dnf --enableplugin/--disableplugin <plugin> does not report unknown 
(or just not installed) plugin, also in verbose mode.

Compat note: 
yum does not break the transaction due to unknown plugin but reports it:
# yum --enableplugin=unknown-plugin install zsh
Loaded plugins: product-id, search-disabled-repos, subscription-manager
No plugin match for: unknown-plugin
This system is not registered with an entitlement server. You can use subscription-manager to register.
Resolving Dependencies
--> Running transaction check
---> Package zsh.x86_64 0:5.0.2-32.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package        Arch              Version                 Repository       Size
================================================================================
Installing:
 zsh            x86_64            5.0.2-32.el7            rhel            2.4 M
<snip>

Version-Release number of selected component (if applicable):
dnf-4.0.9.2-1.el8

How reproducible:
always

Steps to Reproduce:
1. dnf --enableplugin=unknown-plugin install zsh

Actual results:
# dnf --enableplugin=unknown-plugin install zsh
Last metadata expiration check: 1:10:46 ago on Thu 07 Feb 2019 02:46:08 AM EST.
Dependencies resolved.
================================================================================
 Package        Arch              Version                 Repository       Size
================================================================================
Installing:
 zsh            x86_64            5.5.1-6.el8             rhel            2.9 M
<snip>

Expected results:
it is reported that unknown-plugin was not enabled

Comment 2 Jaroslav Mracek 2019-04-09 18:22:22 UTC
I create a patch that solves the issue (https://github.com/rpm-software-management/dnf/pull/1374). Please is there any tests that covers the bugzilla?

Comment 3 Eva Mrakova 2019-04-12 09:52:52 UTC
(In reply to Jaroslav Mracek from comment #2)
> I create a patch that solves the issue
> (https://github.com/rpm-software-management/dnf/pull/1374). Please is there
> any tests that covers the bugzilla?

there's no such test yet

Comment 4 Jaroslav Mracek 2019-04-23 07:17:44 UTC
Please do you agree with a new statements? They differ from yum, but they are are more descriptive.

$ sudo dnf repoquery -C sdfdsff --disableplugin sffsdf,sddsd --enableplugin sadsdd,asdsd
No matches found for the following enable plugin patterns: asdsd, sadsdd
No matches found for the following disable plugin patterns: sddsd, sffsdf

Comment 5 Eva Mrakova 2019-04-23 07:47:19 UTC
I'd say it's OK. Thanks

Comment 6 Jaroslav Mracek 2019-06-06 08:51:07 UTC
Tests are here https://github.com/rpm-software-management/ci-dnf-stack/pull/552.

Comment 11 errata-xmlrpc 2019-11-05 22:21:12 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.

https://access.redhat.com/errata/RHSA-2019:3583


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