Bug 1095244 - AttributeError: 'NoneType' object has no attribute 'duplicate'
Summary: AttributeError: 'NoneType' object has no attribute 'duplicate'
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: python-blivet
Version: 22
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: mulhern
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:9e0437ff0faf731d92c1034f57d...
: 994655 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-05-07 10:57 UTC by Igor Gnatenko
Modified: 2015-06-23 15:43 UTC (History)
8 users (show)

Fixed In Version: python-blivet-0.53
Clone Of:
Environment:
Last Closed: 2015-06-23 15:43:41 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: anaconda-tb (780.18 KB, text/plain)
2014-05-07 10:57 UTC, Igor Gnatenko
no flags Details
File: anaconda.log (21.94 KB, text/plain)
2014-05-07 10:57 UTC, Igor Gnatenko
no flags Details
File: environ (459 bytes, text/plain)
2014-05-07 10:57 UTC, Igor Gnatenko
no flags Details
File: lsblk_output (1.93 KB, text/plain)
2014-05-07 10:57 UTC, Igor Gnatenko
no flags Details
File: nmcli_dev_list (1.06 KB, text/plain)
2014-05-07 10:57 UTC, Igor Gnatenko
no flags Details
File: os_info (381 bytes, text/plain)
2014-05-07 10:57 UTC, Igor Gnatenko
no flags Details
File: program.log (33.38 KB, text/plain)
2014-05-07 10:58 UTC, Igor Gnatenko
no flags Details
File: storage.log (154.38 KB, text/plain)
2014-05-07 10:58 UTC, Igor Gnatenko
no flags Details
File: syslog (84.04 KB, text/plain)
2014-05-07 10:58 UTC, Igor Gnatenko
no flags Details
File: ifcfg.log (1.53 KB, text/plain)
2014-05-07 10:58 UTC, Igor Gnatenko
no flags Details
File: packaging.log (403.26 KB, text/plain)
2014-05-07 10:58 UTC, Igor Gnatenko
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1095329 0 unspecified CLOSED AttributeError: 'NoneType' object has no attribute 'sectorSize' 2021-02-22 00:41:40 UTC

Internal Links: 1095329

Description Igor Gnatenko 2014-05-07 10:57:41 UTC
Version-Release number of selected component:
anaconda-21.35-1

The following was filed automatically by anaconda:
anaconda 21.35-1 exception report
Traceback (most recent call first):
  File "/usr/lib/python2.7/site-packages/blivet/formats/disklabel.py", line 91, in __deepcopy__
    setattr(new, attr, value.duplicate())
  File "/usr/lib64/python2.7/copy.py", line 174, in deepcopy
    y = copier(memo)
  File "/usr/lib/python2.7/site-packages/blivet/devices.py", line 262, in __deepcopy__
    setattr(new, attr, copy.deepcopy(value, memo))
  File "/usr/lib64/python2.7/copy.py", line 174, in deepcopy
    y = copier(memo)
  File "/usr/lib64/python2.7/copy.py", line 230, in _deepcopy_list
    y.append(deepcopy(a, memo))
  File "/usr/lib64/python2.7/copy.py", line 163, in deepcopy
    y = copier(x, memo)
  File "/usr/lib64/python2.7/copy.py", line 257, in _deepcopy_dict
    y[deepcopy(key, memo)] = deepcopy(value, memo)
  File "/usr/lib64/python2.7/copy.py", line 163, in deepcopy
    y = copier(x, memo)
  File "/usr/lib64/python2.7/copy.py", line 334, in _reconstruct
    state = deepcopy(state, memo)
  File "/usr/lib64/python2.7/copy.py", line 190, in deepcopy
    y = _reconstruct(x, rv, 1, memo)
  File "/usr/lib64/python2.7/copy.py", line 257, in _deepcopy_dict
    y[deepcopy(key, memo)] = deepcopy(value, memo)
  File "/usr/lib64/python2.7/copy.py", line 163, in deepcopy
    y = copier(x, memo)
  File "/usr/lib64/python2.7/copy.py", line 334, in _reconstruct
    state = deepcopy(state, memo)
  File "/usr/lib64/python2.7/copy.py", line 190, in deepcopy
    y = _reconstruct(x, rv, 1, memo)
  File "/usr/lib64/python2.7/copy.py", line 257, in _deepcopy_dict
    y[deepcopy(key, memo)] = deepcopy(value, memo)
  File "/usr/lib64/python2.7/copy.py", line 163, in deepcopy
    y = copier(x, memo)
  File "/usr/lib64/python2.7/copy.py", line 334, in _reconstruct
    state = deepcopy(state, memo)
  File "/usr/lib64/python2.7/copy.py", line 190, in deepcopy
    y = _reconstruct(x, rv, 1, memo)
  File "/usr/lib/python2.7/site-packages/blivet/__init__.py", line 1968, in copy
    new = copy.deepcopy(self)
  File "/usr/lib64/python2.7/site-packages/pyanaconda/ui/gui/spokes/custom.py", line 360, in _reset_storage
    self._storage_playground = self.storage.copy()
  File "/usr/lib64/python2.7/site-packages/pyanaconda/ui/gui/spokes/custom.py", line 376, in refresh
    self._reset_storage()
  File "/usr/lib64/python2.7/site-packages/pyanaconda/ui/gui/hubs/__init__.py", line 109, in _runSpoke
    action.refresh()
  File "/usr/lib64/python2.7/site-packages/pyanaconda/ui/gui/hubs/__init__.py", line 404, in _on_spoke_clicked
    self._runSpoke(spoke)
  File "/usr/lib64/python2.7/site-packages/pyanaconda/ui/gui/hubs/__init__.py", line 422, in _on_spoke_clicked
    self._on_spoke_clicked(self._spokes[dest].selector, None, self._spokes[dest])
AttributeError: 'NoneType' object has no attribute 'duplicate'

Additional info:
cmdline:        /usr/bin/python  /sbin/anaconda
cmdline_file:   repo=http://download.fedoraproject.org/pub/fedora/linux/development/rawhide/x86_64/os/ initrd=http://download.fedoraproject.org/pub/fedora/linux/development/rawhide/x86_64/os/images/pxeboot/initrd.img BOOT_IMAGE=http://download.fedoraproject.org/pub/fedora/linux/development/rawhide/x86_64/os/images/pxeboot/vmlinuz 
executable:     /sbin/anaconda
hashmarkername: anaconda
kernel:         3.15.0-0.rc4.git0.1.fc21.x86_64
product:        Fedora
release:        Cannot get release name.
type:           anaconda
version:        rawhide

Comment 1 Igor Gnatenko 2014-05-07 10:57:47 UTC
Created attachment 893204 [details]
File: anaconda-tb

Comment 2 Igor Gnatenko 2014-05-07 10:57:49 UTC
Created attachment 893205 [details]
File: anaconda.log

Comment 3 Igor Gnatenko 2014-05-07 10:57:51 UTC
Created attachment 893206 [details]
File: environ

Comment 4 Igor Gnatenko 2014-05-07 10:57:54 UTC
Created attachment 893207 [details]
File: lsblk_output

Comment 5 Igor Gnatenko 2014-05-07 10:57:56 UTC
Created attachment 893208 [details]
File: nmcli_dev_list

Comment 6 Igor Gnatenko 2014-05-07 10:57:58 UTC
Created attachment 893209 [details]
File: os_info

Comment 7 Igor Gnatenko 2014-05-07 10:58:03 UTC
Created attachment 893210 [details]
File: program.log

Comment 8 Igor Gnatenko 2014-05-07 10:58:05 UTC
Created attachment 893211 [details]
File: storage.log

Comment 9 Igor Gnatenko 2014-05-07 10:58:08 UTC
Created attachment 893212 [details]
File: syslog

Comment 10 Igor Gnatenko 2014-05-07 10:58:10 UTC
Created attachment 893213 [details]
File: ifcfg.log

Comment 11 Igor Gnatenko 2014-05-07 10:58:13 UTC
Created attachment 893214 [details]
File: packaging.log

Comment 12 mulhern 2014-05-08 15:05:42 UTC
As with the related bug the behavior that starts it all is that pyparted reports
no medium on the OpticalDevice which leads to no partedDevice and hence, no partedDisk. Again, that seems correct, so the problem that needs to be fixed really seems to be that the exception due to the missing _partedDisk is raised and then propagated.

Comment 13 David Shea 2014-09-04 19:40:19 UTC
*** Bug 994655 has been marked as a duplicate of this bug. ***

Comment 14 Jaroslav Reznik 2015-03-03 17:13:26 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 22 development cycle.
Changing version to '22'.

More information and reason for this action is here:
https://fedoraproject.org/wiki/Fedora_Program_Management/HouseKeeping/Fedora22


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