Bug 1750620

Summary: dnf check-update not honouring versionlock
Product: Red Hat Enterprise Linux 8 Reporter: Sandeep MJ <sjayapra>
Component: dnfAssignee: Marek Blaha <mblaha>
Status: CLOSED ERRATA QA Contact: Jan Blazek <jblazek>
Severity: unspecified Docs Contact:
Priority: medium    
Version: 8.0CC: amatej, bugzilla, carl, james.antill, mblaha, villapla
Target Milestone: rcKeywords: Triaged
Target Release: 8.0Flags: pm-rhel: mirror+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: dnf-plugins-core-4.0.12-1.el8 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-04-28 16:48:13 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 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