Bug 381311

Summary: Upgrade: Downloaded RPMs stay in cache, resulting in partition overflow
Product: [openSUSE] openSUSE 11.0 Reporter: Klaus Kämpf <kkaempf>
Component: libzyppAssignee: Josef Reidinger <jreidinger>
Status: RESOLVED FIXED QA Contact: Duncan Mac-Vicar <dmacvicar>
Severity: Normal    
Priority: P5 - None CC: jreidinger, ma, marvin24, ro
Version: Beta 1   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Klaus Kämpf 2008-04-18 12:23:16 UTC
/mnt/var/tmp/AP_0x0000001 contains all (probably already installed/upgraded) RPMs, resulting in 1.1GB disk space waste
Comment 1 Jan Kupec 2008-04-18 13:27:43 UTC
I believe there is a way to disable this for installation, Stano?
Comment 2 Stanislav Visnovsky 2008-04-18 14:23:16 UTC
You can use the RepoInfo API to disable the behavior for a repository.
Comment 3 Michael Andres 2008-04-18 16:04:42 UTC
Shouldn't we find a better location for the caches than tmp/AP_0xNNNNNNNN?
These dirs should not exist after YAST ended. 
Comment 4 Stephan Kulow 2008-04-25 08:00:58 UTC
*** Bug 382694 has been marked as a duplicate of this bug. ***
Comment 5 Josef Reidinger 2008-04-29 06:49:58 UTC
maybe this is also related to bug #379922, because if we attach again network source, this directory is used and burl backend use file with bad checksum as timestamp for last downloaded file and server return 304 (not-modified). And because user response during disattached state, it is not possible delete file.
Comment 6 Josef Reidinger 2008-05-02 09:01:40 UTC
Cache directory is /var/cache/zypp by default. /var/adm/mount is directory to which is create tmp AP_0XXX directory where is something mounted (for remote repository is place where is temporary stored downloaded files). Now it looks like that only in past some directory remain unattached, because now after each session this directory must be removed.
Please try clean /var/adm/mount directory and check if something stay here after some refresh/install/other actions.
Comment 7 Klaus Kämpf 2008-05-02 11:40:31 UTC
No, it doesn't. /var/adm/mount is all clean now (pre-Beta2)
Comment 8 Josef Reidinger 2008-05-02 11:42:32 UTC
(In reply to comment #7 from Klaus Kämpf)
> No, it doesn't. /var/adm/mount is all clean now (pre-Beta2)
> 

Ok, this artefact may relate to option which doesn't remove attach point, which is now optional.

So close as fixed.
Comment 9 Ruediger Oertel 2008-05-02 12:40:32 UTC
still there, updating via ftp from stable right now (factory update):

Fatou:/var/adm/mount # du -sch *
506M    AP_0x00000001
506M    total
Comment 10 Josef Reidinger 2008-05-02 12:46:18 UTC
OK. I need few info:
1) Is this directory present before you update?
2) stable mean 10.3? If yes this can be problem, if old version create permanent directory, new version is not allowed to delete it (because don't know that previous version create it)
3) please attach log
4) try delete it and make some action via this ftp (install something new e.g)
Comment 11 Klaus Kämpf 2008-05-02 12:53:59 UTC
I ran into the problem during a 10.3->11.0Beta1 upgrade.
I now did two 11.0Beta1->11.0Beta2 upgrades and didn't run into this bug.
Comment 12 Josef Reidinger 2008-05-02 13:17:05 UTC
(In reply to comment #11 from Klaus Kaempf)
> I ran into the problem during a 10.3->11.0Beta1 upgrade.
> I now did two 11.0Beta1->11.0Beta2 upgrades and didn't run into this bug.
> 

So it looks like that without 10.3 patch is not possible avoid it. Maybe add some note to release about delete all AP points in /var/adm/mount if user want upgrade from 10.3 to 11.0 .
Comment 13 Ruediger Oertel 2008-05-02 13:48:07 UTC
no, I'm not talking about 10.3
I'm talking about updating from 11.0-post-beta1plus (last friday or monday)
to the current state (almost beta2).

Yes, /var/adm/mount is really being cleaned _after_ the update is finished.
But that was never my issue.

The issue is: during the update, all the rpms stay there until the update
is finished. For my system this sums up to almost 3Gb while I have only
2.8Gb free space below / ...
Comment 14 Josef Reidinger 2008-05-02 13:53:02 UTC
(In reply to comment #13 from Ruediger Oertel)
> no, I'm not talking about 10.3
> I'm talking about updating from 11.0-post-beta1plus (last friday or monday)
> to the current state (almost beta2).
> 
> Yes, /var/adm/mount is really being cleaned _after_ the update is finished.
> But that was never my issue.
> 
> The issue is: during the update, all the rpms stay there until the update
> is finished. For my system this sums up to almost 3Gb while I have only
> 2.8Gb free space below / ...
> 

OK, so problem isn't that RPMs stay in cache, but that /var/adm/mount is not big enought to save whole downloaded RPM.
Now zypper allow (but undocumented) disable caching in /var/cache/zypp...but still all rpms stay in mounted "internet repository".
I fix it. (and also low severity, because this is not blocker)
Comment 15 Josef Reidinger 2008-05-02 14:37:36 UTC
done in svn.
I test it on kde4 installation and no more then one package is here. If this one which is downloaded is problem, then help only some redesign of remote downloading.
Comment 16 Ruediger Oertel 2008-05-02 15:07:07 UTC
thanks, that's perfect for me!

keeping the last one (or even last two) downloaded rpms in the cache
is perfectly normal. I just could not understand keeping 1700 rpms there ...
Comment 17 Josef Reidinger 2008-05-06 07:07:57 UTC
done in libzypp-4.19.0