Bug 584328 - AttributeError: 'NoneType' object has no attribute 'name'
Summary: AttributeError: 'NoneType' object has no attribute 'name'
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: python-pyblock
Version: 13
Hardware: i386
OS: Linux
low
medium
Target Milestone: ---
Assignee: David Lehman
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: https://fedoraproject.org/wiki/Common...
: 607679 618853 638705 640403 (view as bug list)
Depends On: 641474 641476
Blocks: 639138 F14AnacondaBlocker
TreeView+ depends on / blocked
 
Reported: 2010-04-21 12:17 UTC by Frantisek Hanzlik
Modified: 2013-01-10 05:50 UTC (History)
19 users (show)

Fixed In Version: python-pyblock-0.52-1.fc14
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 639138 641476 (view as bug list)
Environment:
Last Closed: 2010-10-20 23:06:28 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
Attached traceback automatically from anaconda. (341.38 KB, text/plain)
2010-04-21 12:17 UTC, Frantisek Hanzlik
no flags Details
Attached traceback automatically from anaconda. (375.01 KB, text/plain)
2010-08-18 02:36 UTC, Dawid Zamirski
no flags Details
Attached traceback automatically from anaconda. (1.02 MB, text/plain)
2010-08-24 17:23 UTC, Reuben W. Perelman
no flags Details
Attached traceback automatically from anaconda. (285.38 KB, text/plain)
2010-09-16 13:48 UTC, James Laska
no flags Details
Attached traceback automatically from anaconda. (515.90 KB, text/plain)
2010-09-16 16:24 UTC, James Laska
no flags Details
Attached traceback automatically from anaconda. (222.57 KB, text/plain)
2010-09-21 17:28 UTC, James Laska
no flags Details
Attached traceback automatically from anaconda. (184.30 KB, text/plain)
2010-09-21 18:04 UTC, James Laska
no flags Details
Attached traceback automatically from anaconda. (137.81 KB, text/plain)
2010-09-29 18:05 UTC, Don Church
no flags Details
Attached traceback automatically from anaconda. (357.48 KB, text/plain)
2010-09-29 19:08 UTC, James Laska
no flags Details
Attached traceback automatically from anaconda. (138.76 KB, text/plain)
2010-10-01 16:40 UTC, Jesse Keating
no flags Details
Attached traceback automatically from anaconda. (280.65 KB, text/plain)
2010-10-02 19:09 UTC, giles
no flags Details
Attached traceback automatically from anaconda. (218.77 KB, text/plain)
2010-10-08 00:03 UTC, Dawid Zamirski
no flags Details
Attached traceback automatically from anaconda. (161.80 KB, text/plain)
2010-10-19 22:30 UTC, Jesse Keating
no flags Details
Attached traceback automatically from anaconda. (254.57 KB, text/plain)
2010-10-20 00:08 UTC, Jesse Keating
no flags Details

Description Frantisek Hanzlik 2010-04-21 12:17:51 UTC
The following was filed automatically by anaconda:
anaconda 13.37.2 exception report
Traceback (most recent call first):
  File "/usr/lib/anaconda/iw/partition_gui.py", line 1066, in populate
    devstring = device.name
  File "/usr/lib/anaconda/iw/partition_gui.py", line 1836, in getScreen
    self.populate(initial = 1)
  File "/usr/lib/anaconda/gui.py", line 1393, in setScreen
    new_screen = self.currentWindow.getScreen(anaconda)
  File "/usr/lib/anaconda/gui.py", line 1314, in nextClicked
    self.setScreen ()
AttributeError: 'NoneType' object has no attribute 'name'

Comment 1 Frantisek Hanzlik 2010-04-21 12:17:58 UTC
Created attachment 408050 [details]
Attached traceback automatically from anaconda.

Comment 2 Chris Lumens 2010-04-22 03:40:02 UTC
What steps did you take to get to this traceback?

Comment 3 Frantisek Hanzlik 2010-04-22 08:59:03 UTC
I was not satisfied with partitiong ordering as designated by anaconda, then
I switch from graphical installer to shell, divide disks by fdisk as I was imagined, then switch back to anaconda GUI, and with several (two or three) use "Back" button I return before block device section. Then I want normally continue, but probably during block devices discovery phase anaconda crashed - maybe there remaind some uninitialized objects etc.

I think this problem was in older Fedora versions, then in latest (at minimal F11 and F12 I think) this practice was possible. In F13 anaconda disk dividing section seems heavily reworked, but possibility of partition ordering determination probably isn't possible (when not counting primary partition enforcing).

I wery often install Fedora on PCs with several disks arranged as SW RAID (md) devices, and almost allways I want by hand determined disk splitting (and e.g. one disk division and then dd MBR to other same disks and eventually enforcing kernel PT rereading by blockdev or fdisk on those other disks).

Comment 4 Chris Lumens 2010-06-24 14:52:43 UTC
*** Bug 607679 has been marked as a duplicate of this bug. ***

Comment 5 alien_life_form 2010-07-22 07:15:33 UTC
I have this issue with anaconda 13.42/i386

System (Dell XPS) has BIOS RAID, with three WIN partions (factory tools,
factory restore, win7). Any partitioning scheme (manual w/standard partions (no
lvm), lvm auto, lvm review fails, fails with "too many primary partions".
(report failed in bug# 568219)

I tried to pre-partition the disk, telling anaconda to replace existing
partitions, which led to what follows:

 Traceback (most recent call first):
  File "/usr/lib/anaconda/iw/partition_gui.py", line 1070, in populate
    devstring = device.name
  File "/usr/lib/anaconda/iw/partition_gui.py", line 1844, in getScreen
    self.populate(initial = 1)
  File "/usr/lib/anaconda/gui.py", line 1393, in setScreen
    new_screen = self.currentWindow.getScreen(anaconda)
  File "/usr/lib/anaconda/gui.py", line 1405, in setScreen
    return self.setScreen()
  File "/usr/lib/anaconda/gui.py", line 1314, in nextClicked
    self.setScreen ()
 AttributeError: 'NoneType' object has no attribute 'name'

(full traceback had separately been reported here:
[http://www.google.it/url?sa=t&source=web&cd=1&ved=0CBcQFjAA&url=http%3A%2F%2Fforums.fedoraforum.org%2Fattachment.php%3Fattachmentid%3D19742%26d%3D1277495147&ei=Fj08TIzkD47-OdvG5MQP&usg=AFQjCNESY6NU1mDaHd7ic2N9WNVFL4Pr3A&sig2=a9sl-DTePlck5vAxRunNXQ])

Comment 6 Chris Lumens 2010-07-28 13:55:29 UTC
*** Bug 618853 has been marked as a duplicate of this bug. ***

Comment 7 Dawid Zamirski 2010-08-18 02:36:13 UTC
Created an attachment (id=439281)
Attached traceback automatically from anaconda.

Comment 8 Dawid Zamirski 2010-08-18 02:49:29 UTC
The traceback that I got was generated from F14 Apha RC3 Live x86_64 with all updates installed via yum (I'm using Live USB). After starting anaconda, when I got to the storage section I did the following:

1. Choose Basic Storage
2. Choose Custom Layout
3. Select one of the drives (in my case RAID 0 strip) as the one to install the system on and mark to intall bootloader on it.
4. Click Next => Crash

I can reproduce it every time and I'm unable to install the F14 alpha because of that - I need custom layout as I don't want to format my /home partition.

Comment 9 Manuel Faux 2010-08-19 21:33:26 UTC

-- 
Fedora Bugzappers volunteer triage team
https://fedoraproject.org/wiki/BugZappers

Comment 10 Reuben W. Perelman 2010-08-24 17:23:37 UTC
Created an attachment (id=440705)
Attached traceback automatically from anaconda.

Comment 11 Reuben W. Perelman 2010-08-24 17:42:58 UTC
This traceback is from the Fedora 14 Alpha KDE Live CD. I start the installer, fill in information like timezone, etc. I select basic storage, then select custom layout. On the next screen I select the hard drive I want to use, click next and I get an error.

Comment 12 Reuben W. Perelman 2010-09-06 22:25:09 UTC
Tested again in the Septermber 5th nightly compose. Same bug. Will wait until beta images are released to retest unless there is activity in this thread.

Comment 13 James Laska 2010-09-16 13:48:50 UTC
Created an attachment (id=447749)
Attached traceback automatically from anaconda.

Comment 14 James Laska 2010-09-16 16:24:05 UTC
Created an attachment (id=447788)
Attached traceback automatically from anaconda.

Comment 15 David Lehman 2010-09-17 16:49:05 UTC
Just a note: as of F14 development this appears to be a live-only, biosraid-only bug.

Comment 16 James Laska 2010-09-21 17:28:14 UTC
Created attachment 448755 [details]
Attached traceback automatically from anaconda.

Comment 17 James Laska 2010-09-21 17:29:07 UTC
(In reply to comment #15)
> Just a note: as of F14 development this appears to be a live-only,
> biosraid-only bug.

See comment#16 (attachment#448755 [details]) for an NFSISO installation that encountered this issue.

Comment 18 James Laska 2010-09-21 18:04:28 UTC
Created attachment 448764 [details]
Attached traceback automatically from anaconda.

Comment 19 David Lehman 2010-09-27 16:34:32 UTC
This is caused by biosraid devices that were mapped via device-mapper but not assigned a UUID by the same. Apparently we cannot rely on DM_UUID even existing.

Comment 20 Reuben W. Perelman 2010-09-27 17:04:26 UTC
Will there be a fix in the Beta?

Comment 21 David Lehman 2010-09-27 17:12:54 UTC
No. For most of you, however, using the non-live installer will prevent this bug from appearing.

Comment 22 Don Church 2010-09-29 18:05:12 UTC
Created attachment 450537 [details]
Attached traceback automatically from anaconda.

Comment 23 Don Church 2010-09-29 18:22:21 UTC
sry...I submitted a bug report (bug 638705) before repeating the install process and pasting report directly here.  They should be consolidated.

:(  I thought I could paste the output to my existing bug report.

Comment 24 Chris Lumens 2010-09-29 18:28:17 UTC
*** Bug 638705 has been marked as a duplicate of this bug. ***

Comment 25 James Laska 2010-09-29 19:08:00 UTC
Created attachment 450556 [details]
Attached traceback automatically from anaconda.

Comment 26 Brian Lane 2010-09-29 21:24:11 UTC
(In reply to comment #19)
> This is caused by biosraid devices that were mapped via device-mapper but not
> assigned a UUID by the same. Apparently we cannot rely on DM_UUID even
> existing.

If so, then this is a dupe of bug 634980 and is fixed in parted-2.3-2

Comment 27 David Lehman 2010-09-30 22:18:10 UTC
There are two totally distinct bugs here: the live one is a parted bug (bug 639138), and the one jlaska is seeing is a pyblock bug (it isn't setting the uuids on the dmraid devices at all).

Comment 28 Adam Williamson 2010-10-01 16:22:08 UTC
This was discussed at the blocker review meeting of 2010/10/01. We agreed that it constitutes a blocker under the criterion "The installer must be able to create and install to any workable partition layout using any file system offered in a default installer configuration, LVM, software, hardware or BIOS RAID, or combination of the above".

Comment 29 Jesse Keating 2010-10-01 16:40:16 UTC
Created attachment 451055 [details]
Attached traceback automatically from anaconda.

Comment 30 giles 2010-10-02 19:09:50 UTC
Created attachment 451215 [details]
Attached traceback automatically from anaconda.

Comment 31 Chris Lumens 2010-10-05 19:34:40 UTC
*** Bug 640403 has been marked as a duplicate of this bug. ***

Comment 32 John Poelstra 2010-10-06 21:28:54 UTC
Is there a status on the progress towards fixing this bug?  Any additional information that could be gathered to make fixing it easier?

Comment 33 Dawid Zamirski 2010-10-08 00:03:04 UTC
Created attachment 452230 [details]
Attached traceback automatically from anaconda.

Comment 34 Dawid Zamirski 2010-10-08 00:28:37 UTC
(In reply to comment #33)
> Created attachment 452230 [details]
> Attached traceback automatically from anaconda.

FYI, this traceback was generated from the pre-upgrade installer (not live USB). I also ran on this bug when using the install DVD..

Comment 35 David Lehman 2010-10-08 17:36:31 UTC
pjones is working on a patch to the kernel (device-mapper) to allow setting of uuid for already-existing maps, as long as they have no uuid at that time. Patches will also be required for libdevmapper to provide a function along the lines of the existing function dm_task_set_newname, but for uuid instead of name. I have drafted a patch to pyblock that will make use of all of the above to ensure correct uuids are set for dmraid and mpath devices created by pyblock.

Comment 36 Adam Williamson 2010-10-08 18:16:10 UTC
At the 2010-10-08 blocker meeting we agreed to reassign this bug to pyblock and create new bugs against kernel and libdevmapper which block this bug. Jlaska will be doing this.

Comment 37 James Laska 2010-10-08 19:58:08 UTC
(In reply to comment #36)
> At the 2010-10-08 blocker meeting we agreed to reassign this bug to pyblock and
> create new bugs against kernel and libdevmapper which block this bug. Jlaska
> will be doing this.

 * bug#641474 (lvm2)
 * bug#641476 (kernel)

Comment 38 James Laska 2010-10-12 15:54:55 UTC
What's the next step for this bug, is there a patch pending based on the changes in the other 2 bugs?  Dave, can you post the patch, and should this bug move into MODIFIED, or do we wait on the other 2 bug?

Comment 39 David Lehman 2010-10-12 22:33:35 UTC
Here's the patch review request: https://www.redhat.com/archives/anaconda-devel-list/2010-October/msg00072.html

The patches require the libdevmapper and kernel changes tracked by the bugs that block this one. Once the patches have been pushed to upstream pyblock's git repo I will mark this one as MODIFIED.

Comment 40 John Poelstra 2010-10-14 17:24:40 UTC
Resolution of this bug is blocking on https://bugzilla.redhat.com/show_bug.cgi?id=641474 and https://bugzilla.redhat.com/show_bug.cgi?id=641476 (in MODIFIED)

Comment 41 Adam Williamson 2010-10-15 16:34:48 UTC
Discussed at the 2010-10-15 blocker review meeting. pjones is working on this whole set of bugs and expects it to be cleaned up today.



-- 
Fedora Bugzappers volunteer triage team
https://fedoraproject.org/wiki/BugZappers

Comment 42 James Laska 2010-10-19 13:41:27 UTC
Moving into ON_QA, a fix is available for testing at https://admin.fedoraproject.org/updates/python-pyblock-0.51-1.fc14

Comment 43 Jesse Keating 2010-10-19 22:30:15 UTC
Created attachment 454462 [details]
Attached traceback automatically from anaconda.

Comment 44 Jesse Keating 2010-10-20 00:08:54 UTC
Created attachment 454475 [details]
Attached traceback automatically from anaconda.

Comment 45 David Lehman 2010-10-20 16:00:59 UTC
There is a problem with the original patch. Due to another bug in pyblock, my patch prevents creation of device nodes for the partitions, which again leads to the same anaconda traceback. I have proposed a follow-on patch to python-pyblock which resolves the issue in my testing:

https://www.redhat.com/archives/anaconda-devel-list/2010-October/msg00203.html

Comment 46 Fedora Update System 2010-10-20 18:59:49 UTC
python-pyblock-0.52-1.fc14 has been submitted as an update for Fedora 14.
https://admin.fedoraproject.org/updates/python-pyblock-0.52-1.fc14

Comment 47 Fedora Update System 2010-10-20 23:06:21 UTC
python-pyblock-0.52-1.fc14 has been pushed to the Fedora 14 stable repository.  If problems still persist, please make note of it in this bug report.


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