Bug 862972 - AttributeError: 'NoneType' object has no attribute 'resizable'
Summary: AttributeError: 'NoneType' object has no attribute 'resizable'
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: anaconda
Version: 18
Hardware: ppc64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Chris Lumens
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:55af814abdd87a3949e984c4f3d...
: 863353 864086 864488 865322 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-10-04 04:27 UTC by Mark Hamzy
Modified: 2013-03-12 14:25 UTC (History)
10 users (show)

Fixed In Version: anaconda-18.15-1
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-11-23 02:45:25 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: anaconda-tb (295.58 KB, text/plain)
2012-10-04 04:27 UTC, Mark Hamzy
no flags Details
File: product (6 bytes, text/plain)
2012-10-04 04:27 UTC, Mark Hamzy
no flags Details
File: type (9 bytes, text/plain)
2012-10-04 04:27 UTC, Mark Hamzy
no flags Details
File: environ (812 bytes, text/plain)
2012-10-04 04:27 UTC, Mark Hamzy
no flags Details
File: storage.log (146.30 KB, text/plain)
2012-10-04 04:27 UTC, Mark Hamzy
no flags Details
File: version (2 bytes, text/plain)
2012-10-04 04:27 UTC, Mark Hamzy
no flags Details
File: program.log (62.55 KB, text/plain)
2012-10-04 04:27 UTC, Mark Hamzy
no flags Details
File: anaconda.log (4.83 KB, text/plain)
2012-10-04 04:27 UTC, Mark Hamzy
no flags Details
File: syslog (40.85 KB, text/plain)
2012-10-04 04:28 UTC, Mark Hamzy
no flags Details
File: hashmarkername (8 bytes, text/plain)
2012-10-04 04:28 UTC, Mark Hamzy
no flags Details
File: packaging.log (3.48 KB, text/plain)
2012-10-04 04:28 UTC, Mark Hamzy
no flags Details
File: cmdline_file (184 bytes, text/plain)
2012-10-04 04:28 UTC, Mark Hamzy
no flags Details
File: release (24 bytes, text/plain)
2012-10-04 04:28 UTC, Mark Hamzy
no flags Details
File: description (737 bytes, text/plain)
2012-10-04 04:28 UTC, Mark Hamzy
no flags Details

Description Mark Hamzy 2012-10-04 04:27:40 UTC
Version-Release number of selected component:
anaconda-18.12

Additional info:
libreport version: 2.0.12
cmdline:        /usr/bin/python  /sbin/anaconda
kernel:         3.6.0-2.fc18.ppc64

Comment 1 Mark Hamzy 2012-10-04 04:27:43 UTC
Created attachment 621322 [details]
File: anaconda-tb

Comment 2 Mark Hamzy 2012-10-04 04:27:44 UTC
Created attachment 621323 [details]
File: product

Comment 3 Mark Hamzy 2012-10-04 04:27:46 UTC
Created attachment 621324 [details]
File: type

Comment 4 Mark Hamzy 2012-10-04 04:27:48 UTC
Created attachment 621325 [details]
File: environ

Comment 5 Mark Hamzy 2012-10-04 04:27:50 UTC
Created attachment 621326 [details]
File: storage.log

Comment 6 Mark Hamzy 2012-10-04 04:27:52 UTC
Created attachment 621327 [details]
File: version

Comment 7 Mark Hamzy 2012-10-04 04:27:58 UTC
Created attachment 621328 [details]
File: program.log

Comment 8 Mark Hamzy 2012-10-04 04:27:59 UTC
Created attachment 621329 [details]
File: anaconda.log

Comment 9 Mark Hamzy 2012-10-04 04:28:01 UTC
Created attachment 621330 [details]
File: syslog

Comment 10 Mark Hamzy 2012-10-04 04:28:03 UTC
Created attachment 621331 [details]
File: hashmarkername

Comment 11 Mark Hamzy 2012-10-04 04:28:04 UTC
Created attachment 621332 [details]
File: packaging.log

Comment 12 Mark Hamzy 2012-10-04 04:28:06 UTC
Created attachment 621333 [details]
File: cmdline_file

Comment 13 Mark Hamzy 2012-10-04 04:28:07 UTC
Created attachment 621334 [details]
File: release

Comment 14 Mark Hamzy 2012-10-04 04:28:09 UTC
Created attachment 621335 [details]
File: description

Comment 15 Chris Lumens 2012-10-04 14:06:47 UTC
Can you see why getDeviceByPath is failing at that point?

Comment 16 Chris Lumens 2012-10-05 14:35:02 UTC
*** Bug 863353 has been marked as a duplicate of this bug. ***

Comment 17 Christoph Wickert 2012-10-07 21:14:16 UTC
I tried to install Fedora over an existing install. It took me several attempts to figure out how to 'reclaim free space' works, and when I finally told it to wipe all partitions, i selected automatic creation of mountpoints in the next screen. Went back to the main hub and anaconda crashed.

Package: anaconda-18.12
Architecture: i686
OS Release: Fedora release 18-Beta-TC2

Comment 18 Chris Lumens 2012-10-08 14:38:00 UTC
*** Bug 864086 has been marked as a duplicate of this bug. ***

Comment 19 Chris Lumens 2012-10-09 14:04:34 UTC
*** Bug 864488 has been marked as a duplicate of this bug. ***

Comment 20 Chris Lumens 2012-10-09 14:24:21 UTC
*** Bug 864180 has been marked as a duplicate of this bug. ***

Comment 21 Chris Lumens 2012-10-09 14:45:06 UTC
How can I reliably reproduce this?  I've tried screwing with the resize dialog quite a bit and haven't hit this yet.

Comment 22 Mark Hamzy 2012-10-09 14:51:47 UTC
Why would you close the bug with the reproduction information in it as well as some debug information in it?

Comment 23 Mark Hamzy 2012-10-09 16:52:34 UTC
Copying over the reproduction details from bug 864180 as the excetption is still occurring.

1) Select "Software Selection," choose "Minimal install," select Done.
2) Select "Installation Destination," deselect disk, select Done.
3) Select "Installation Destination," select disk, select Done.
4) Select "Installation Destination," select Continue.
5) Select "Reclaim Space," select "/ (Fedora Linux 18 for ppc64)," change action to Delete, select "Reclaim Space."
6) Select "Reclaim Space," anaconda traps


The anaconda updates.img file contains the following because I am unable to change the execution line number back to the dev = getDevicesByPath() line

[root@bluebill anaconda-18.13-1]# git diff
diff --git a/pyanaconda/ui/gui/spokes/lib/resize.py b/pyanaconda/ui/gui/spokes/lib/resize.py
index fcccbeb..14b8982 100644
--- a/pyanaconda/ui/gui/spokes/lib/resize.py
+++ b/pyanaconda/ui/gui/spokes/lib/resize.py
@@ -120,6 +120,11 @@ class ResizeDialog(GUIObject):
             for part in disk.format.partitions:
                 dev = self.storage.devicetree.getDeviceByPath(part.path)
 
+                if dev is None:
+                    import pdb
+                    pdb.set_trace()
+                    self.storage.devicetree.getDeviceByPath(part.path)
+
                 if dev.isExtended and disk.format.logicalPartitions:
                     continue
 

> /tmp/updates/pyanaconda/storage/devicetree.py(2062)getDeviceByPath()
-> if not path:
(Pdb) print path
/dev/sda5
(Pdb) print preferLeaves
True
(Pdb) path in [d.path for d in self._devices]
False
(Pdb) [d.path for d in self._devices]
['/dev/sda', '/dev/sda1', '/dev/sda2', '/dev/sda3', '/dev/sda4', '/dev/sr0', '/run/install/repo/LiveOS/squashfs.img', '/dev/loop0', '/LiveOS/rootfs.img', '/dev/loop1', '/overlay (deleted)', '/dev/loop2', '/dev/mapper/live-rw']

So it seems that the extended partition is no longer in _devices.

[anaconda root@sharpie /]# fdisk -l /dev/sda

Disk /dev/sda: 32.2 GB, 32212254720 bytes, 62914560 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x90570900

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *        2048       10239        4096   41  PPC PReP Boot
/dev/sda2           10240     1034239      512000   83  Linux
/dev/sda3         1034240     9324543     4145152   82  Linux swap / Solaris
/dev/sda4         9324544    62914559    26795008    5  Extended
/dev/sda5         9326592    62914559    26793984   83  Linux

Comment 24 Fedora Update System 2012-10-11 01:05:26 UTC
anaconda-18.15-1.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/anaconda-18.15-1.fc18

Comment 25 Fedora Update System 2012-10-11 02:59:04 UTC
Package anaconda-18.15-1.fc18:
* should fix your issue,
* was pushed to the Fedora 18 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing anaconda-18.15-1.fc18'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-15903/anaconda-18.15-1.fc18
then log in and leave karma (feedback).

Comment 26 Chris Lumens 2012-10-11 14:28:41 UTC
*** Bug 865322 has been marked as a duplicate of this bug. ***

Comment 27 Fedora Update System 2012-10-12 01:07:15 UTC
anaconda-18.16-1.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/anaconda-18.16-1.fc18

Comment 28 Fedora Update System 2012-10-17 03:10:19 UTC
anaconda-18.17-1.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/anaconda-18.17-1.fc18

Comment 29 Fedora Update System 2012-10-18 02:39:05 UTC
anaconda-18.18-1.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/anaconda-18.18-1.fc18

Comment 30 Fedora Update System 2012-10-20 01:34:54 UTC
anaconda-18.19-1.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/anaconda-18.19-1.fc18

Comment 31 Adam Williamson 2012-11-23 02:45:25 UTC
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.


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