On Fri, Oct 26, 2018 at 8:58 PM <[email protected]> wrote:
> When I try to export a vm to ova, get this below error in engine log
>
> 2018-10-26 12:11:36,657-04 ERROR
> [org.ovirt.engine.core.bll.SerialChildCommandsExecutionCallback]
> (EE-ManagedThreadFactory-engineScheduled-Thread-37) [484d3716]
> EngineException: ENGINE (Failed with error ENGINE and code 5001):
> org.ovirt.engine.core.common.errors.EngineException: EngineException:
> ENGINE (Failed with error ENGINE and code 5001)
> at
> org.ovirt.engine.core.bll.exportimport.ExportOvaCommand.createOva(ExportOvaCommand.java:301)
> [bll.jar:]
> at
> org.ovirt.engine.core.bll.exportimport.ExportOvaCommand.executeNextOperation(ExportOvaCommand.java:285)
> [bll.jar:]
> at
> org.ovirt.engine.core.bll.exportimport.ExportOvaCommand.performNextOperation(ExportOvaCommand.java:277)
> [bll.jar:]
> at
> org.ovirt.engine.core.bll.SerialChildCommandsExecutionCallback.childCommandsExecutionEnded(SerialChildCommandsExecutionCallback.java:32)
> [bll.jar:]
> at
> org.ovirt.engine.core.bll.ChildCommandsCallbackBase.doPolling(ChildCommandsCallbackBase.java:68)
> [bll.jar:]
> at
> org.ovirt.engine.core.bll.tasks.CommandCallbacksPoller.invokeCallbackMethodsImpl(CommandCallbacksPoller.java:146)
> [bll.jar:]
> at
> org.ovirt.engine.core.bll.tasks.CommandCallbacksPoller.invokeCallbackMethods(CommandCallbacksPoller.java:107)
> [bll.jar:]
> at
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
> [rt.jar:1.8.0_181]
>
>
> In Ansible log
>
> writing disk:
> path=/rhev/data-center/mnt/ca-ovmstor101:_export_sanrathi_brml11g04-oVirt-nfs-01/aec73d1f-ea3d-4228-a151-a41b20b6b67b/images/e1186fdb-3fc3-46ae-945c-dd19bb6d434c/d95c52e3-35d1-493e-ab2d-42577bdb0391
> size=196848
> Traceback (most recent call last):
> File
> "/root/.ansible/tmp/ansible-tmp-1540570288.02-200413742597669/pack_ova.py",
> line 96, in <module>
> write_disks(ova_path, disks_info.split('+'))
> File
> "/root/.ansible/tmp/ansible-tmp-1540570288.02-200413742597669/pack_ova.py",
> line 79, in write_disks
> write_disk(ova_path, disk_path, disk_size)
> File
> "/root/.ansible/tmp/ansible-tmp-1540570288.02-200413742597669/pack_ova.py",
> line 59, in write_disk
> fd = os.open(disk_path, os.O_RDONLY | os.O_DIRECT)
> OSError: [Errno 13] Permission denied:
> '/rhev/data-center/mnt/ca-ovmstor101:_export_sanrathi_brml11g04-oVirt-nfs-01/aec73d1f-ea3d-4228-a151-a41b20b6b67b/images/e1186fdb-3fc3-46ae-945c-dd19bb6d434c/d95c52e3-35d1-493e-ab2d-42577bdb0391'
>
Can you please provide more information about image
d95c52e3-35d1-493e-ab2d-42577bdb0391 of disk
e1186fdb-3fc3-46ae-945c-dd19bb6d434c?
1. Its file permissions
2. What's its format (qemu-img info <path>)
3. Whether or not it has a backing file
In light of the size of this image not being a multiply of 512, I suspect
this is an empty qcow2 file.
If that's the case, removing the O_DIRECT flag from pack_ova.py script
might solve this (although if that's the problem I would expect the error
to be "invalid argument" rather than "permission denied").
I see, according to your email, that you're from Oracle so if you're doing
that to test something or as part of an integration of oVirt with some
tool, I would propose doing that with the nightly build of 4.3 - the
process of exporting & importing OVAs was almost completely rewritten and
the new version is faster and more stable (the output of the process, the
OVA, remains the same as that in 4.2).
>
> I have my storage in NFS .
>
> Note: Export to Domain works fine.
> Thanks in advance .
> _______________________________________________
> Users mailing list -- [email protected]
> To unsubscribe send an email to [email protected]
> Privacy Statement: https://www.ovirt.org/site/privacy-policy/
> oVirt Code of Conduct:
> https://www.ovirt.org/community/about/community-guidelines/
> List Archives:
> https://lists.ovirt.org/archives/list/[email protected]/message/75YC2O3RC3G5XZC57ANP7HSOAQYODZAU/
>
_______________________________________________
Users mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Privacy Statement: https://www.ovirt.org/site/privacy-policy/
oVirt Code of Conduct:
https://www.ovirt.org/community/about/community-guidelines/
List Archives:
https://lists.ovirt.org/archives/list/[email protected]/message/3DXIRSHSYDGBYIBZUZPZEGM6LSTQZXJB/