Red Hat Bugzilla – Bug 1238808
[UX] Negative percentage reported when delta rebuilds fail
Last modified: 2017-02-10 10:51:04 EST
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-22.214.171.124-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-126.96.36.199-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)
Steps to Reproduce:
1. sudo docker run -it --rm fedora:22 /bin/bash
2. dnf update -y
No negative number.
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
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)
[root@af24a38656eb /]# rpm -q rpm
[root@af24a38656eb /]# rpm -q dnf
I think this PR solves this problem - https://github.com/rpm-software-management/dnf/pull/708
Bugs fixed in version 2.0.1-1.