Bug 493656 - growLVM traceback when no --size but --grow
Summary: growLVM traceback when no --size but --grow
Keywords:
Status: CLOSED INSUFFICIENT_DATA
Alias: None
Product: Fedora
Classification: Fedora
Component: anaconda
Version: 11
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Chris Lumens
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: anaconda_trace_hash:e41e444e276c14b44...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-04-02 14:28 UTC by Eric Paris
Modified: 2009-06-18 18:37 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-06-18 18:37:20 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
Attached traceback automatically from anaconda. (145.77 KB, text/plain)
2009-04-02 14:28 UTC, Eric Paris
no flags Details
Attached traceback automatically from anaconda. (122.08 KB, text/plain)
2009-04-02 18:04 UTC, Eric Paris
no flags Details

Description Eric Paris 2009-04-02 14:28:30 UTC
The following was filed automatically by anaconda:
anaconda 11.5.0.39 exception report
Traceback (most recent call first):
  File "/usr/lib/anaconda/storage/partitioning.py", line 1061, in growLVM
    portion = float(lv.req_size) / float(lv_total)
  File "/usr/lib/anaconda/storage/partitioning.py", line 193, in doAutoPartition
    growLVM(anaconda.id.storage)
  File "/usr/lib/anaconda/dispatch.py", line 205, in moveStep
    rc = stepFunc(self.anaconda)
  File "/usr/lib/anaconda/dispatch.py", line 128, in gotoNext
    self.moveStep()
  File "/usr/lib/anaconda/dispatch.py", line 227, in currentStep
    self.gotoNext()
  File "/usr/lib/anaconda/gui.py", line 1356, in setScreen
    (step, anaconda) = self.anaconda.dispatch.currentStep()
  File "/usr/lib/anaconda/gui.py", line 1519, in setup_window
    self.setScreen()
  File "/usr/lib/anaconda/gui.py", line 1529, in run
    self.setup_window(runres)
  File "/usr/lib/anaconda/gui.py", line 1276, in run
    self.icw.run (self.runres)
  File "/usr/bin/anaconda", line 968, in <module>
    anaconda.intf.run(anaconda)
ZeroDivisionError: float division

Comment 1 Eric Paris 2009-04-02 14:28:35 UTC
Created attachment 337824 [details]
Attached traceback automatically from anaconda.

Comment 2 Eric Paris 2009-04-02 15:17:23 UTC
part pv.2 --size=25000
volgroup VGVIRT --pesize=32768 pv.2
logvol /var/lib/libvirt/images --vgname=VGVIRT --fstype=btrfs --name LVVIRT --grow

This ALSO happened when I added --size=1 --grow

I moved to just hard coding --size without --grow and it at least installs...

Comment 3 Chris Lumens 2009-04-02 17:11:54 UTC
Does using updates=http://clumens.fedorapeople.org/493656.img result in you getting an error saying that a size is required?  The proper behavior here is that you get an error, since logvol requires a size to be specified, either through --size, --percent, or --useexisting.

Comment 4 Eric Paris 2009-04-02 18:04:35 UTC
Created attachment 337866 [details]
Attached traceback automatically from anaconda.

Comment 5 David Lehman 2009-04-03 03:13:33 UTC
The second problem (--size=1 --grow) should be fixed in anaconda-11.5.0.40-1.

Comment 6 Chris Lumens 2009-04-23 19:36:17 UTC
What's the current status on this bug?

Comment 7 Chris Lumens 2009-04-24 19:52:48 UTC
I've made a slightly better test to catch zero sized partitions and LVs, which I believe should fix this issue.  Please try the next build of anaconda and let me know if this fixes your bug.  Thanks.

Comment 8 Bug Zapper 2009-06-09 13:06:41 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 11 development cycle.
Changing version to '11'.

More information and reason for this action is here:
http://fedoraproject.org/wiki/BugZappers/HouseKeeping


Note You need to log in before you can comment on or make changes to this bug.