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

    Error importing OVA file - "Expected grain marker, received [Object, Object]

    Scheduled Pinned Locked Moved Xen Orchestra
    15 Posts 4 Posters 3.3k Views 4 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.
    • F
      fataugie
      last edited by olivierlambert

      Trying to import an OVA file via the XOCE import VM section and it's failing with this log entry in settings -
      No user expected grain marker, received [object Object]

      Here's a clip from the full error if that helps.

      "crash_dumps": [],
          "virtual_size": 10485760000,
          "physical_utilisation": 24064,
          "type": "user",
          "sharable": false,
          "read_only": false,
          "other_config": {},
          "storage_lock": false,
          "location": "2538546e-f69b-4ed5-8b77-9b0caba33c02",
          "managed": true,
          "missing": false,
          "parent": "OpaqueRef:NULL",
          "xenstore_data": {},
          "sm_config": {},
          "is_a_snapshot": false,
          "snapshot_of": "OpaqueRef:NULL",
          "snapshots": [],
          "snapshot_time": "19700101T00:00:00Z",
          "tags": [],
          "allow_caching": false,
          "on_boot": "persist",
          "metadata_of_pool": "",
          "metadata_latest": false,
          "is_tools_iso": false,
          "cbt_enabled": false
        },
        "message": "expected grain marker, received [object Object]",
        "name": "Error",
        "stack": "Error: expected grain marker, received [object Object]
          at VMDKDirectParser.parseMarkedGrain (/opt/xo/xo-builds/xen-orchestra-202304010309/packages/xo-vmdk-to-vhd/src/vmdk-read.js:163:13)
          at VMDKDirectParser.blockIterator (/opt/xo/xo-builds/xen-orchestra-202304010309/packages/xo-vmdk-to-vhd/src/vmdk-read.js:197:17)
          at generateBlocks (/opt/xo/xo-builds/xen-orchestra-202304010309/packages/vhd-lib/createReadableSparseStream.js:119:22)
          at iterator (/opt/xo/xo-builds/xen-orchestra-202304010309/packages/vhd-lib/createReadableSparseStream.js:142:5)"
      } 
      

      Any ideas what's malfunctioning? I'm using the latest CE build - 8a07b
      It's been doing this for the past few builds (been trying for a few days updating thinking it was maybe being fixed in the most recent build).

      Thanks

      Tony

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

        Hi,

        Is this file can be accessed by us so we can reproduce?

        F 1 Reply Last reply
        Reply Quote 0
        • F
          fataugie @olivierlambert
          last edited by

          @olivierlambert Yep, here is the link:

          LibreNMS OVA

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

            Thank you! @Darkbeldin can you check if you can reproduce? If yes, we'll escalate to @florent 🙂

            DarkbeldinD 1 Reply Last reply
            Reply Quote 0
            • DarkbeldinD
              Darkbeldin Vates 🪐 Pro Support Team @olivierlambert
              last edited by

              @olivierlambert sure let me try

              DarkbeldinD 1 Reply Last reply
              Reply Quote 0
              • DarkbeldinD
                Darkbeldin Vates 🪐 Pro Support Team @Darkbeldin
                last edited by

                @Darkbeldin I reproduce in XOA latest so I think you can escalate 😉

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

                  This one is for you @florent 😉

                  florentF 1 Reply Last reply
                  Reply Quote 0
                  • florentF
                    florent Vates 🪐 XO Team @olivierlambert
                    last edited by

                    @olivierlambert @fataugie thanks for the head up , I am on it
                    (to be fair there is like 12 sub format of vmdk from only a descriptor file linked to a raw, to a multi level sparse compressed file )

                    F 1 Reply Last reply
                    Reply Quote 1
                    • F
                      fataugie @florent
                      last edited by

                      @florent I tried a barebones cloud disk from Ubuntu (22.04) in OVA format last night for grins and giggles...... and that failed with the same message.

                      1 Reply Last reply
                      Reply Quote 0
                      • F
                        fataugie @fataugie
                        last edited by

                        Any updates on this?
                        As of this morning's build (afadc) it's still an issue.

                        florentF 2 Replies Last reply
                        Reply Quote 0
                        • florentF
                          florent Vates 🪐 XO Team @fataugie
                          last edited by

                          @fataugie I am still working on it, I hope to fix it this week.

                          1 Reply Last reply
                          Reply Quote 0
                          • florentF
                            florent Vates 🪐 XO Team @fataugie
                            last edited by

                            @fataugie I think I found it , at least
                            can you test this branch ?
                            https://github.com/vatesfr/xen-orchestra/pull/6779

                            F 1 Reply Last reply
                            Reply Quote 0
                            • F
                              fataugie @florent
                              last edited by

                              @florent SUCCESS!

                              Just grabbed and built XOCE with that branch, ran an import and it worked just as expected.

                              I'll probably run a half dozen more imports over the next day or so. If anything weird pops up, I'll report back but this looks like it fixed the problem.

                              Thank you, I appreciate it!

                              florentF 1 Reply Last reply
                              Reply Quote 1
                              • florentF
                                florent Vates 🪐 XO Team @fataugie
                                last edited by

                                @fataugie We'll merge it to master ASAP
                                thank you for your report

                                (If you want to import a lot of ova, maybe you can use the new import from vmware feature ? )

                                F 1 Reply Last reply
                                Reply Quote 0
                                • F
                                  fataugie @florent
                                  last edited by

                                  @florent I would love to....but I transitioned from Hyper-V a few months ago. No VMWare to be found around here.

                                  Without fail, these OVAs will be downloads from a variety of applications.

                                  Thanks again!

                                  1 Reply Last reply
                                  Reply Quote 1

                                  Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                  Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                  With your input, this post could be even better 💗

                                  Register Login
                                  • First post
                                    Last post