Bug 1055225
| Summary: | Cannot clone a logical volume based VM via virt-manager even if the volume is fully allocated | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 6 | Reporter: | John Blaut <john.blaut> |
| Component: | python-virtinst | Assignee: | Giuseppe Scrivano <gscrivan> |
| Status: | CLOSED ERRATA | QA Contact: | Virtualization Bugs <virt-bugs> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 6.5 | CC: | akotov, codong, dyuan, gscrivan, lcui, mzhan, tzheng, zsong |
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | python-virtinst-0.600.0-21.el6 | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2014-10-14 06:24:04 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
John Blaut
2014-01-19 16:40:44 UTC
*** Bug 1060021 has been marked as a duplicate of this bug. *** I could reproduce this issue on latest rhel6.5 with virt-manager-0.9.0-18.el6.x86_64. Reproduce steps: 1. Create a guest which created by lvm disk image 2. Try to clone it by virt-manager, will fails with the following type of error: "Sparse logical volumes are not supported". This issue does NOT occur on RHEL7 Tested the bug with:
python-virtinst-0.600.0-20.el6.noarch
virt-manager-0.9.0-20.el6.x86_64
Steps:
1. Create a guest with a fully allocated lvm disk image,in my case it is '/dev/vgtest/sd-clone'
2. Try to clone it by virt-manager, after click "Clone",error shows:
Error setting clone parameters: Could not use path '/dev/vgtest/sd-clone' for cloning: Sparse logical volumes are not supported, allocation must be equal to capacity
Error setting clone parameters: Could not use path '/dev/vgtest/sd-clone' for cloning: Sparse logical volumes are not supported, allocation must be equal to capacity
Traceback (most recent call last):
File "/usr/share/virt-manager/virtManager/engine.py", line 853, in _do_show_clone
clone_window.show(src.topwin)
File "/usr/share/virt-manager/virtManager/clone.py", line 180, in show
self.reset_state()
File "/usr/share/virt-manager/virtManager/clone.py", line 249, in reset_state
self.populate_storage_lists()
File "/usr/share/virt-manager/virtManager/clone.py", line 583, in populate_storage_lists
self.clone_design.clone_devices = new_disks
File "/usr/lib/python2.6/site-packages/virtinst/CloneManager.py", line 232, in set_clone_devices
(path, str(e)))
ValueError: Could not use path '/dev/vgtest/sd-clone' for cloning: Sparse logical volumes are not supported, allocation must be equal to capacity
Refer to the above comments,move the bug back to ASSIGNED.
Tested with: python-virtinst-0.600.0-21.el6.noarch virt-manager-0.9.0-21.el6.x86_64 Steps: 1. Create a guest with a fully allocated lvm disk image,in my case it is '/dev/vgtest/sd' 2. Try to clone it by virt-manager, click "Clone",the guest can be cloned successfully without any error. Refer to the above comments,move the bug to VERIFIED. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHBA-2014-1444.html |