Created attachment 890681[details]
vdsm and engine logs
Description of problem:
Trying to extend a sparse RO disk will cause the following ERROR on VDSM:
Thread-13::ERROR::2014-04-28 20:12:40,360::vm::4353::vm.Vm::(_diskSizeExtendCow) vmId=`f65ca7d3-4b82-4c92-bf6a-d72180f20c97`::An error occurred while trying to extend the disk vdb to size 1
6106127360
Traceback (most recent call last):
File "/usr/share/vdsm/vm.py", line 4349, in _diskSizeExtendCow
libvirt.VIR_DOMAIN_BLOCK_RESIZE_BYTES)
File "/usr/share/vdsm/vm.py", line 859, in f
ret = attr(*args, **kwargs)
File "/usr/lib64/python2.6/site-packages/vdsm/libvirtconnection.py", line 92, in wrapper
ret = f(*args, **kwargs)
File "/usr/lib64/python2.6/site-packages/libvirt.py", line 648, in blockResize
if ret == -1: raise libvirtError ('virDomainBlockResize() failed', dom=self)
libvirtError: internal error unable to execute QEMU command 'block_resize': Device 'drive-virtio-disk1' is read only
This should be blocked with CanDoAction I guess.
Version-Release number of selected component (if applicable):
3.4.0-0.15.beta3.el6ev.noarch
vdsm-4.14.7-0.1.beta3.el6ev.x86_64
How reproducible:
100%
Steps to Reproduce:
1. Attach a sparse disk to vm as RO
2. Try to extend the disk
3.
Actual results:
Explained above
Expected results:
Operation should block with CanDoAction
Additional info:
Created attachment 890681 [details] vdsm and engine logs Description of problem: Trying to extend a sparse RO disk will cause the following ERROR on VDSM: Thread-13::ERROR::2014-04-28 20:12:40,360::vm::4353::vm.Vm::(_diskSizeExtendCow) vmId=`f65ca7d3-4b82-4c92-bf6a-d72180f20c97`::An error occurred while trying to extend the disk vdb to size 1 6106127360 Traceback (most recent call last): File "/usr/share/vdsm/vm.py", line 4349, in _diskSizeExtendCow libvirt.VIR_DOMAIN_BLOCK_RESIZE_BYTES) File "/usr/share/vdsm/vm.py", line 859, in f ret = attr(*args, **kwargs) File "/usr/lib64/python2.6/site-packages/vdsm/libvirtconnection.py", line 92, in wrapper ret = f(*args, **kwargs) File "/usr/lib64/python2.6/site-packages/libvirt.py", line 648, in blockResize if ret == -1: raise libvirtError ('virDomainBlockResize() failed', dom=self) libvirtError: internal error unable to execute QEMU command 'block_resize': Device 'drive-virtio-disk1' is read only This should be blocked with CanDoAction I guess. Version-Release number of selected component (if applicable): 3.4.0-0.15.beta3.el6ev.noarch vdsm-4.14.7-0.1.beta3.el6ev.x86_64 How reproducible: 100% Steps to Reproduce: 1. Attach a sparse disk to vm as RO 2. Try to extend the disk 3. Actual results: Explained above Expected results: Operation should block with CanDoAction Additional info: