Bug 308362

Summary: yast2 wrong disk space calculation on software update
Product: [openSUSE] openSUSE 10.3 Reporter: Fred van Zwieten <fvzwieten>
Component: libzyppAssignee: Michael Andres <ma>
Status: RESOLVED FIXED QA Contact: Stanislav Visnovsky <visnov>
Severity: Critical    
Priority: P2 - High CC: cgoncalves, deanjo, dmacvicar, Eric, forgotten_xI2C5NvggO, gankov, johann-nikolaus.andreae, koenig, lslezak, ma, martin.schlander, richard.bos, smaug42
Version: Beta 3   
Target Milestone: ---   
Hardware: 64bit   
OS: Linux   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: Screenshot of wrong free space calculation
y2log from sw_single session

Description Fred van Zwieten 2007-09-06 19:35:13 UTC
I've selected package group "zzz all" in Yast2 Software Management and in the content pane selected "all in this list" -> "update if a newer version available". It then calculated a disk filled percentage of 201% (!?!). I've added a screenshot of it.
Comment 1 Fred van Zwieten 2007-09-06 19:37:06 UTC
Created attachment 162465 [details]
Screenshot of wrong free space calculation
Comment 2 Carlos Gonçalves 2007-09-06 19:41:30 UTC
I'm also affected by this issue too but I detected it selecting w32codec-all package (from Packman repo) to install.
Comment 3 Carlos Gonçalves 2007-09-06 23:12:08 UTC
*** Bug 308446 has been marked as a duplicate of this bug. ***
Comment 4 darren winter 2007-09-07 04:34:17 UTC
fix? workaround?

how is this better than beta 2? at least i could install software.

i noticed that the sax2 bug still exists if using a logitech g5 gaming mouse - on the bug list for months now.
Comment 7 Stanislav Visnovsky 2007-09-07 12:01:38 UTC
Please, attach the YaST logs.
Comment 8 Robin Knapp 2007-09-08 14:18:31 UTC
Created attachment 162857 [details]
y2log from sw_single session

Same here when selecting packages from the KDE:KDE4 repo.
Or when selecting the kernel-source package from the Updates repo.

Seems to be a problem with rpm-md repos...
Comment 9 Martin Schlander 2007-09-08 15:14:17 UTC
I have the same - yast reports that kde4 pattern will require >30 GB of disk space. The issue is the same with rpm-md and yast2 factory repo.

Elevating severity to critical
Comment 10 Richard Bos 2007-09-08 20:40:35 UTC
Just for the record; is it the same problem as described in:
https://bugzilla.novell.com/show_bug.cgi?id=222556 ?

If so, it would mean that the above bug is not solved....

Comment 11 Stephan Binner 2007-09-09 16:26:33 UTC
*** Bug 309052 has been marked as a duplicate of this bug. ***
Comment 14 Jan Kupec 2007-09-10 08:09:50 UTC
As suggested in comment #9, this issue occurs in both rpm-md and yast repos, so it seems to be in the disk usage code. Michael?
Comment 15 Ladislav Slezák 2007-09-10 09:23:36 UTC
*** Bug 308475 has been marked as a duplicate of this bug. ***
Comment 16 Ladislav Slezák 2007-09-10 09:27:11 UTC
I have fixed the problem with wrong units in SVN, see bug #308475.

But I have found another problem, selecting a package for update reports the same final disk usage size when I select the package for removing. It seems that update is wrongly counted (update = remove A, install B, probably only remove A is counted).
Comment 17 Harald Koenig 2007-09-10 09:30:52 UTC
(In reply to comment #16 from Ladislav Slezak)
> I have fixed the problem with wrong units in SVN, see bug #308475.
> 
> But I have found another problem, selecting a package for update reports the
> same final disk usage size when I select the package for removing. It seems
> that update is wrongly counted (update = remove A, install B, probably only
> remove A is counted).
> 

FWIW: the disk space calculation in beta-2 was correct for my test updating from 10.1 to 10.3 beta-2 (I did not really update for other reasons).
trying to update the same systems to beta-3 now gives wrong disk usage...
Comment 19 Ladislav Slezák 2007-09-10 13:57:49 UTC
I have partly fixed the problem in libzypp SVN rev. 7165.

The problem which remains is that disk usage for installed package is empty. But when a repository provides the package then it's disk usage is used as a fallback. If there is no source providing the package DU will be wrong if the package is selected for removal.
Comment 21 Carlos Gonçalves 2007-09-10 23:14:22 UTC
*** Bug 309384 has been marked as a duplicate of this bug. ***
Comment 22 darren winter 2007-09-11 02:21:04 UTC
attention!!!

this problem also seems to be having a HORRIBLE impact on kmail as well

http://x.sodpit.com/screenshots/x49.png

kmail was stable in betas 1 and 2, now it crashes constantly!

HELP!!

should i file a separate report??
Comment 23 Cristian Rodriguez 2007-09-11 02:24:23 UTC
(In reply to comment #22 from darren winter)

> should i file a separate report??


Yes KMAIL has absolutely nothing to do with zypp ,hence, with this report. 

Comment 24 darren winter 2007-09-11 02:34:01 UTC
reported, https://bugzilla.novell.com/show_bug.cgi?id=309404
Comment 26 Cristian Rodriguez 2007-09-12 08:01:53 UTC
*** Bug 309745 has been marked as a duplicate of this bug. ***
Comment 27 Michael Andres 2007-09-12 17:28:13 UTC
Fixed (or at least improved) in libzypp-3.23.0.

Susetags, plaindir and rpmdb now provide more detailed disk usage information.
Yum metadata don't, so we book the package size to '/'.
Comment 28 Forgotten User xI2C5NvggO 2007-09-15 15:10:56 UTC
So, do we have a work-around? 

I get this on one of my test systems, though not on the other - I can't get past the "Error" dialogue.

10.3 is looking pretty good otherwise...
Comment 29 Ladislav Slezák 2007-09-20 13:55:24 UTC
To comment 28: Try RC1, it's fixed there.
Comment 30 darren winter 2007-09-21 14:10:59 UTC
rc1...  i am only about 12 hours in, but so far this bug hasn't shown up yet in rc1.
Comment 31 Ladislav Slezák 2007-09-21 14:43:04 UTC
Darren, thank you for testing! It's nice to hear a positive feedback!
Comment 32 Eric Kincl 2007-09-21 17:22:33 UTC
...same results here.  Just installed a TON of packages in RC1 and didn't get the error at all!  :-)
Comment 33 darren winter 2007-09-23 22:06:11 UTC
no problems at all here, awesome!

well, when i use truecrypt to mount a 20 gb image to a local folder then i start to see some warnings, but hey, that's my problem! :>