Bug 495713

Summary: ValueError: object comparing to must be a _ped.DiskType
Product: [Fedora] Fedora Reporter: James Laska <jlaska>
Component: pypartedAssignee: Chris Lumens <clumens>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: aj.werkman, bruno, jturner, mnowak, petersen, pjones, rmaximo, sdodson, tcallawa, vanmeeuwen+fedora
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: anaconda_trace_hash:f50b495fc575df28f4f30ff6efbcc01339bfd0a3c6ed354242ce5423eb1dc935
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-05-06 21:25:43 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 495965    
Attachments:
Description Flags
Attached traceback automatically from anaconda.
none
Attached traceback automatically from anaconda.
none
Attached traceback automatically from anaconda.
none
Attached traceback automatically from anaconda. none

Description James Laska 2009-04-14 14:02:40 UTC
The following was filed automatically by anaconda:
anaconda 11.5.0.44 exception report
Traceback (most recent call first):
  File "/usr/lib/anaconda/storage/devicetree.py", line 667, in _addDevice
    if newdev.path in [d.path for d in self._devices]:
  File "/usr/lib/anaconda/storage/devicetree.py", line 1091, in addUdevDiskDevice
    self._addDevice(device)
  File "/usr/lib/anaconda/storage/devicetree.py", line 1159, in addUdevDevice
    device = self.addUdevDiskDevice(info)
  File "/usr/lib/anaconda/storage/devicetree.py", line 1588, in populate
    self.addUdevDevice(dev)
  File "/usr/lib/anaconda/storage/__init__.py", line 288, in reset
    self.devicetree.populate()
  File "/usr/lib/anaconda/storage/__init__.py", line 101, in storageInitialize
    storage.reset()
  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/gui.py", line 1323, in nextClicked
    self.anaconda.dispatch.gotoNext()
ValueError: object comparing to must be a _ped.DiskType

Comment 1 James Laska 2009-04-14 14:02:44 UTC
Created attachment 339494 [details]
Attached traceback automatically from anaconda.

Comment 2 James Laska 2009-04-14 14:04:28 UTC
Steps to reproduce:

1. Create a KVM/x86_64 guest
2. Zero out the the virtio disk (dd if=/dev/zero of=/dev/Volume/vguest1-disk0 bs=514 count=20)
3. Initiate install (anaconda-11.5.0.44)
4. Select lang+keyboard
5. When prompted, select to re-initialize drive /dev/vdb

Crash

Comment 3 Scott Dodson 2009-04-14 16:22:13 UTC
Created attachment 339520 [details]
Attached traceback automatically from anaconda.

Comment 4 Chris Lumens 2009-04-14 17:18:20 UTC
This should be fixed in the next build of pyparted.  For now, you can test with updates=http://clumens.fedorapeople.org/updates.img.

Comment 5 James Laska 2009-04-14 17:28:32 UTC
Confirmed the fix using the updates.img in comment#4.  Thank you!

Comment 6 Scott Dodson 2009-04-14 18:05:22 UTC
Confirmed here too. Thanks.

Comment 7 Michal Nowak 2009-04-15 07:50:34 UTC
Created attachment 339638 [details]
Attached traceback automatically from anaconda.

Comment 8 Jens Petersen 2009-04-15 11:14:00 UTC
Created attachment 339665 [details]
Attached traceback automatically from anaconda.

Comment 9 Chris Lumens 2009-04-15 13:56:16 UTC
*** Bug 495855 has been marked as a duplicate of this bug. ***

Comment 10 Chris Lumens 2009-04-15 13:56:29 UTC
*** Bug 495822 has been marked as a duplicate of this bug. ***

Comment 11 Chris Lumens 2009-05-06 21:25:43 UTC
Thanks for confirming.