Bug 1182513

Summary: cached size outdo overall download size significantly: --debug-solver data attached
Product: [openSUSE] openSUSE Tumbleweed Reporter: Hans-Peter Jansen <hpj>
Component: libzyppAssignee: E-mail List <zypp-maintainers>
Status: RESOLVED INVALID QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: a.samirh78, jengelh
Version: Current   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: zypper files from /var/log, archive 1
zypper files from /var/log, archive part 2/2

Description Hans-Peter Jansen 2021-02-19 20:28:39 UTC
During a big zypper dup --allow-vendor-change --download-only, I noticed this:

4990 packages to upgrade, 3 to downgrade, 26 new, 1 to reinstall, 9 to remove.
Overall download size: 3.94 GiB. Already cached: 7.18 GiB. Download only.

The package numbers are expected (full rebuild due to glibc update), but the cached size outdo the overall size significantly.

Please note, that I'm doing the poor man's approach to package sharing:

~> l /var/cache/zypp/packages
lrwxrwxrwx 1 root root 45 May  2  2019 /var/cache/zypp/packages -> ../../../work/suse/update/tumbleweed/packages/

work is a NFS shared folder here.

Also note, that I'm using a somewhat complex repo setup...
Comment 1 Hans-Peter Jansen 2021-02-19 20:31:40 UTC
The debug solver data exceeds the bugzilla limits:

https://urpla.net/zypp-debug-solver.tar.xz
Comment 2 Jan Engelhardt 2021-02-19 22:05:52 UTC
Created attachment 846333 [details]
zypper files from /var/log, archive 1
Comment 3 Jan Engelhardt 2021-02-19 22:06:22 UTC
Created attachment 846334 [details]
zypper files from /var/log, archive part 2/2
Comment 4 Ahmad Samir 2021-02-20 19:13:43 UTC
Hello. I am not sure (and can't check since I don't know Python :)), but the way I understand that output, when I get something similar while updating my machine is:
Overall download size: 3.94 GiB
Already cached: 7.18 GiB

so the total size of the update is 3.9 + 7.18; 7.18GiB have been already downloaded, 3.94GiB more to go.
Comment 5 Michael Andres 2021-02-22 08:01:13 UTC
(In reply to Hans-Peter Jansen from comment #0)
> ../../../work/suse/update/tumbleweed/packages/
> 
> work is a NFS shared folder here.

The numbers look good to me as well. As Ahmad mentioned, you alreay have 7 GiB in your shared NFS cache and just the remaining ~4 GiB need to be downloaded.
Comment 6 Michael Andres 2021-02-23 08:22:01 UTC
Closing. Feel free to reopen if you still see an issue with this.