Public bug reported:

I was trying to add an existing LVM volume group as a storage pool in
virt-manager.  I filled in the volume group name, then got to the dialog
with source and target path entries, didn't know what to put there[*],
so left them blank and hit Finish.  I then got a popup with this Python
traceback in it:

    Traceback (most recent call last):
      File "/usr/share/virt-manager/virtManager/asyncjob.py", line 90, in 
cb_wrapper
        callback(asyncjob, *args, **kwargs)
      File "/usr/share/virt-manager/virtManager/createpool.py", line 446, in 
_async_pool_create
        poolobj = self._pool.install(create=True, meter=meter, build=build)
      File "/usr/share/virt-manager/virtinst/storage.py", line 496, in install
        xml = self.get_xml_config()
      File "/usr/share/virt-manager/virtinst/xmlbuilder.py", line 834, in 
get_xml_config
        return self._do_get_xml_config()
      File "/usr/share/virt-manager/virtinst/xmlbuilder.py", line 1043, in 
_do_get_xml_config
        self._add_parse_bits(node)
      File "/usr/share/virt-manager/virtinst/xmlbuilder.py", line 1066, in 
_add_parse_bits
        return self._do_add_parse_bits(node)
      File "/usr/share/virt-manager/virtinst/xmlbuilder.py", line 1077, in 
_do_add_parse_bits
        prop._set_default(self)
      File "/usr/share/virt-manager/virtinst/xmlbuilder.py", line 506, in 
_set_default
        candefault, val = self._default_get_value(xmlbuilder)
      File "/usr/share/virt-manager/virtinst/xmlbuilder.py", line 494, in 
_default_get_value
        return (True, self._default_cb(xmlbuilder))
      File "/usr/share/virt-manager/virtinst/storage.py", line 366, in 
_default_source_name
        return srcname
    UnboundLocalError: local variable 'srcname' referenced before assignment

-- 
[*] eventually I figured out I was supposed to put /dev/vgname in the target 
path field, which worked fine.

ProblemType: Bug
DistroRelease: Ubuntu 17.04
Package: virt-manager 1:1.3.2-3ubuntu4
ProcVersionSignature: Ubuntu 4.10.0-28.32-generic 4.10.17
Uname: Linux 4.10.0-28-generic x86_64
NonfreeKernelModules: zfs zunicode zavl zcommon znvpair
ApportVersion: 2.20.4-0ubuntu4.5
Architecture: amd64
CurrentDesktop: GNOME
Date: Tue Jul 25 13:51:39 2017
InstallationDate: Installed on 2016-09-10 (318 days ago)
InstallationMedia: Ubuntu-GNOME 16.04.1 LTS "Xenial Xerus" - Release amd64 
(20160720)
PackageArchitecture: all
SourcePackage: virt-manager
UpgradeStatus: Upgraded to zesty on 2017-04-14 (102 days ago)

** Affects: virt-manager (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug wayland-session zesty

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1706313

Title:
  Error creating pool: local variable 'srcname' referenced before
  assignment

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/virt-manager/+bug/1706313/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to