XCP-ng
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

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

    Scheduled Pinned Locked Moved Xen Orchestra
    10 Posts 4 Posters 518 Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • akurzawaA Offline
      akurzawa
      last edited by

      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?

      1 Reply Last reply Reply Quote 0
      • DanpD Online
        Danp Pro Support Team
        last edited by Danp

        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]: }
        
        1 Reply Last reply Reply Quote 1
        • olivierlambertO Online
          olivierlambert Vates 🪐 Co-Founder CEO
          last edited by

          Is it an OVAv2 or V1?

          DanpD 1 Reply Last reply Reply Quote 0
          • olivierlambertO Online
            olivierlambert Vates 🪐 Co-Founder CEO
            last edited by

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

            Ping @nraynaud

            1 Reply Last reply Reply Quote 0
            • DanpD Online
              Danp Pro Support Team @olivierlambert
              last edited by

              @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. 😉

              1 Reply Last reply Reply Quote 0
              • nraynaudN Offline
                nraynaud XCP-ng Team
                last edited by

                I'm on it.

                1 Reply Last reply Reply Quote 1
                • nraynaudN Offline
                  nraynaud XCP-ng Team
                  last edited by

                  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.

                  1 Reply Last reply Reply Quote 1
                  • nraynaudN Offline
                    nraynaud XCP-ng Team
                    last edited by

                      <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.

                    1 Reply Last reply Reply Quote 0
                    • olivierlambertO Online
                      olivierlambert Vates 🪐 Co-Founder CEO
                      last edited by

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

                      1 Reply Last reply Reply Quote 1
                      • nraynaudN Offline
                        nraynaud XCP-ng Team
                        last edited by

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

                        nraynaud opened this pull request in vatesfr/xen-orchestra

                        closed feat(import/ova) allow import of gzipped vmdk disks. #5085

                        1 Reply Last reply Reply Quote 1
                        • First post
                          Last post