Bug 1194424

Summary: Dnf reports success eventhough update failed
Product: [Fedora] Fedora Reporter: Suvayu <fatkasuvayu>
Component: dnfAssignee: Packaging Maintenance Team <packaging-team-maint>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 21CC: jsilhan, mluscon, packaging-team-maint, pnemade, redhat, rholy, tim.lauridsen
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-07-03 20:33:10 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 output log
none
DNF output log Fedora 22 none

Description Suvayu 2015-02-19 19:19:12 UTC
Created attachment 993746 [details]
Dnf output log

Description of problem:
For some strange reason cpio fails to extracts randomly on my system during an update.  When this happens Dnf complains about the errors, but in the final summary it reports success for all the package updates!  I would expect it to report the successes and failures separately.

Version-Release number of selected component (if applicable):
$ dnf --version
0.6.3
  Installed: dnf-0:0.6.3-2.fc21.noarch at 2015-01-07 17:04
  Built    : Fedora Project at 2014-12-09 13:51

  Installed: rpm-0:4.12.0.1-4.fc21.x86_64 at 2015-01-07 16:59
  Built    : Fedora Project at 2014-12-12 16:22

How reproducible:
Whenever cpio extract failure happens, dnf shows this behaviour.  I can't predict when cpio will fail though, so I can't provide a reproducible recipe. 

Steps to Reproduce:
1. wait for a package update to fail
2. look at the output
3.

Actual results:
Output from such a session is attached as a log file

Expected results:
I would expect Dnf to report the packages which failed to install under Failures, not Upgraded or Installed.

Additional info:
It would be really helpful if someone could also shed some light on why cpio is failing (randomly) on my laptop, although I realise that is not the topic of this bug report.

Comment 1 Honza Silhan 2015-03-10 18:36:57 UTC
Thanks for the report, we'll take a look. The failures should be printed in separate table "Not Upgraded", "Not installed", etc.

Comment 2 redhat 2015-07-03 07:20:45 UTC
Created attachment 1045755 [details]
DNF output log Fedora 22

I can see the same behaviour on Fedora 22 (upgraded from 20) as-well.

Comment 3 Honza Silhan 2015-07-03 20:33:10 UTC

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