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

    Importing vm from VMware ESXi fails

    Scheduled Pinned Locked Moved Solved Xen Orchestra
    7 Posts 2 Posters 1.5k 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.
    • A Offline
      abudef
      last edited by abudef

      Hello,
      I am trying to import a stopped virtual machine from an ESXi server, but the import process is not actually running and I immediately get this error:

      sr.getVdiChainsInfo
      {
        "sr": "41cd87bf-bcdd-e344-3c6e-f4b6ecb62c74"
      }
      {
        "message": "Cannot read properties of undefined (reading 'managed')",
        "name": "TypeError",
        "stack": "TypeError: Cannot read properties of undefined (reading 'managed')
          at file:///opt/xo/xo-builds/xen-orchestra-202403160756/packages/xo-server/src/xapi/mixins/storage.mjs:84:15
          at arrayEach (/opt/xo/xo-builds/xen-orchestra-202403160756/node_modules/lodash/_arrayEach.js:15:9)
          at forEach (/opt/xo/xo-builds/xen-orchestra-202403160756/node_modules/lodash/forEach.js:38:10)
          at Xapi.getVdiChainsInfo (file:///opt/xo/xo-builds/xen-orchestra-202403160756/packages/xo-server/src/xapi/mixins/storage.mjs:83:5)
          at Xo.apply (file:///opt/xo/xo-builds/xen-orchestra-202403160756/packages/xo-server/src/api/sr.mjs:941:27)
          at Xo.call (file:///opt/xo/xo-builds/xen-orchestra-202403160756/packages/xo-server/src/xo-mixins/api.mjs:238:25)
          at Api.#callApiMethod (file:///opt/xo/xo-builds/xen-orchestra-202403160756/packages/xo-server/src/xo-mixins/api.mjs:366:33)"
      }
      

      882cd9a6-3271-4a88-a1f1-aa661c1b493c-obrazek.png

      631a9bff-524b-4bbb-b9a5-d77f5b094d7b-obrazek.png

      0lttr1jgd.txt

      best regards,
      Abu

      1 Reply Last reply Reply Quote 0
      • A Offline
        abudef
        last edited by

        Solved by 583c728

        1 Reply Last reply Reply Quote 1
        • A Offline
          abudef
          last edited by

          Workaround: Rolling back to...

          5b29b811-8d85-4034-9664-4e0e82421773-obrazek.png

          seems to solve the problem:

          7ba1ffdb-09b0-4ca9-933f-f7baeae6e770-obrazek.png

          1 Reply Last reply Reply Quote 0
          • A Offline
            abudef
            last edited by

            So unfortunately, today's early commits don't fix the problem...

            af8038d9-b878-4c32-ad5a-eb85c0a278a0-image.png

            sr.getAllUnhealthyVdiChainsLength
            {}
            {
              "message": "Cannot read properties of undefined (reading 'managed')",
              "name": "TypeError",
              "stack": "TypeError: Cannot read properties of undefined (reading 'managed')
                at file:///opt/xo/xo-builds/xen-orchestra-202403181050/packages/xo-server/src/xapi/mixins/storage.mjs:84:15
                at arrayEach (/opt/xo/xo-builds/xen-orchestra-202403181050/node_modules/lodash/_arrayEach.js:15:9)
                at forEach (/opt/xo/xo-builds/xen-orchestra-202403181050/node_modules/lodash/forEach.js:38:10)
                at Xapi.getVdiChainsInfo (file:///opt/xo/xo-builds/xen-orchestra-202403181050/packages/xo-server/src/xapi/mixins/storage.mjs:83:5)
                at forEach (file:///opt/xo/xo-builds/xen-orchestra-202403181050/packages/xo-server/src/api/sr.mjs:928:60)
                at Array.forEach (<anonymous>)
                at Xo.apply (file:///opt/xo/xo-builds/xen-orchestra-202403181050/packages/xo-server/src/api/sr.mjs:927:100)
                at file:///opt/xo/xo-builds/xen-orchestra-202403181050/packages/xo-server/src/_pDebounceWithKey.mjs:45:22
                at Promise._execute (/opt/xo/xo-builds/xen-orchestra-202403181050/node_modules/bluebird/js/release/debuggability.js:384:9)
                at Promise._resolveFromExecutor (/opt/xo/xo-builds/xen-orchestra-202403181050/node_modules/bluebird/js/release/promise.js:518:18)
                at new Promise (/opt/xo/xo-builds/xen-orchestra-202403181050/node_modules/bluebird/js/release/promise.js:103:10)
                at Xo.apply (file:///opt/xo/xo-builds/xen-orchestra-202403181050/packages/xo-server/src/_pDebounceWithKey.mjs:44:20)
                at Xo.call (file:///opt/xo/xo-builds/xen-orchestra-202403181050/packages/xo-server/src/xo-mixins/api.mjs:238:25)
                at Api.#callApiMethod (file:///opt/xo/xo-builds/xen-orchestra-202403181050/packages/xo-server/src/xo-mixins/api.mjs:366:33)"
            }
            
            1 Reply Last reply Reply Quote 0
            • planedropP Offline
              planedrop Top contributor
              last edited by

              So rolling back for sure solved the issue and then the import went fine?

              I haven't imported from ESXi recently but it always was a smooth process when I used it previously.

              A 1 Reply Last reply Reply Quote 0
              • A Offline
                abudef @planedrop
                last edited by

                @planedrop Yes, commit c6451imports seamlessly

                planedropP 1 Reply Last reply Reply Quote 0
                • planedropP Offline
                  planedrop Top contributor @abudef
                  last edited by

                  @abudef Odd, I'll see if I can do some testing with this in my lab with the latest commit, no promises though, quite a busy week for me.

                  1 Reply Last reply Reply Quote 0
                  • S silvxo referenced this topic on
                  • A Offline
                    abudef
                    last edited by

                    Solved by 583c728

                    1 Reply Last reply Reply Quote 1
                    • olivierlambertO olivierlambert marked this topic as a question on
                    • olivierlambertO olivierlambert has marked this topic as solved on

                    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