Bug 1095244

Summary: AttributeError: 'NoneType' object has no attribute 'duplicate'
Product: [Fedora] Fedora Reporter: Igor Gnatenko <ignatenko>
Component: python-blivetAssignee: mulhern <amulhern>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 22CC: amulhern, anaconda-maint-list, bcl, dlehman, g.kaviyarasu, jonathan, vanmeeuwen+fedora, wwoods
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:9e0437ff0faf731d92c1034f57d57cb3d05a166b0eb2f42fa64b1e73d9fa9a2c
Fixed In Version: python-blivet-0.53 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-06-23 15:43:41 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:
Attachments:
Description Flags
File: anaconda-tb
none
File: anaconda.log
none
File: environ
none
File: lsblk_output
none
File: nmcli_dev_list
none
File: os_info
none
File: program.log
none
File: storage.log
none
File: syslog
none
File: ifcfg.log
none
File: packaging.log none

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