Bug 869607 - virt-manger: cannot clone a machine when a disk is on LVM
Summary: virt-manger: cannot clone a machine when a disk is on LVM
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: libvirt
Version: 18
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Libvirt Maintainers
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-10-24 12:04 UTC by Martin Krizek
Modified: 2013-01-06 20:14 UTC (History)
12 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-01-06 20:14:37 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Martin Krizek 2012-10-24 12:04:46 UTC
Description of problem:

Cloning a machine results in:

Error creating virtual machine clone 'f17-clean-32-clone': cannot create path '/dev/vg_data/f17-clean-32-clone': File exists

Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/asyncjob.py", line 96, in cb_wrapper
    callback(asyncjob, *args, **kwargs)
  File "/usr/share/virt-manager/virtManager/clone.py", line 829, in _async_clone
    CloneManager.start_duplicate(self.clone_design, meter)
  File "/usr/lib/python2.7/site-packages/virtinst/CloneManager.py", line 640, in start_duplicate
    _do_duplicate(design, meter)
  File "/usr/lib/python2.7/site-packages/virtinst/CloneManager.py", line 665, in _do_duplicate
    dst_dev.setup_dev(meter=meter)
  File "/usr/lib/python2.7/site-packages/virtinst/VirtualDisk.py", line 1429, in setup_dev
    return self.setup(meter)
  File "/usr/lib/python2.7/site-packages/virtinst/VirtualDisk.py", line 1439, in setup
    self._do_create_storage(progresscb)
  File "/usr/lib/python2.7/site-packages/virtinst/VirtualDisk.py", line 1284, in _do_create_storage
    self._set_vol_object(self.vol_install.install(meter=progresscb),
  File "/usr/lib/python2.7/site-packages/virtinst/Storage.py", line 1211, in install
    vol = self.pool.createXMLFrom(xml, self.input_vol, 0)
  File "/usr/lib64/python2.7/site-packages/libvirt.py", line 2274, in createXMLFrom
    if ret is None:raise libvirtError('virStorageVolCreateXMLFrom() failed', pool=self)
libvirtError: cannot create path '/dev/vg_data/f17-clean-32-clone': File exists

However:
$ ls /dev/vg_data/f17-clean-32-clone
ls: cannot access /dev/vg_data/f17-clean-32-clone: No such file or directory

This happens on each vm I have that has virtual disk on LVM.

Version-Release number of selected component (if applicable):
libvirt-0.10.2-3.fc18.x86_64
virt-manager-0.9.4-1.fc18.1.noarch

How reproducible:
Always

Comment 1 Petr Schindler 2012-11-01 13:45:40 UTC
It also happened to me. I got the same traceback in the same situation.

libvirt-0.10.2.1-2.fc18.x86_64
virt-manager-0.9.4-3.fc18.noarch

Comment 2 Cole Robinson 2012-11-26 22:01:35 UTC
Fixed in upstream libvirt by:

commit 70f0bbe8e046dae1b811378f735872d3e61f4609
Author:     Ján Tomko <jtomko>
AuthorDate: 2012-11-25 02:59:33 +0100
Commit:     Michal Privoznik <mprivozn>
CommitDate: 2012-11-26 14:01:29 +0100

    storage: fix logical volume cloning

Comment 3 Fedora Update System 2012-12-10 00:45:24 UTC
libvirt-0.10.2.2-1.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/libvirt-0.10.2.2-1.fc18


Note You need to log in before you can comment on or make changes to this bug.