Bug 528947 - virtinst: Creating LVM volume on QEMU during VM creation fails
Summary: virtinst: Creating LVM volume on QEMU during VM creation fails
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Fedora
Classification: Fedora
Component: python-virtinst
Version: rawhide
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Cole Robinson
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: F12VirtTarget
TreeView+ depends on / blocked
 
Reported: 2009-10-14 13:29 UTC by Daniel B
Modified: 2009-12-03 23:48 UTC (History)
6 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2009-12-03 23:48:14 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
virt-manager.log when trying to clone (3.34 KB, application/octet-stream)
2009-10-14 13:29 UTC, Daniel B
no flags Details

Description Daniel B 2009-10-14 13:29:38 UTC
Created attachment 364749 [details]
virt-manager.log when trying to clone

Description of problem:
I try to clone a paused, or shut down VM with virt-manager. When I select the clone option I get this error:

Erreur lors de la définition des paramètres du clone : Could not use path '['/dev/data/cos5-clone']' for cloning: 'LogicalVolume' object has no attribute 'format'

Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/engine.py", line 744, in clone_domain
    clone_window.show()
  File "/usr/share/virt-manager/virtManager/clone.py", line 138, in show
    self.reset_state()
  File "/usr/share/virt-manager/virtManager/clone.py", line 183, in reset_state
    self.populate_storage_lists()
  File "/usr/share/virt-manager/virtManager/clone.py", line 488, in populate_storage_lists
    self.clone_design.clone_devices = new_disks
  File "/usr/lib/python2.6/site-packages/virtinst/CloneManager.py", line 227, in set_clone_devices
    (devpath, str(e)))
ValueError: Could not use path '['/dev/data/cos5-clone']' for cloning: 'LogicalVolume' object has no attribute 'format'

This VM is installed on a LVM logical volume (pool name data, volume group /dev/data)

Version-Release number of selected component (if applicable):

libvirt 0.7.1 (running on a CentOS 5.4 x86_64 host)
virt-manager 0.8.0-7 (from http://markmc.fedorapeople.org/virt-preview/f11/x86_64/) on Fedora 11 x86_64

How reproducible:
Always. At least when disk is backed by an LVM pool (haven't tried with file as backend)


Steps to Reproduce:
1. 
2.
3.
  
Actual results:
Get a traceback


Expected results:
Clone should work

Additional info:
on another desktop running ubuntu, I used a slightly older release (0.8-3) for virt-manager, from the same repo, converted to .deb using alien. Cloning is working.

Comment 1 Cole Robinson 2009-10-21 14:52:42 UTC
Thanks for the report. This actually a virtinst bug, now fixed upstream:

http://hg.fedorahosted.org/hg/python-virtinst/rev/7df4e1b4e25e

Comment 2 Mark McLoughlin 2009-10-29 16:42:08 UTC
adding to F12VirtTarget

Comment 3 Cole Robinson 2009-12-03 23:48:14 UTC
This should be fixed in python-virtinst-0.500.1-1.fc13 which will be in the next rawhide compose.


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