Description of problem: Zero length disk: $ qemu-img create f18-test-4.img 1 qemu-img creates a 0 byte disc image in this case. Version-Release number of selected component: anaconda-18.16-1.fc18.x86_64 Additional info: libreport version: 2.0.14 cmdline: /usr/bin/python /sbin/anaconda --liveinst --method=livecd:///dev/mapper/live-osimg-min --lang en_US.UTF-8 kernel: 3.6.1-1.fc18.x86_64 description: :The following was filed automatically by anaconda: :anaconda 18.16 exception report :Traceback (most recent call first): : File "/usr/lib64/python2.7/site-packages/pyanaconda/storage/size.py", line 99, in _parseSpec : raise ValueError("invalid size specification", spec) : File "/usr/lib64/python2.7/site-packages/pyanaconda/storage/size.py", line 137, in __new__ : self = Decimal.__new__(cls, value=_parseSpec(spec)) : File "/usr/lib64/python2.7/site-packages/pyanaconda/ui/gui/spokes/lib/cart.py", line 47, in size_str : return str(Size(spec=spec)).upper() : File "/usr/lib64/python2.7/site-packages/pyanaconda/ui/gui/spokes/lib/cart.py", line 59, in initialize : size_str(free[disk.name][0]), : File "/usr/lib64/python2.7/site-packages/pyanaconda/ui/gui/spokes/lib/cart.py", line 97, in refresh : self.initialize(disks, free, showRemove=showRemove) : File "/usr/lib64/python2.7/site-packages/pyanaconda/ui/gui/spokes/storage.py", line 576, in on_summary_clicked : free_space) :ValueError: ('invalid size specification', '0 b')
Created attachment 626091 [details] File: anaconda-tb
Created attachment 626092 [details] File: environ
Created attachment 626093 [details] File: type
Created attachment 626094 [details] File: storage.log
Created attachment 626095 [details] File: version
Created attachment 626096 [details] File: program.log
Created attachment 626097 [details] File: product
Created attachment 626098 [details] File: anaconda.log
Created attachment 626099 [details] File: hashmarkername
Created attachment 626100 [details] File: cmdline_file
Created attachment 626101 [details] File: release
Created attachment 626102 [details] File: messages
$ qemu-img create f18-test-4.img 1k 1024 bytes per 'ls -l' Package: anaconda-18.16-1.fc18.x86_64 OS Release: Fedora release 18
This particular traceback is in fact a bug, but don't let this confuse you into thinking you will ever be able to do anything with a disk of that size in the installer. We simply do not care at all about such cases. Not at all.
What, no 1-byte installs? :-) But seriously, a realistic use-case is a user typo when specifying the size of the disc image. For comparison, parted simply returns, and fdisk complains about an "Invalid argument": $ cat typescript-3 Script started on Fri 12 Oct 2012 12:44:20 PM EDT [root@localhost xfr]# parted /dev/sda print [root@localhost xfr]# fdisk -l /dev/sda fdisk: cannot open /dev/sda: Invalid argument [root@localhost xfr]# rpm -q parted util-linux parted-3.1-7.fc18.x86_64 util-linux-2.22-1.fc18.x86_64 [root@localhost xfr]# dmesg | grep sda [ 0.681689] sd 0:0:0:0: [sda] 0 512-byte logical blocks: (0 B/0 B) [ 0.681779] sd 0:0:0:0: [sda] Write Protect is off [ 0.681787] sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00 [ 0.681828] sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA [ 0.682219] sd 0:0:0:0: [sda] Attached SCSI disk [root@localhost xfr]# exit Script done on Fri 12 Oct 2012 12:45:22 PM EDT Tested with: $ qemu-kvm -m 2048 -hda f18-test-4.img -cdrom ~/xfr/fedora/F18/F18-Beta/TC3/Fedora-18-Beta-TC3-x86_64-Live-Desktop.iso -usb -vga qxl -boot menu=on -usbdevice mouse
*** Bug 867891 has been marked as a duplicate of this bug. ***
dlehman believes the issue should be fixed in recent anaconda builds. If you can reliably reproduce this (you know what partitioning configuration and anaconda path causes it), can you try with TC7 and report whether it's fixed? Thanks!
(In reply to comment #17) > dlehman believes the issue should be fixed in recent anaconda builds. If you > can reliably reproduce this (you know what partitioning configuration and > anaconda path causes it), can you try with TC7 and report whether it's > fixed? Thanks! The test is very simple: Attempt to install to a 1 byte disc image: $ qemu-img create f18-test-4.img 1 (In fact, qemu-img creates a zero-byte disc image.)
With a zero-byte disc image, I couldn't reproduce this bug with 18.24 or 18.16. With 18.24 (on F18-Beta-TC7): Reproduced Bug 873392 with: Test 1: Click Installation Destination Click Continue These tests pass: Test 2: Click Installation Destination Click Done Test 3: Click Installation Destination Click Full disk summary and options Click Close Click Done With 18.16 (updated from 18.14 on F18-Beta-TC3): (versions per original report) Reproduced Bug 863647 with: Test 1: Click Installation Destination Click Continue
Reproduce Bug 865849 with 18.16 on F18-Beta-TC3. Package: anaconda-18.16-1.fc18.x86_64 OS Release: Fedora release 18
(In reply to comment #20) > Reproduce Bug 865849 with 18.16 on F18-Beta-TC3. > > Package: anaconda-18.16-1.fc18.x86_64 > OS Release: Fedora release 18 Correcting myself. With 18.16 on F18-Beta-TC3-Live and a zero-byte disc image, this is the reproducer: Test 3: Click Installation Destination Click Full disk summary and options >>>> (Bug 865849 - dupe) Click Close Click Done The bug does not occur with 18.24 on F18-Beta-TC7-Live.
Marking VERIFIED then, thanks.
This bug looks to have been fixed for many anaconda builds now but missed being closed. If you find you are still experiencing it with Fedora 18 Beta (RC1) or later, please re-open the bug. (ref comment #21)