Agreed. Please share the bug report when you're done filing it.  In addition to the logs Nir requested, include gluster version and the `gluster volume info` output in your report.

We'll take the discussion forward on the bz.

-Krutika

On Wed, Mar 25, 2020 at 11:39 PM Nir Soffer <nsoffer@redhat.com> wrote:
On Wed, Mar 25, 2020 at 2:06 PM Gianluca Cecchi
<gianluca.cecchi@gmail.com> wrote:
>
> Hello,
> I'm on 4.3.9
> I have created a VM with 4vcpu, 16gb mem and a nic and a thin provisioned disk of 120Gb
> Installed nothing on it, only defined.
> Now I'm trying to make template from it but I get error.
> I leave the prefille value of raw for format
> Target storage domain has 900 Gb free, almost empty
>
> In events pane:
>
> Creation of Template ocp_node from VM ocp_node_template was initiated by admin@internal-authz.
> 3/25/20 12:42:35 PM
>
> Then I get error in events pane is:
>
> VDSM ovirt.example.local command HSMGetAllTasksStatusesVDS failed: low level Image copy failed: ("Command ['/usr/bin/qemu-img', 'convert', '-p', '-t', 'none', '-T', 'none', '-f', 'raw', u'/rhev/data-center/mnt/glusterSD/ovirtst.example.storage:_vmstore/81b97244-4b69-4d49-84c4-c822387adc6a/images/61689cb2-fdce-41a5-a6d9-7d06aefeb636/30009efb-83ed-4b0d-b243-3160195ae46e', '-O', 'qcow2', '-o', 'compat=1.1', u'/rhev/data-center/mnt/glusterSD/ovirtst.example.storage:_vmstore/81b97244-4b69-4d49-84c4-c822387adc6a/images/5642b52f-d7e8-48a8-adf9-f79022ce4594/982dd5cc-5f8f-41cb-b2e7-3cbdf2a656cf'] failed with rc=1 out='' err=bytearray(b'qemu-img: error while reading sector 18620412: No such file or directory\\n')",)

This is the second time I see this error - this error should be
impossible, reading should never
fail with ENOENT.

> Error: Command ['/usr/bin/qemu-img', 'convert', '-p', '-t', 'none', '-T', 'none', '-f', 'raw', u'/rhev/data-center/mnt/glusterSD/ovirtst.example.storage:_vmstore/81b97244-4b69-4d49-84c4-c822387adc6a/images/61689cb2-fdce-41a5-a6d9-7d06aefeb636/30009efb-83ed-4b0d-b243-3160195ae46e', '-O', 'raw', u'/rhev/data-center/mnt/glusterSD/ovirtst.example.storage:_vmstore/81b97244-4b69-4d49-84c4-c822387adc6a/images/bb167b28-94fa-434c-8fb6-c4bedfc06c62/53d3ab96-e5d1-453a-9989-2f858e6a9e0a'] failed with rc=1 out='' err=bytearray(b'qemu-img: error while reading sector 22028283: No data available\n')

This error ENODATA is also strange, preadv() is not documented to
return this error.

This is the second report here about impossible errors with gluster
storage. First report was here:
https://lists.ovirt.org/archives/list/users@ovirt.org/message/KBNSTWBZFN7PGWW74AGAGQVPNJ2DIZ6S/

Please file gluster bug and attach gluster client logs from /var/log/glusterfs/.


Nir