Bug 1238808
| Summary: | [UX] Negative percentage reported when delta rebuilds fail | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Dusty Mabe <dustymabe> |
| Component: | dnf | Assignee: | rpm-software-management |
| Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | low | ||
| Version: | 24 | CC: | akasurde, barsnick, jmracek, jzeleny, mluscon, packaging-team-maint, pnemade, tim.lauridsen, vmukhame, zkabelac |
| Target Milestone: | --- | Keywords: | EasyFix, Reopened, Triaged, UserExperience |
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2017-02-10 15:51:04 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: | |||
Thanks for the report. *** Bug 1224931 has been marked as a duplicate of this bug. *** *** Bug 1307225 has been marked as a duplicate of this bug. *** This package has changed ownership in the Fedora Package Database. Reassigning to the new owner of this component. Fedora 22 changed to end-of-life (EOL) status on 2016-07-19. Fedora 22 is no longer maintained, which means that it will not receive any further security or bug fix updates. As a result we are closing this bug. If you can reproduce this bug against a currently maintained version of Fedora please feel free to reopen this bug against that version. If you are unable to reopen this bug, please file a new report against the current release. If you experience problems, please add a comment to this bug. Thank you for reporting this bug and we are sorry it could not be fixed. Re-opening, still an issue in Fedora 24: sudo docker run -it --rm fedora:24 /bin/bash dnf update -y still show the problem: Delta RPMs reduced 33.3 MB of updates to 36.6 MB (-9.1% saved) Versions: [root@af24a38656eb /]# rpm -q rpm rpm-4.13.0-0.rc1.27.fc24.x86_64 [root@af24a38656eb /]# rpm -q dnf dnf-1.1.9-2.fc24.noarch I think this PR solves this problem - https://github.com/rpm-software-management/dnf/pull/708 Bugs fixed in version 2.0.1-1. |
Description of problem: When running dnf update in a docker container I noticed that if the DRPM rebuild fails then (because some files get stripped from the docker image) then we can get a *negative* percentage for the amount of reduced size due to delta rpms. This would lead me to believe the calculation is wrong. Here is some snipped output from a dnf update -y: /usr/share/man/man8/udevadm.8.gz: No such file or directory cannot reconstruct rpm from disk files nss-3.19.2-1.0.fc22.x86_64: Delta RPM rebuild failed pam-1.1.8-19.fc22.x86_64: Delta RPM rebuild failed bash-4.3.39-1.fc22.x86_64: Delta RPM rebuild failed bash-completion-1:2.1-7.20150513git1950590.fc22.noarch: Delta RPM rebuild failed coreutils-8.23-10.fc22.x86_64: Delta RPM rebuild failed sqlite-3.8.10.2-1.fc22.x86_64: Delta RPM rebuild failed file-libs-5.22-4.fc22.x86_64: Delta RPM rebuild failed krb5-libs-1.13.2-3.fc22.x86_64: Delta RPM rebuild failed systemd-219-18.fc22.x86_64: Delta RPM rebuild failed cyrus-sasl-lib-2.1.26-23.fc22.x86_64: Delta RPM rebuild failed python-libs-2.7.10-1.fc22.x86_64: Delta RPM rebuild failed python-dnf-1.0.1-2.fc22.noarch: Delta RPM rebuild failed hawkey-0.5.7-1.fc22.x86_64: Delta RPM rebuild failed dnf-1.0.1-2.fc22.noarch: Delta RPM rebuild failed libsolv-0.6.11-1.fc22.x86_64: Delta RPM rebuild failed rpm-4.12.0.1-11.fc22.x86_64: Delta RPM rebuild failed -------------------------------------------------------------------------------- Total 581 kB/s | 36 MB 01:02 Delta RPMs reduced 32.2 MB of updates to 35.5 MB (-10.1% saved) Version-Release number of selected component (if applicable): dnf-1.0.0-1.fc22.noarch (what is in fedora:22 docker image) How reproducible: Always Steps to Reproduce: 1. sudo docker run -it --rm fedora:22 /bin/bash 2. dnf update -y 3. Actual results: -10.1% saved Expected results: No negative number.