Cause:
Design flaw.
Consequence:
An attempt was made to align disks residing on file-based storage domains, which failed.
Fix:
Since this alignment is pointless, the option itself was blocked in the engine.
Result:
LIMITATION: You cannot scan alignment for a disk residing on a file-based (NFS, POSIX, local FS, Gluster) storage domain.
Created attachment 840740[details]
engine, vdsm, libvirt and qemu logs
Description of problem:
diskGetAlignment fails when scanning an align disk on file storage (nfs)
The operation fails with the following error message:
Thread-2521::ERROR::2013-12-23 11:49:27,008::BindingXMLRPC::1003::vds::(wrapper) unexpected error
Traceback (most recent call last):
File "/usr/share/vdsm/BindingXMLRPC.py", line 989, in wrapper
res = f(*args, **kwargs)
File "/usr/share/vdsm/BindingXMLRPC.py", line 381, in diskGetAlignment
return api.getDiskAlignment(driveSpecs)
File "/usr/share/vdsm/API.py", line 682, in getDiskAlignment
return self._cif.getDiskAlignment(drive)
File "/usr/share/vdsm/clientIF.py", line 382, in getDiskAlignment
out = alignmentScan.scanImage(volPath)
File "/usr/share/vdsm/alignmentScan.py", line 53, in scanImage
"or guest:\n%s" % err)
VirtAlignError: An error scanning the disk image or guest:
["libguestfs: error: filename cannot contain ':' (colon) character. This is a limitation of qemu."]
Version-Release number of selected component (if applicable):
is28.1
vdsm-4.13.2-0.3.el6ev.x86_64
libvirt-0.10.2-29.el6.x86_64
qemu-kvm-rhev-0.12.1.2-2.415.el6.x86_64
rhevm-3.3.0-0.41.el6ev.noarch
How reproducible:
100%
Steps to Reproduce:
On NFS DC:
1. run a VM with RHEL OS installed
2. scan alignment the VM disk
Actual results:
The operation fails with the mentioned error
Expected results:
Scan alignment should work for file storage
Additional info:
engine, vdsm, libvirt and qemu logs
patch in the external tracker represents a canDoAction improvement to handle the behavior described in comment 1.
Daniel is checking if the GUI can add an additional blocking to improve user experience.
Created attachment 840740 [details] engine, vdsm, libvirt and qemu logs Description of problem: diskGetAlignment fails when scanning an align disk on file storage (nfs) The operation fails with the following error message: Thread-2521::ERROR::2013-12-23 11:49:27,008::BindingXMLRPC::1003::vds::(wrapper) unexpected error Traceback (most recent call last): File "/usr/share/vdsm/BindingXMLRPC.py", line 989, in wrapper res = f(*args, **kwargs) File "/usr/share/vdsm/BindingXMLRPC.py", line 381, in diskGetAlignment return api.getDiskAlignment(driveSpecs) File "/usr/share/vdsm/API.py", line 682, in getDiskAlignment return self._cif.getDiskAlignment(drive) File "/usr/share/vdsm/clientIF.py", line 382, in getDiskAlignment out = alignmentScan.scanImage(volPath) File "/usr/share/vdsm/alignmentScan.py", line 53, in scanImage "or guest:\n%s" % err) VirtAlignError: An error scanning the disk image or guest: ["libguestfs: error: filename cannot contain ':' (colon) character. This is a limitation of qemu."] Version-Release number of selected component (if applicable): is28.1 vdsm-4.13.2-0.3.el6ev.x86_64 libvirt-0.10.2-29.el6.x86_64 qemu-kvm-rhev-0.12.1.2-2.415.el6.x86_64 rhevm-3.3.0-0.41.el6ev.noarch How reproducible: 100% Steps to Reproduce: On NFS DC: 1. run a VM with RHEL OS installed 2. scan alignment the VM disk Actual results: The operation fails with the mentioned error Expected results: Scan alignment should work for file storage Additional info: engine, vdsm, libvirt and qemu logs