Bug 1046031

Summary: [engine-backend] guest alignment scan fails on file storage
Product: Red Hat Enterprise Virtualization Manager Reporter: Elad <ebenahar>
Component: ovirt-engineAssignee: Daniel Erez <derez>
Status: CLOSED CURRENTRELEASE QA Contact: Raz Tamir <ratamir>
Severity: high Docs Contact:
Priority: unspecified    
Version: 3.3.0CC: abaron, acanan, acathrow, amureini, bazulay, eedri, iheim, lpeer, Rhev-m-bugs, scohen, yeylon
Target Milestone: ---Flags: scohen: needinfo+
Target Release: 3.3.0   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: storage
Fixed In Version: is29 Doc Type: Bug Fix
Doc Text:
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.
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-01-21 22:11:00 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Storage RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 773427, 1049022    
Attachments:
Description Flags
engine, vdsm, libvirt and qemu logs none

Description Elad 2013-12-23 10:04:15 UTC
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

Comment 2 Allon Mureinik 2013-12-23 15:51:42 UTC
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.

Comment 7 Raz Tamir 2013-12-29 13:57:24 UTC
verified is29

Comment 8 Raz Tamir 2013-12-29 14:02:57 UTC
verified - When selecting disk in nfs storage domain, the scan alignment is grayed out

Comment 9 Itamar Heim 2014-01-21 22:11:00 UTC
Closing - RHEV 3.3 Released