[Pkg-libvirt-maintainers] Bug#555748: virt-manager: Error cloning virtual machine (local variable 'src_fd' referenced before assignment)

Olivier Berger olivier.berger at it-sudparis.eu
Wed Nov 11 16:34:37 UTC 2009


Package: virt-manager
Version: 0.8.0-2
Severity: normal

Hi.

Trying to clone a virtual machine, I got this error :
Error creating virtual machine clone 'vm1': local variable 'src_fd' referenced before assignment

The acompanying trace is :
Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/clone.py", line 751, in _async_clone
    CloneManager.start_duplicate(self.clone_design, meter)
  File "/usr/lib/pymodules/python2.5/virtinst/CloneManager.py", line 634, in start_duplicate
    _do_duplicate(design, meter)
  File "/usr/lib/pymodules/python2.5/virtinst/CloneManager.py", line 659, in _do_duplicate
    dst_dev.setup(meter)
  File "/usr/lib/pymodules/python2.5/virtinst/VirtualDisk.py", line 905, in setup
    self._do_create_storage(progresscb)
  File "/usr/lib/pymodules/python2.5/virtinst/VirtualDisk.py", line 801, in _do_create_storage
    self._clone_local(progresscb, size_bytes)
  File "/usr/lib/pymodules/python2.5/virtinst/VirtualDisk.py", line 886, in _clone_local
    if src_fd is not None:
UnboundLocalError: local variable 'src_fd' referenced before assignment

This happened while trying to clone an existing image to a clone of its disk to be created in a LVM volume.

Hope this helps.

Best regards,

-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 2.6.30-2-686 (SMP w/2 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages virt-manager depends on:
ii  librsvg2-common               2.26.0-1   SAX-based renderer library for SVG
ii  python                        2.5.4-2    An interactive high-level object-o
ii  python-dbus                   0.83.0-1   simple interprocess messaging syst
ii  python-glade2                 2.16.0-1   GTK+ bindings: Glade support
ii  python-gnome2                 2.28.0-1   Python bindings for the GNOME desk
ii  python-gtk-vnc                0.3.9-1    A VNC viewer widget for GTK+ (Pyth
ii  python-gtk2                   2.16.0-1   Python bindings for the GTK+ widge
ii  python-libvirt                0.7.1-2    libvirt Python bindings
ii  python-support                1.0.4      automated rebuilding support for P
ii  python-urlgrabber             3.1.0-4    A high-level cross-protocol url-gr
ii  python-vte                    1:0.22.2-2 Python bindings for the VTE widget
ii  virtinst                      0.500.0-1  Programs to create and clone virtu

Versions of packages virt-manager recommends:
ii  hal                           0.5.13-3   Hardware Abstraction Layer
ii  libvirt-bin                   0.7.1-2    the programs for the libvirt libra

Versions of packages virt-manager suggests:
ii  virt-viewer                   0.0.3-2    Displaying the graphical console o

-- debconf-show failed





More information about the Pkg-libvirt-maintainers mailing list