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 1750620 - dnf check-update not honouring versionlock
Summary: dnf check-update not honouring versionlock
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: dnf
Version: 8.0
Hardware: Unspecified
OS: Unspecified
medium
unspecified
Target Milestone: rc
: 8.0
Assignee: Marek Blaha
QA Contact: Jan Blazek
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-09-10 05:44 UTC by Sandeep MJ
Modified: 2023-09-07 20:34 UTC (History)
6 users (show)

Fixed In Version: dnf-plugins-core-4.0.12-1.el8
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-04-28 16:48:13 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELPLAN-29470 0 None None None 2023-03-07 12:40:29 UTC
Red Hat Knowledge Base (Solution) 4500231 0 None None None 2019-10-15 03:25:54 UTC
Red Hat Product Errata RHBA-2020:1823 0 None None None 2020-04-28 16:48:54 UTC

Description Sandeep MJ 2019-09-10 05:44:55 UTC
Description of problem:
dnf check-update still shows updates for a versionlocked package, returns 100

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

How reproducible:
Always

Steps to Reproduce:
1. 
# dnf versionlock add wget-1.19.5-7.el8.x86_64
Updating Subscription Management repositories.
Last metadata expiration check: 0:06:28 ago on Tue 10 Sep 2019 01:10:55 EDT.
Adding versionlock on: wget-0:1.19.5-7.el8.*

2.
# dnf check-update wget
Updating Subscription Management repositories.
Last metadata expiration check: 0:12:23 ago on Tue 10 Sep 2019 01:20:15 EDT.

wget.x86_64                   1.19.5-7.el8_0.1                   rhel-8-for-x86_64-appstream-rpms
# echo $?
100


Actual results:
# dnf check-update wget --quiet
wget.x86_64                   1.19.5-7.el8_0.1                   rhel-8-for-x86_64-appstream-rpms
# echo $?
100

Expected results:
# dnf check-update wget --quiet
# echo $?
0

Additional info:
Works fine on a RHEL 7 machine:

# yum check-update wget --quiet
# echo $?
0

Comment 8 Carl George 🤠 2020-01-23 22:41:40 UTC
This backport has been released in CentOS 8 Stream.

https://lists.centos.org/pipermail/centos-devel/2020-January/036500.html

Please test this and provide feedback if you're able.

Comment 11 errata-xmlrpc 2020-04-28 16:48:13 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/RHBA-2020:1823


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