Bug 1577012

Summary: cannot remove stale libvirt-daemon
Product: [Fedora] Fedora Reporter: Chris Murphy <bugzilla>
Component: libvirtAssignee: Libvirt Maintainers <libvirt-maint>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 28CC: agedosier, berrange, clalancette, dmach, itamar, jdenemar, jforbes, laine, libvirt-maint, mblaha, mhatina, packaging-team-maint, rpm-software-management, veillard, vmukhame
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-05-11 06:51:46 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:
Attachments:
Description Flags
dnf -vvv remove --duplicates none

Description Chris Murphy 2018-05-11 02:09:30 UTC
Created attachment 1434634 [details]
dnf -vvv remove --duplicates

Description of problem:

A normal 'dnf update' had a single failure with libvirt-daemon resulting in two copies installed

libvirt-daemon-4.1.0-1.fc28.x86_64
libvirt-daemon-4.1.0-2.fc28.x86_64

Neither 'dnf remove libvirt-daemon-4.1.0-1.fc28.x86_64' nor 'dnf remove --duplicates' succeeds.

                                                                                                                                     


Version-Release number of selected component (if applicable):


How reproducible:
Well now that I'm stuck with two copies, always reproducible remove failure. How it got into this state in the first place is untested, 1 for 1.

Steps to Reproduce:
1. dnf remove --duplicates
2.
3.

Actual results:

[chris@f28m ~]$ sudo dnf remove --duplicates
Last metadata expiration check: 1:00:03 ago on Thu 10 May 2018 07:00:09 PM MDT.
Dependencies resolved.
=============================================================================================================================================================================
 Package                                       Arch                                  Version                                     Repository                             Size
=============================================================================================================================================================================
Reinstalling:
 libvirt-daemon                                x86_64                                4.1.0-2.fc28                                fedora                                707 k
     replacing  libvirt-daemon.x86_64 4.1.0-1.fc28

Transaction Summary
=============================================================================================================================================================================

Total download size: 707 k
Is this ok [y/N]: y
Downloading Packages:
libvirt-daemon-4.1.0-2.fc28.x86_64.rpm                                                                                                       825 kB/s | 707 kB     00:00    
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                                        548 kB/s | 707 kB     00:01     
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                                                                                     1/1 
  Running scriptlet: libvirt-daemon-4.1.0-2.fc28.x86_64                                                                                                                  1/1 
  Running scriptlet: libvirt-daemon-4.1.0-2.fc28.x86_64                                                                                                                  1/3 
  Reinstalling     : libvirt-daemon-4.1.0-2.fc28.x86_64                                                                                                                  1/3 
  Running scriptlet: libvirt-daemon-4.1.0-2.fc28.x86_64                                                                                                                  1/3 
  Running scriptlet: libvirt-daemon-4.1.0-1.fc28.x86_64                                                                                                                  2/3 
/var/tmp/rpm-tmp.n0mILJ: line 6: virtlogd.socket: command not found
error: %preun(libvirt-daemon-4.1.0-1.fc28.x86_64) scriptlet failed, exit status 127
Error in PREUN scriptlet in rpm package libvirt-daemon
Error in PREUN scriptlet in rpm package libvirt-daemon
  Running scriptlet: libvirt-daemon-4.1.0-2.fc28.x86_64                                                                                                                  3/3 
error: libvirt-daemon-4.1.0-1.fc28.x86_64: erase failed
  Erasing          : libvirt-daemon-4.1.0-2.fc28.x86_64                                                                                                                  3/3 
  Running scriptlet: libvirt-daemon-4.1.0-2.fc28.x86_64                                                                                                                  3/3 
  Verifying        : libvirt-daemon-4.1.0-2.fc28.x86_64                                                                                                                  1/3 
libvirt-daemon-4.1.0-1.fc28.x86_64 was supposed to be removed but is not!
  Verifying        : libvirt-daemon-4.1.0-1.fc28.x86_64                                                                                                                  2/3 
  Verifying        : libvirt-daemon-4.1.0-2.fc28.x86_64                                                                                                                  3/3 

Failed:
  libvirt-daemon.x86_64 4.1.0-2.fc28                                                                                                                                         

Error: Transaction failed



Expected results:

Should remove.

Additional info:

No idea if this is a packaging or dnf bug though.

Attaching -vvv

Comment 1 Jiri Denemark 2018-05-11 06:51:46 UTC

*** This bug has been marked as a duplicate of bug 1558648 ***

Comment 2 Jiri Denemark 2018-05-11 06:53:27 UTC
See https://bugzilla.redhat.com/show_bug.cgi?id=1558648#c5 for upgrade
instructions from libvirt-daemon-4.1.0-1.fc28.