Bug 959552

Summary: ImportError: cannot import name SIZE_POLICY_AUTO
Product: [Fedora] Fedora Reporter: Chris Murphy <bugzilla>
Component: python-blivetAssignee: David Lehman <dlehman>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 19CC: anaconda-maint-list, awilliam, bcl, dlehman, g.kaviyarasu, jonathan, mkolman, robatino, sbueno, vanmeeuwen+fedora
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:a353af9c78597f02ead8042ba6a69cd044b7621c52d6e2cabaf4ed1b149c6ead AcceptedBlocker
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-05-13 17:16:20 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: 834087    
Attachments:
Description Flags
File: anaconda-tb
none
File: anaconda.log
none
File: backtrace
none
File: environ
none
File: ifcfg.log
none
File: lsblk_output
none
File: messages
none
File: nmcli_dev_list
none
File: program.log
none
File: storage.log none

Description Chris Murphy 2013-05-03 18:51:34 UTC
Description of problem:
Crash on launch.
The following was filed automatically by anaconda:
anaconda 19.23-1 exception report
Traceback (most recent call first):
  File "/tmp/updates/pyanaconda/ui/gui/spokes/custom.py", line 52, in <module>
    from blivet.devicefactory import SIZE_POLICY_AUTO
  File "/tmp/updates/pyanaconda/ui/common.py", line 541, in collect
    fo, module_path, module_flags)
  File "/tmp/updates/pyanaconda/ui/__init__.py", line 146, in _collectActionClasses
    standalones.extend(collect(module_pattern, path, lambda obj: issubclass(obj, standalone_class) and \
  File "/tmp/updates/pyanaconda/ui/gui/__init__.py", line 315, in getActionClasses
    standalones = self._collectActionClasses(self.paths["spokes"], StandaloneSpoke)
  File "/tmp/updates/pyanaconda/ui/gui/__init__.py", line 305, in setup
    self._actions = self.getActionClasses(self._list_hubs())
  File "/sbin/anaconda", line 1078, in <module>
    anaconda._intf.setup(ksdata)
ImportError: cannot import name SIZE_POLICY_AUTO

Version-Release number of selected component:
anaconda-19.23-1.fc19.x86_64

Additional info:
cmdline:        /usr/bin/python  /sbin/anaconda --liveinst --method=livecd:///dev/mapper/live-osimg-min --lang en_US.UTF-8
cmdline_file:   initrd=initrd0.img root=live:CDLABEL=Fedora-Live-Desktop-x86_64-19-Be rootfstype=auto ro rd.live.image rd.luks=0 rd.md=0 rd.dm=0 updates=https://www.happyassassin.net/extras/updates-958897.img BOOT_IMAGE=vmlinuz0 
core_backtrace: 
executable:     /sbin/anaconda
hashmarkername: anaconda
kernel:         3.9.0-0.rc8.git0.2.fc19.x86_64
packaging.log:  
product:        Fedora
release:        Fedora release 19 (Schrödinger’s Cat)
type:           anaconda
ureports_counter: 1
version:        19

Truncated backtrace:
Traceback (most recent call last):
  File "/sbin/anaconda", line 1078, in <module>
    anaconda._intf.setup(ksdata)
  File "/tmp/updates/pyanaconda/ui/gui/__init__.py", line 305, in setup
    self._actions = self.getActionClasses(self._list_hubs())
  File "/tmp/updates/pyanaconda/ui/gui/__init__.py", line 315, in getActionClasses
    standalones = self._collectActionClasses(self.paths["spokes"], StandaloneSpoke)
  File "/tmp/updates/pyanaconda/ui/__init__.py", line 146, in _collectActionClasses
    standalones.extend(collect(module_pattern, path, lambda obj: issubclass(obj, standalone_class) and \
  File "/tmp/updates/pyanaconda/ui/common.py", line 541, in collect
    fo, module_path, module_flags)
  File "/tmp/updates/pyanaconda/ui/gui/spokes/custom.py", line 52, in <module>
    from blivet.devicefactory import SIZE_POLICY_AUTO
ImportError: cannot import name SIZE_POLICY_AUTO

Comment 1 Chris Murphy 2013-05-03 18:51:36 UTC
Created attachment 743345 [details]
File: anaconda-tb

Comment 2 Chris Murphy 2013-05-03 18:51:39 UTC
Created attachment 743346 [details]
File: anaconda.log

Comment 3 Chris Murphy 2013-05-03 18:51:40 UTC
Created attachment 743347 [details]
File: backtrace

Comment 4 Chris Murphy 2013-05-03 18:51:42 UTC
Created attachment 743348 [details]
File: environ

Comment 5 Chris Murphy 2013-05-03 18:51:44 UTC
Created attachment 743349 [details]
File: ifcfg.log

Comment 6 Chris Murphy 2013-05-03 18:51:45 UTC
Created attachment 743350 [details]
File: lsblk_output

Comment 7 Chris Murphy 2013-05-03 18:51:49 UTC
Created attachment 743351 [details]
File: messages

Comment 8 Chris Murphy 2013-05-03 18:51:51 UTC
Created attachment 743352 [details]
File: nmcli_dev_list

Comment 9 Chris Murphy 2013-05-03 18:51:53 UTC
Created attachment 743353 [details]
File: program.log

Comment 10 Chris Murphy 2013-05-03 18:51:55 UTC
Created attachment 743354 [details]
File: storage.log

Comment 11 Chris Murphy 2013-05-03 18:54:51 UTC
Description of problem:
Crash on launch.

Version-Release number of selected component:
anaconda-19.23-1.fc19.x86_64

Additional info:
cmdline:        /usr/bin/python  /sbin/anaconda --liveinst --method=livecd:///dev/mapper/live-osimg-min --lang en_US.UTF-8
cmdline_file:   initrd=initrd0.img root=live:CDLABEL=Fedora-Live-Desktop-x86_64-19-Be rootfstype=auto ro rd.live.image rd.luks=0 rd.md=0 rd.dm=0 updates=https://www.happyassassin.net/extras/updates-958897.img BOOT_IMAGE=vmlinuz0 
core_backtrace: 
executable:     /sbin/anaconda
hashmarkername: anaconda
kernel:         3.9.0-0.rc8.git0.2.fc19.x86_64
packaging.log:  
product:        Fedora
release:        Fedora release 19 (Schrödinger’s Cat)
type:           anaconda
ureports_counter: 1
version:        19

Truncated backtrace:
Traceback (most recent call last):
  File "/sbin/anaconda", line 1078, in <module>
    anaconda._intf.setup(ksdata)
  File "/tmp/updates/pyanaconda/ui/gui/__init__.py", line 305, in setup
    self._actions = self.getActionClasses(self._list_hubs())
  File "/tmp/updates/pyanaconda/ui/gui/__init__.py", line 315, in getActionClasses
    standalones = self._collectActionClasses(self.paths["spokes"], StandaloneSpoke)
  File "/tmp/updates/pyanaconda/ui/__init__.py", line 146, in _collectActionClasses
    standalones.extend(collect(module_pattern, path, lambda obj: issubclass(obj, standalone_class) and \
  File "/tmp/updates/pyanaconda/ui/common.py", line 541, in collect
    fo, module_path, module_flags)
  File "/tmp/updates/pyanaconda/ui/gui/spokes/custom.py", line 52, in <module>
    from blivet.devicefactory import SIZE_POLICY_AUTO
ImportError: cannot import name SIZE_POLICY_AUTO

Comment 12 Brian Lane 2013-05-03 19:02:53 UTC
This will be fixed by the next blivet build, commit 08805cec0

Comment 13 Adam Williamson 2013-05-03 19:15:41 UTC
Try:

updates=https://www.happyassassin.net/extras/updates-958897-2.img

if that works we can probably close this, as it was me not including blivet in the updates.img that was the problem.

Comment 14 Chris Murphy 2013-05-03 19:24:04 UTC
(In reply to comment #13)
> Try:
> updates=https://www.happyassassin.net/extras/updates-958897-2.img

Crash on launch doesn't occur with this update.

Comment 15 Adam Williamson 2013-05-03 19:30:50 UTC
Cool. Let's keep this open though as it's a handy way to make sure I remember to include blivet in the next TC. For that purpose, marking as an automatic Beta blocker (it stops install running at all).

Comment 16 Fedora Update System 2013-05-03 23:03:56 UTC
anaconda-19.24-1.fc19, python-blivet-0.12-1.fc19 has been submitted as an update for Fedora 19.
https://admin.fedoraproject.org/updates/python-blivet-0.12-1.fc19,anaconda-19.24-1.fc19

Comment 17 Fedora Update System 2013-05-04 18:49:53 UTC
Package anaconda-19.24-1.fc19, python-blivet-0.12-1.fc19:
* should fix your issue,
* was pushed to the Fedora 19 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing anaconda-19.24-1.fc19 python-blivet-0.12-1.fc19'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-7403/python-blivet-0.12-1.fc19,anaconda-19.24-1.fc19
then log in and leave karma (feedback).

Comment 18 Adam Williamson 2013-05-06 23:35:48 UTC
Obviously, TC3 not being totally broken demonstrates that this fix works. Setting VERIFIED.

Comment 19 Adam Williamson 2013-05-13 17:16:20 UTC
19.25 went stable, closing.