Bug 1092830

Summary: "Erase Failed" error message on reinstallation is misleading
Product: [Fedora] Fedora Reporter: Onyeibo Oku <twohotis>
Component: dnfAssignee: Ivana Varekova <varekova>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: unspecified    
Version: rawhideCC: akozumpl, pmatilai, pnemade, rholy, tim.lauridsen
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-06-26 09:44:09 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 Onyeibo Oku 2014-04-30 04:17:37 UTC
Description of problem:
when reinstalling an rpm, dnf throws "erase failed" error messages for the affected rpms.  This is misleading.  DNF should rather throw an "info" message stating that current active rpms should/can not be removed -- OR execute silently

Version-Release number of selected component (if applicable):
0.5.0-1.fc21

How reproducible:
steady

Steps to Reproduce:
1.  run "dnf reinstall nss*"  (assuming the nss series ia already installed)
2.  follow the installation messages
3.

Actual results:
error: nss-softokn-freebl-3.16.0-2.fc21.i686: erase failed
error: nss-tools-3.16.0-1.fc21.x86_64: erase failed
error: nss-sysinit-3.16.0-1.fc21.x86_64: erase failed
error: nss-3.16.0-1.fc21.x86_64: erase failed
error: nss-softokn-3.16.0-2.fc21.x86_64: erase failed
error: nss-util-3.16.0-1.fc21.x86_64: erase failed
error: nss-softokn-freebl-3.16.0-2.fc21.x86_64: erase failed
error: nss-mdns-0.10-13.fc20.x86_64: erase failed

Expected results:
No error messages -- only informative messages

Additional info:

Comment 1 Ales Kozumplik 2014-04-30 04:52:12 UTC
Thanks for reporting, I can confirm there's an error message flashing for a split second with 'dnf reinstall emacs-common'.

We'll take a look.

Comment 2 Panu Matilainen 2014-05-05 06:13:37 UTC
Reinstall as done with rpm problem filters (which is what dnf and yum do because there's no better option yet) does not involve an erasure element, but dnf seems to expect them.

Note that in rpm >= 4.12 there will be a separate rpm-level operation for reinstall which does do erasure as well.

Comment 3 Tim Lauridsen 2014-05-05 07:56:48 UTC
Look like a dup of 
https://bugzilla.redhat.com/show_bug.cgi?id=1071854

Comment 4 Ales Kozumplik 2014-05-05 12:04:27 UTC
No it's not.(In reply to Tim Lauridsen from comment #3)
> Look like a dup of 
> https://bugzilla.redhat.com/show_bug.cgi?id=1071854

No it's not. This bug is perhaps about the problem described in bug 1071854 comment 1, but not the original problem there.

Comment 5 Ivana Varekova 2014-06-26 09:44:09 UTC
Tim is right, this bug is fixed using addReinstall see 
https://bugzilla.redhat.com/show_bug.cgi?id=1071854#c3
Thus I'm closin this bug as a duplicate.

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