Bug 907319

Summary: virt-manager: Unable to complete install: 'local variable 'distro_distro' referenced before assignment'
Product: [openSUSE] openSUSE Tumbleweed Reporter: Martin Pluskal <mpluskal>
Component: BasesystemAssignee: Charles Arnold <carnold>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None    
Version: 201411*   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: virt-manager --debug
Fix for bug

Description Martin Pluskal 2014-11-26 13:21:29 UTC
Created attachment 615103 [details]
virt-manager --debug

virt-manager crate vm fails with:
Unable to complete install: 'local variable 'distro_distro' referenced before assignment'

Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/asyncjob.py", line 89, in cb_wrapper
    callback(asyncjob, *args, **kwargs)
  File "/usr/share/virt-manager/virtManager/create.py", line 1958, in do_install
    guest.start_install(meter=meter)
  File "/usr/share/virt-manager/virtinst/guest.py", line 409, in start_install
    self._prepare_install(meter, dry)
  File "/usr/share/virt-manager/virtinst/guest.py", line 283, in _prepare_install
    self.installer.prepare(self, meter)
  File "/usr/share/virt-manager/virtinst/installer.py", line 200, in prepare
    self._prepare(guest, meter)
  File "/usr/share/virt-manager/virtinst/distroinstaller.py", line 463, in _prepare
    self._prepare_kernel_url(guest, fetcher)
  File "/usr/share/virt-manager/virtinst/distroinstaller.py", line 371, in _prepare_kernel_url
    store = self._get_store(guest, fetcher)
  File "/usr/share/virt-manager/virtinst/distroinstaller.py", line 355, in _get_store
    self._cached_store = urlfetcher.getDistroStore(guest, fetcher)
  File "/usr/share/virt-manager/virtinst/urlfetcher.py", line 445, in getDistroStore
    dist = _distroFromContent(fetcher, arch, _type)
  File "/usr/share/virt-manager/virtinst/urlfetcher.py", line 372, in _distroFromContent
    elif distro_distro:
UnboundLocalError: local variable 'distro_distro' referenced before assignment

# zypper info virt-manager|grep Version
Version: 1.1.0-2.1
Comment 1 Charles Arnold 2014-12-01 15:28:40 UTC
Created attachment 615498 [details]
Fix for bug

Pushed fix out to the Virtualization repo.  It should eventually find its way
to Factory.
Comment 2 Charles Arnold 2014-12-01 17:48:02 UTC
This fix is also applicable to the SLE12 virt-manager.
Marking Fixed.
Comment 3 Swamp Workflow Management 2014-12-24 13:05:41 UTC
openSUSE-RU-2014:1705-1: An update that has 5 recommended fixes can now be installed.

Category: recommended (low)
Bug References: 900320,907319,907324,907958,909225
CVE References: 
Sources used:
openSUSE 13.2 (src):    virt-manager-1.0.1-14.11.1
Comment 4 Swamp Workflow Management 2015-08-18 17:10:17 UTC
SUSE-RU-2015:1405-1: An update that has 10 recommended fixes can now be installed.

Category: recommended (moderate)
Bug References: 900320,901869,907319,907324,907958,909225,909602,910929,934270,937386
CVE References: 
Sources used:
SUSE Linux Enterprise Server 12 (src):    virt-manager-1.0.1-17.3.1
SUSE Linux Enterprise Desktop 12 (src):    virt-manager-1.0.1-17.3.1