Bug 1566323 - dnf-automatic ignores versionlock
Summary: dnf-automatic ignores versionlock
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: dnf
Version: 28
Hardware: All
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: rpm-software-management
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: dnf-f28
TreeView+ depends on / blocked
 
Reported: 2018-04-12 04:30 UTC by Steven Haigh
Modified: 2018-09-24 18:52 UTC (History)
6 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2018-09-24 18:52:14 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Steven Haigh 2018-04-12 04:30:07 UTC
The versionlock plugin is used to restrict updates on packages listed in the version lock.

Currently, the F28 dovecot packages are broken, so I added the following:

$ dnf versionlock list
Last metadata expiration check: 1:37:37 ago on Thu 12 Apr 2018 12:49:14 AEST.
dovecot-pigeonhole-1:2.2.33.2-2.fc28.*
dovecot-1:2.2.33.2-2.fc28.*

Using 'dnf -y update', it acts as it should:

$ dnf check-update
Last metadata expiration check: 1:38:01 ago on Thu 12 Apr 2018 12:49:14 AEST.

dovecot.x86_64                1:2.2.34-1.fc28    fedora
dovecot-pigeonhole.x86_64     1:2.2.34-1.fc28    fedora

$ dnf -y update
Last metadata expiration check: 1:38:04 ago on Thu 12 Apr 2018 12:49:14 AEST.
Dependencies resolved.
Nothing to do.
Complete

However, when the dnf-automatic.timer fires, the two packages in the versionlock are upgraded to the newer updates available.

Extract from /var/log/dnf.rpm.log:
2018-04-12T03:59:18Z INFO Upgraded: dovecot-1:2.2.34-1.fc28.x86_64
2018-04-12T03:59:19Z INFO Upgraded: dovecot-pigeonhole-1:2.2.34-1.fc28.x86_64
2018-04-12T03:59:19Z INFO Cleanup: dovecot-pigeonhole-1:2.2.33.2-2.fc28.x86_64
2018-04-12T03:59:19Z INFO Cleanup: dovecot-1:2.2.33.2-2.fc28.x86_64

Right now, this kills the dovecot install due to broken packages being in the repo.

Comment 1 Daniel Mach 2018-04-16 11:12:28 UTC
This was probably broken by modularity code in DNF.
We'll get it fixed.

Comment 2 Jaroslav Mracek 2018-09-24 18:52:14 UTC
The problem should be fixed in dnf-3.5.1 (F29+)


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