Bug 158785

Summary: Disk space calculation bug, blocking to proceed
Product: [openSUSE] SUSE Linux 10.1 Reporter: Forgotten User N1m2whZ-xl <forgotten_N1m2whZ-xl>
Component: InstallationAssignee: Ladislav Slezák <lslezak>
Status: RESOLVED FIXED QA Contact: Klaus Kämpf <kkaempf>
Severity: Blocker    
Priority: P5 - None CC: aj, daniel.etter, gp, hwit, jnelson-suse, knutbert, mge, mge, sdummer, suse-beta
Version: Beta 9   
Target Milestone: ---   
Hardware: 64bit   
OS: SuSE Linux 10.1   
Whiteboard:
Found By: Beta-Customer Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Bug Depends on:    
Bug Blocks: 167240    
Attachments: Misssing, due to bugzilla stupidity.
/var/log/YaST2, part1
/var/log/YaST2/ part 2

Description Forgotten User N1m2whZ-xl 2006-03-16 20:14:46 UTC
During installation (update beta6 -> beta8), the disk space calculation does not reflect that /usr is a separate partition.

I have

inst-sys:~ # df
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/loop0              199188    199188         0 100% /mounts/instsys
134.76.1.1:/SA2/SL-OSS-factory/inst-source
                     185009376 145954112  29657216  84% /var/adm/mount/AP_0x00000001
/dev/hda3              7597856   2374888   4837008  33% /mnt
/dev/hda5             19533472  17269152   2264320  89% /mnt/D
/dev/hda2                93356     74636     13904  85% /mnt/QM
/dev/hda6              7597824   5888868   1322996  82% /mnt/usr
/dev/hda7             18255492   8181060   9147084  48% /mnt/home
inst-sys:~ # 

The total size of the to-install-packages is 4.6 GB, and I get a blocking warning that I have to delete some packages because there is not enough space.
I have to free about 100 MB packages before I am allowed to go on.

There IS enough space, the calculation just did not reflect that /usr is a separate partition.
Comment 1 Michael Gross 2006-03-17 11:47:25 UTC
From which installation media do you install?
Comment 2 Forgotten User N1m2whZ-xl 2006-03-17 13:28:53 UTC
Factory in the true Beta8 state, hard disk via NFS.

I had booted initrd and linux from SL-OSS-factory/inst-source/boot/x86_64/loader/ and then used SL-OSS-factory/inst-source/ via NFS.

You can verify this at the df output above.

The captures were done with the "ssh textinstall" mode.

Comment 3 Jiri Srain 2006-03-17 22:49:35 UTC
Could you, please, attach logs from the update? See http://en.opensuse.org/Bug_Reporting_FAQ#YaST for details...
Comment 4 Forgotten User N1m2whZ-xl 2006-03-17 23:16:51 UTC
/var/log/YaSt2 seems to be too big for Novell's bugzilla (> 10 MB).
So please tell me what to delete before sending:

 turion:0 00:12:51 /var/log # dir -rt YaST2/
total 166296
-rw-r--r--  1 root root 10503221 Mar 14 17:11 y2log-5
-rw-r--r--  1 root root 10485804 Mar 16 20:14 y2log-4
-rw-r--r--  1 root root 10485886 Mar 16 20:17 y2log-3
-rw-r--r--  1 root root      555 Mar 16 22:18 volume_info
-rw-r--r--  1 root root    20637 Mar 16 22:35 y2log.SuSEconfig
-rw-r--r--  1 root root     1477 Mar 16 22:38 macro_inst_cont.ycp
-rw-r--r--  1 root root     8367 Mar 16 22:38 y2start.log
-rw-r--r--  1 root root     3389 Mar 16 22:48 config_diff_2006_03_16.log
-rw-r--r--  1 root root   764738 Mar 16 23:13 y2logRPM
-rw-------  1 root root      451 Mar 16 23:15 y2log_bootloader
-rw-r--r--  1 root root      149 Mar 16 23:15 badlist
-rw-r--r--  1 root root        0 Mar 16 23:15 y2logMount
-rw-r--r--  1 root root      309 Mar 16 23:15 volume_info-1
-rw-r--r--  1 root root    14878 Mar 16 23:15 macro_inst_initial.ycp
-rw-r--r--  1 root root      677 Mar 16 23:15 disk_hda
-rw-r--r--  1 root root 68545768 Mar 16 23:15 y2log-2
-rw-r--r--  1 root root 68546102 Mar 16 23:15 y2log-1
drwx------  2 root root     4096 Mar 16 23:29 .
-rw-r--r--  1 root root   638942 Mar 16 23:35 y2log
-rw-r--r--  1 root root     6506 Mar 16 23:35 y2logmkinitrd
drwxr-xr-x 14 root root     4096 Mar 18 00:12 ..
turion:0 00:15:57 /var/log # 

Comment 5 Forgotten User N1m2whZ-xl 2006-03-17 23:42:32 UTC
Created attachment 73782 [details]
Misssing, due to bugzilla stupidity.

OK, deleted y2log-2 because y2log-1 was a superset of it,

Crazy - still too big (6 MB), and it first lets transfere it and then I get the error message. Please cure this! Either by allowing bigger uploads, or giving the error at start and not at end...

So I am not able to send the requested info due to bugzilla restrictions.
Comment 6 Forgotten User N1m2whZ-xl 2006-03-18 09:58:27 UTC
Created attachment 73802 [details]
/var/log/YaST2, part1

part 1 of /var/log/YaST2/
Comment 7 Forgotten User N1m2whZ-xl 2006-03-18 10:05:05 UTC
Created attachment 73803 [details]
/var/log/YaST2/ part 2

part2 of /var/log/YaST2/
Comment 8 Matthias Eckermann 2006-03-18 13:08:26 UTC
*** Bug 159322 has been marked as a duplicate of this bug. ***
Comment 9 Lukas Ocilka 2006-03-20 08:18:54 UTC
Eberhard, you can use bzip2 for a better compression next time, it might help a bit.

`cd /var/log/`
`tar -jcf YaST2.bzip2 YaST2`
Comment 10 Forgotten User N1m2whZ-xl 2006-03-20 13:24:54 UTC
It would not have helped in this case.
Bugzilla does not accept attachments > 5 MB.
Comment 11 Stanislav Visnovsky 2006-03-21 14:41:34 UTC
There is a workaround: rearrange the free space, not a blocker.
Comment 12 Matthias Eckermann 2006-03-21 14:46:26 UTC
Sorry, this is not a valid workaround in a given production environment;
especially as it worked before, i.e. including Beta 6 AFAIK.
Setting to BLOCKER again.
so short MgE
Comment 13 Stanislav Visnovsky 2006-03-21 14:51:46 UTC
No, it did not work before. Up to beta6 we did not check the space at all.
Comment 14 Matthias Eckermann 2006-03-21 15:00:29 UTC
That's not an excuse. It also worked in SLES 8 and SLES 9,
and I doubt, that the requirements allow a degradation in functionality.
Working in the Linux enterprise Environment for about 7 years now,
this is a blocker and will never be anything else.

so short MgE
-- 
Matthias G. Eckermann
Senior Linux and Open Source Architect
Novell Linux SWAT Team EMEA 
Comment 15 Matthias Eckermann 2006-03-24 11:57:26 UTC
*** Bug 159660 has been marked as a duplicate of this bug. ***
Comment 16 Matthias Eckermann 2006-03-27 14:10:50 UTC
Will this be fixed in Beta9?
Comment 17 Olli Ries 2006-03-28 14:57:45 UTC
Holgi, did your tests cover such scenario by any chance?
Comment 18 Andreas Jaeger 2006-03-29 09:46:14 UTC
It won't be fixed for Beta9.

Do you still need info from eberhard?  If yes, please ask him to provide it via other means.
Comment 19 Matthias Eckermann 2006-03-29 10:20:12 UTC
Proposal:

Could we, please, have a workaround, that the user can decide,
to allow installation regardless the (virtually) missing space?
"Proceed Anyway?" Yes - No

I think, it would be easy to add an corresponding query  instead of a warning in:
/usr/share/YaST2/modules/SpaceCalculation.ycp function "CheckDiskSize"
(on the "root"-disk).

Thanks - MgE
Comment 20 Hans Witvliet 2006-03-29 12:11:25 UTC
The query is allready there, but doesn't allow you to continue ;-(

A warning is good enough for a beta, but certainly not for R.C.!!
Otherwise back to b6-situation: no checking (at that point at least)
AFAIK, space checking is also done during software selection.

In the final product, you can not say "there might be a problem with diskspace, but don't be alarmed, because we can not calculate your free space currently"
People would bail out!
Comment 21 Matthias Eckermann 2006-03-29 12:21:43 UTC
I fully agree. My proposal was _only_, until the real calculation-bug
is fixed; it at least would allow, to install, what you selected _now_.
Comment 22 Jiri Srain 2006-03-29 23:48:56 UTC
I couldn't find the proposal blocker in the log, the only log I found were unresolved dependencies. Probably due to the size of the log, the error has not been preserved.

Are you able to reproduce the bug (with the latest beta)? If you are, please, grab the log when the void proposal blocking error appears, and attach them, they should be shorter.

Thanks in advance!
Comment 23 Forgotten User N1m2whZ-xl 2006-03-30 00:29:42 UTC
The red warning is still there, but it is not blocking any longer.
I did y2pmsh "upgrade" with last week's factory and then a YaST2 "system update" against today's factory.
I just was able to proceed against the red warning today.
Comment 24 Jon Nelson 2006-04-01 18:58:27 UTC
beta9 still exhibits this bug, and it seems to be a pretty serious one.
It's not taking into account the fact that my /usr and /var (and /opt, etc...) are on different partitions than /.

This is /very/ easy to reproduce - make your / partition, say, 1G and make additional partitions /usr, /opt, and /var and select (for example) to install the KDE desktop. That is 1.9G and will not fit into / alone, but more than enough when /usr and /opt are included.
Comment 25 Matthias Eckermann 2006-04-03 15:25:50 UTC
I am able to reproduce;see bug #162846 for the logs. No need to duplicate here.
Comment 26 Jon Nelson 2006-04-03 21:48:44 UTC
Of course, I don't have access to view bug 162846, but I'll assume y'all are working on it.
Comment 27 Stanislav Visnovsky 2006-04-06 13:40:51 UTC

*** This bug has been marked as a duplicate of 163197 ***
Comment 28 Matthias Eckermann 2006-04-09 09:02:28 UTC
Reading bug #163197 I heavily doubt, that this is the same problem.
Please read carefully, to see, why. Thanks.
Comment 29 Stanislav Visnovsky 2006-04-10 07:58:24 UTC
Feel free to describe here why it's different. Until then, this is fixed as duplicate.
Comment 30 Daniel Etter 2006-04-10 20:08:59 UTC
(In reply to comment #16)
> Will this be fixed in Beta9?
> 

I had the same during Installation of beta9 using LVM on IBM p550
I take the workaround to increase / by 12 MB

After initial Installation I installed KDE und received also a warning
about low disk-space but thisone it could be ignored. 

seems I don't have access to bug #162846 and #1633197 so I this message here
Comment 31 Jiri Srain 2006-04-10 21:15:46 UTC

*** This bug has been marked as a duplicate of 163197 ***
Comment 32 Enno Baars 2006-04-18 00:14:12 UTC
This bug is still present in RC1.

Reproduced on fresh install of RC1 from DVD (made out of CDs).
Setup: 300MB / partition plus VG with 3GB /usr and 3GB /opt plus smaller /tmp and /var. YaST complains about lack of disk space. "Continue anywas" option has no effect. There's no way to circumvent that faulty disk space check. Nasty.
Comment 33 Christoph Thiel 2006-04-18 06:39:40 UTC
*** Bug 167200 has been marked as a duplicate of this bug. ***
Comment 34 Stanislav Visnovsky 2006-04-18 07:50:06 UTC
I fear the only solution right now is to make this just a warning on update.
Comment 35 Ladislav Slezák 2006-04-18 11:12:41 UTC
The counting of disk space on separate patitions should be fixed in RC2 (see #163199).

I agree with switching the message to warning level, disk usage counting in update mode is not accurate and it could prevent from update of a system.
Comment 36 Ladislav Slezák 2006-04-18 14:37:48 UTC
Fixed in yast2-packager-2.13.86