
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' I have my storage in NFS . Note: Export to Domain works fine. Thanks in advance .

On Fri, Oct 26, 2018 at 8:58 PM <sangeetha.rathinavel@oracle.com> 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 -- users@ovirt.org To unsubscribe send an email to users-leave@ovirt.org 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/users@ovirt.org/message/75YC2O3RC3G5XZ...

Appreciate your quick reply. 1. File permission: [root@ca-ovsx131 images]# ll drwxr-xr-x. 2 vdsm kvm 5 Oct 26 13:40 7af3ed03-9be5-4c29-b1f2-2566a00671ba [root@ca-ovsx131 images]# ll f83b2026-099d-4983-9130-fa999bd2a782/ total 1028 -rw-rw----. 1 vdsm kvm 1073741824 Oct 26 13:31 6eb8cd98-ec3f-47a4-908c-e17f45e6cf6a -rw-rw----. 1 vdsm kvm 1048576 Oct 26 13:31 6eb8cd98-ec3f-47a4-908c-e17f45e6cf6a.lease -rw-r--r--. 1 vdsm kvm 319 Oct 26 13:31 6eb8cd98-ec3f-47a4-908c-e17f45e6cf6a.meta this images gets deleted after the Export ova fails. 2.File Format: bash-4.2$ qemu-img info 7af3ed03-9be5-4c29-b1f2-2566a00671ba/f4a9a516-12b1-47ff-b2f9-e5d792669b3c image: 7af3ed03-9be5-4c29-b1f2-2566a00671ba/f4a9a516-12b1-47ff-b2f9-e5d792669b3c file format: qcow2 virtual size: 1.0G (1073741824 bytes) disk size: 259K cluster_size: 65536 Format specific information: compat: 1.1 lazy refcounts: false refcount bits: 16 corrupt: false Error message: writing disk: path=/rhev/data-center/mnt/ca-ovmstor101:_export_sanrathi_brml11g04-oVirt-nfs-01/aec73d1f-ea3d-4228-a151-a41b20b6b67b/images/7af3ed03-9be5-4c29-b1f2-2566a00671ba/f4a9a516-12b1-47ff-b2f9-e5d792669b3c size=196624 Traceback (most recent call last): File "/root/.ansible/tmp/ansible-tmp-1540582852.05-258889562906077/pack_ova.py", line 96, in <module> write_disks(ova_path, disks_info.split('+')) File "/root/.ansible/tmp/ansible-tmp-1540582852.05-258889562906077/pack_ova.py", line 79, in write_disks write_disk(ova_path, disk_path, disk_size) File "/root/.ansible/tmp/ansible-tmp-1540582852.05-258889562906077/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/7af3ed03-9be5-4c29-b1f2-2566a00671ba/f4a9a516-12b1-47ff-b2f9-e5d792669b3c' I will try removing os.O_DIRECT and test.

1. file permission [root@ca-ovsx131 images]# ll 7af3ed03-9be5-4c29-b1f2-2566a00671ba/ total 1286 -rw-rw----. 1 vdsm kvm 196624 Oct 26 13:40 f4a9a516-12b1-47ff-b2f9-e5d792669b3c -rw-rw----. 1 vdsm kvm 1048576 Oct 26 13:40 f4a9a516-12b1-47ff-b2f9-e5d792669b3c.lease -rw-r--r--. 1 vdsm kvm 267 Oct 26 13:40 f4a9a516-12b1-47ff-b2f9-e5d792669b3c.meta

File permission looks correct. Not sure where it gets failing. As you suggested, Installed 4.3 ovirt -engine. But unable to add ovir 4.2 host to oVirtEngine-4.3 Getting this error "Host's Cluster Compatibility Version doesn't match the Cluster's Compatibility Version." Please let me know where can I get the ovirtNode 4.3 iso .
participants (2)
-
Arik Hadas
-
sangeetha.rathinavel@oracle.com