[ovirt-users] After the export, the import OVA failed

Arik Hadas ahadas at redhat.com
Mon Mar 5 21:49:43 UTC 2018


On Mon, Mar 5, 2018 at 11:01 PM, Fabrice SOLER <
fabrice.soler at ac-guadeloupe.fr> wrote:

> Hello,
>
> I found this KB : https://bugzilla.redhat.com/show_bug.cgi?id=1529607
> and put a description to the VM disk and the OVA export works ! :-)
>
> Now, the import does not work :-(
>
> The error is :
>
> *Failed to load VM configuration from OVA file: /data/ova/amon *I have
> tried two ways.
> In first, I let the file ova.
> Secondely I did  : tar xvf file.ova and specifiy the directory where the
> ovf file is.
>
> In the engine log, I have found this :
>
> 2018-03-05 16:15:58,319-04 INFO  [org.ovirt.engine.core.common.utils.ansible.AnsibleExecutor]
> (default task-6) [e2a953ca-1460-4899-a958-7dbe37e40a21] Ansible playbook
> command has exited with value: 2
> 2018-03-05 16:15:58,319-04 ERROR [org.ovirt.engine.core.bll.GetVmFromOvaQuery]
> (default task-6) [e2a953ca-1460-4899-a958-7dbe37e40a21] Failed to query
> OVA info
> 2018-03-05 16:15:58,319-04 ERROR [org.ovirt.engine.core.bll.GetVmFromOvaQuery]
> (default task-6) [e2a953ca-1460-4899-a958-7dbe37e40a21] Query
> 'GetVmFromOvaQuery' failed: EngineException: Failed to query OVA info
> (Failed with error GeneralException and code 100)
>
> I have found this KB : https://bugzilla.redhat.com/show_bug.cgi?id=1529965
> The unique solution is a update ?
>

I highly suggest updating to the latest version, various issues related to
OVA export/import were recently fixed.


>
> Sincerely
> Fabrice
>
>
> Le 05/03/2018 à 13:13, Fabrice SOLER a écrit :
>
> Hello,
>
> Thank for your answer, I have put all permissions for the directory and I
> always have errors.
>
> Here are the ERROR in logs on the engine :
>
> 2018-03-05 13:03:18,525-04 INFO  [org.ovirt.engine.core.
> vdsbroker.vdsbroker.GetVolumeInfoVDSCommand] (EE-ManagedThreadFactory-engineScheduled-Thread-23)
> [7dcef072] FINISH, GetVolumeInfoVDSCommand, return:
> org.ovirt.engine.core.common.businessentities.storage.DiskImage at 90e3c610,
> log id: 84f89c3
> 2018-03-05 13:03:18,529-04 ERROR [org.ovirt.engine.core.bll.CreateOvaCommand]
> (EE-ManagedThreadFactory-engineScheduled-Thread-23) [7dcef072] Command
> 'org.ovirt.engine.core.bll.CreateOvaCommand' failed: null
> 2018-03-05 13:03:18,529-04 ERROR [org.ovirt.engine.core.bll.CreateOvaCommand]
> (EE-ManagedThreadFactory-engineScheduled-Thread-23) [7dcef072] Exception:
> java.lang.NullPointerException
> ...
> 2018-03-05 13:03:18,533-04 ERROR [org.ovirt.engine.core.bll.exportimport.ExportOvaCommand]
> (EE-ManagedThreadFactory-engineScheduled-Thread-23) [7dcef072] Failed to
> create OVA file
> 2018-03-05 13:03:18,533-04 INFO  [org.ovirt.engine.core.bll.
> SerialChildCommandsExecutionCallback] (EE-ManagedThreadFactory-engineScheduled-Thread-23)
> [7dcef072] Command 'ExportOva' id: 'c484392e-3540-4a11-97bf-3fecbc13e080'
> failed when attempting to perform the next operation, marking as FAILED
> '[d5d4381b-ec82-4927-91a4-74597cd2511d]'
> 2018-03-05 13:03:18,533-04 INFO  [org.ovirt.engine.core.bll.
> SerialChildCommandsExecutionCallback] (EE-ManagedThreadFactory-engineScheduled-Thread-23)
> [7dcef072] Command 'ExportOva' id: 'c484392e-3540-4a11-97bf-3fecbc13e080'
> child commands '[d5d4381b-ec82-4927-91a4-74597cd2511d]' executions were
> completed, status 'FAILED'
> 2018-03-05 13:03:19,542-04 ERROR [org.ovirt.engine.core.bll.exportimport.ExportOvaCommand]
> (EE-ManagedThreadFactory-engineScheduled-Thread-98)
> [c99e94b0-a9dd-486f-9274-9aa17c9590a0] Ending command
> 'org.ovirt.engine.core.bll.exportimport.ExportOvaCommand' with failure.
> 2018-03-05 13:03:19,543-04 INFO  [org.ovirt.engine.core.bll.exportimport.ExportOvaCommand]
> (EE-ManagedThreadFactory-engineScheduled-Thread-98)
> [c99e94b0-a9dd-486f-9274-9aa17c9590a0] Lock freed to object
> 'EngineLock:{exclusiveLocks='[3ae307cb-53d6-4d70-87b6-4e073c6f5eb6=VM]',
> sharedLocks=''}'
> 2018-03-05 13:03:19,550-04 ERROR [org.ovirt.engine.core.dal.
> dbbroker.auditloghandling.AuditLogDirector] (EE-ManagedThreadFactory-engineScheduled-Thread-98)
> [c99e94b0-a9dd-486f-9274-9aa17c9590a0] EVENT_ID:
> IMPORTEXPORT_EXPORT_VM_TO_OVA_FAILED(1,225), Failed to export Vm pfSense
> as a Virtual Appliance to path /ova/pfSense.ova on Host eple-rectorat-proto
> ...
>
> Sincerely,
> Fabrice
>
> Le 05/03/2018 à 12:50, Arik Hadas a écrit :
>
>
>
> On Mon, Mar 5, 2018 at 6:48 PM, Arik Hadas <ahadas at redhat.com> wrote:
>
>>
>>
>> On Mon, Mar 5, 2018 at 6:29 PM, Fabrice SOLER <
>> fabrice.soler at ac-guadeloupe.fr> wrote:
>>
>>> Hello,
>>>
>>> I need to export my VM to OVA format from the administration portail
>>> Ovirt. It fails with this message :
>>>
>>> *Failed to export Vm CentOS as a Virtual Appliance to path
>>> /data/CentOS.ova on Host eple-rectorat-proto*
>>>
>>> My storage is local (not NFS or iSCSI), is there some particulars
>>> permissions to put to the destination directory ?
>>>
>> No, the script that packs the OVA is executed with root permissions.
>>
>>
>>> The path is the path to an export domain ?
>>>
>> Not necessarily.
>>
>
> Oh, and please share the (engine, ansible) logs if you want more eyes
> looking at that failure.
>
>
>>
>>
>>> Sincerely,
>>>
>>> Fabrice SOLER
>>> --
>>>
>>> _______________________________________________
>>> Users mailing list
>>> Users at ovirt.org
>>> http://lists.ovirt.org/mailman/listinfo/users
>>>
>>>
>>
>
> --
>
>
> _______________________________________________
> Users mailing listUsers at ovirt.orghttp://lists.ovirt.org/mailman/listinfo/users
>
>
> --
>
> _______________________________________________
> Users mailing list
> Users at ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ovirt.org/pipermail/users/attachments/20180305/c4ac9705/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Fabrice SOLER.PNG
Type: image/png
Size: 16525 bytes
Desc: not available
URL: <http://lists.ovirt.org/pipermail/users/attachments/20180305/c4ac9705/attachment.png>


More information about the Users mailing list