sexilog ova import... causes xoa to drop import task



  • Hi

    xcp 7.6 and 8.1
    xo
    trying to import http://files.sexilog.fr/SexiLog.ova, Import task start, and drops after few seconds, and the "importing ... sexilog vm..." apperars in vm list.

    Can someone check if will have the same error?



  • Are you using XOA or XO from sources? What version?

    Edit: It fails for me as well. Here are the details from the logs --

    Jun 06 13:55:04 ubuntutest xo-server[729]: 2020-06-06T13:55:04.705Z xo:xapi DEBUG Creating VM SexiLog
    Jun 06 13:55:04 ubuntutest xo-server[729]: 2020-06-06T13:55:04.791Z xo:xapi DEBUG Creating VDI Hard disk 1 on Local storage
    Jun 06 13:55:04 ubuntutest xo-server[729]: 2020-06-06T13:55:04.792Z xo:xapi DEBUG Creating VDI Hard disk 2 on Local storage
    Jun 06 13:55:04 ubuntutest xo-server[729]: 2020-06-06T13:55:04.793Z xo:xapi DEBUG Creating VIF for VM SexiLog on network Pool-wide network associated with eth0
    Jun 06 13:55:05 ubuntutest xo-server[729]: 2020-06-06T13:55:05.195Z xo:xapi DEBUG Creating VBD for VDI Hard disk 1 on VM [Importing...] SexiLog
    Jun 06 13:55:18 ubuntutest xo-server[729]: 2020-06-06T13:55:18.640Z xo:xapi DEBUG Creating VBD for VDI Hard disk 2 on VM [Importing...] SexiLog
    Jun 06 13:55:18 ubuntutest xo-server[729]: 2020-06-06T13:55:18.656Z xo:xo-server WARN possibly unhandled rejection {
    Jun 06 13:55:18 ubuntutest xo-server[729]:   error: TypeError: Cannot read property 'grainLogicalAddressList' of undefined
    Jun 06 13:55:18 ubuntutest xo-server[729]:       at Extract.<anonymous> (/opt/xen-orchestra/packages/xo-server/src/xapi/index.js:1461:17)
    Jun 06 13:55:18 ubuntutest xo-server[729]:       at Extract.apply (events.js:315:20)
    Jun 06 13:55:18 ubuntutest xo-server[729]:       at Extract.patchedEmit [as emit] (/opt/xen-orchestra/@xen-orchestra/log/src/configure.js:95:17)
    Jun 06 13:55:18 ubuntutest xo-server[729]:       at Extract.onheader [as _onheader] (/opt/xen-orchestra/node_modules/tar-stream/extract.js:180:10)
    Jun 06 13:55:18 ubuntutest xo-server[729]:       at Extract._write (/opt/xen-orchestra/node_modules/tar-stream/extract.js:249:8)
    Jun 06 13:55:18 ubuntutest xo-server[729]:       at Extract._continue (/opt/xen-orchestra/node_modules/tar-stream/extract.js:212:28)
    Jun 06 13:55:18 ubuntutest xo-server[729]:       at oncontinue (/opt/xen-orchestra/node_modules/tar-stream/extract.js:67:10)
    Jun 06 13:55:18 ubuntutest xo-server[729]:       at Extract.ondrain (/opt/xen-orchestra/node_modules/tar-stream/extract.js:87:5)
    Jun 06 13:55:18 ubuntutest xo-server[729]:       at Extract._write (/opt/xen-orchestra/node_modules/tar-stream/extract.js:249:8)
    Jun 06 13:55:18 ubuntutest xo-server[729]:       at Extract._continue (/opt/xen-orchestra/node_modules/tar-stream/extract.js:212:28)
    Jun 06 13:55:18 ubuntutest xo-server[729]:       at oncontinue (/opt/xen-orchestra/node_modules/tar-stream/extract.js:67:10)
    Jun 06 13:55:18 ubuntutest xo-server[729]:       at Source.onunlock (/opt/xen-orchestra/node_modules/tar-stream/extract.js:73:24)
    Jun 06 13:55:18 ubuntutest xo-server[729]:       at Source.apply (events.js:315:20)
    Jun 06 13:55:18 ubuntutest xo-server[729]:       at Source.patchedEmit [as emit] (/opt/xen-orchestra/@xen-orchestra/log/src/configure.js:95:17)
    Jun 06 13:55:18 ubuntutest xo-server[729]:       at endReadableNT (/opt/xen-orchestra/node_modules/tar-stream/node_modules/readable-stream/lib/_stream_readable.js:1094:12)
    Jun 06 13:55:18 ubuntutest xo-server[729]:       at processTicksAndRejections (internal/process/task_queues.js:84:21)
    Jun 06 13:55:18 ubuntutest xo-server[729]:       at runNextTicks (internal/process/task_queues.js:66:3)
    Jun 06 13:55:18 ubuntutest xo-server[729]:       at processImmediate (internal/timers.js:429:9)
    Jun 06 13:55:18 ubuntutest xo-server[729]: }
    

  • XCP-ng Team

    Is it an OVAv2 or V1?


  • XCP-ng Team

    Are you sure you are on latest release of XOA/XO?

    Ping @nraynaud



  • @olivierlambert said in sexilog ova import... causes xoa to drop import task:

    Is it an OVAv2 or V1?

    How would one check this?

    latest release of XOA/XO?

    FWIW, I am. 😉


  • XCP-ng Team

    I'm on it.


  • XCP-ng Team

    I have a local reproduction of the bug.

    At first glance it looks like a stupid bug linked to the fact that there is more than one disk in the file.


  • XCP-ng Team

      <References>
        <File ovf:compression="gzip" ovf:href="SexiLog-disk1.vmdk.gz" ovf:id="file1" ovf:size="1113498212"/>
        <File ovf:compression="gzip" ovf:href="SexiLog-disk2.vmdk.gz" ovf:id="file2" ovf:size="317806"/>
      </References>
    

    I had never seen a gzipped vmdk file in a .ova before, I need to add this case. It might take a bit of time, because of our very peculiar import system.


  • XCP-ng Team

    It seems VMware themselves aren't support it: https://kb.vmware.com/s/article/53260


  • XCP-ng Team

    you can follow the fix is in this pull request: https://github.com/vatesfr/xen-orchestra/pull/5085


Log in to reply
 

XCP-ng Pro Support

XCP-ng Pro Support