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

    XO Tasks VS xe task-list - which is correct?

    Scheduled Pinned Locked Moved Solved Xen Orchestra
    xenorchestraxoaxe-clixo-cli
    6 Posts 2 Posters 1.5k Views 1 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.
    • R Offline
      rjt
      last edited by

      Large difference between xe task-list versus the xo tasks web page.

      XOA "Tasks" says the task is 100% done. Has been at 100% for over two hours.
      xe task-list says only about 50% done.

      20211126-070137-xe-task-list-VS-xo-tasks.png 20211126-053627-xe-task-list-VS-xo-tasks.png 20211126-050916-xe-task-list-VS-xo-tasks.png 20211126-050347-xe-task-list-VS-xo-tasks.png

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

        So the story behind the gap in reported tasks is fun. Let me explain.

        XO is using JSON-RPC to fetch data from XenServer.

        XAPI is capable of doing both JSON-RPC and XML-RPC, but the latter is eating CPU a lot (parsing XML is very costly).

        So Xen Orchestra switched to JSON-RPC 6 years ago (see https://xen-orchestra.com/blog/improving-xen-orchestra-performances/ for more details and this impressive graph)


        In blue, XO 4.1 using XML-RPC, vs JSON-RPC in orange.

        Anyway, JSON-RPC implementation in XenServer 6.5 is far from perfect. Some numbers (floats) are not correctly parsed when converted in JSON by XAPI.

        It means that a task with progress <= 0.5 will be returned as 0, and progress > 0.5 will be casted to...1!

        So it's a XAPI bug in the end, fixed in XenServer 7.0

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

          1. Your XO is out of sync. Refresh the UI, or disconnect/reconnect.
          2. Or you are using XenServer <7.0 (like 6.5).
          R 1 Reply Last reply Reply Quote 1
          • R Offline
            rjt @olivierlambert
            last edited by

            @olivierlambert
            Yes, the relevant host is Citrix 6.5!, thank you. Moving more VMs to XCP-ng over-the-holidays.

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

              So the story behind the gap in reported tasks is fun. Let me explain.

              XO is using JSON-RPC to fetch data from XenServer.

              XAPI is capable of doing both JSON-RPC and XML-RPC, but the latter is eating CPU a lot (parsing XML is very costly).

              So Xen Orchestra switched to JSON-RPC 6 years ago (see https://xen-orchestra.com/blog/improving-xen-orchestra-performances/ for more details and this impressive graph)


              In blue, XO 4.1 using XML-RPC, vs JSON-RPC in orange.

              Anyway, JSON-RPC implementation in XenServer 6.5 is far from perfect. Some numbers (floats) are not correctly parsed when converted in JSON by XAPI.

              It means that a task with progress <= 0.5 will be returned as 0, and progress > 0.5 will be casted to...1!

              So it's a XAPI bug in the end, fixed in XenServer 7.0

              R 1 Reply Last reply Reply Quote 1
              • olivierlambertO olivierlambert has marked this topic as solved on
              • olivierlambertO olivierlambert has marked this topic as unsolved on
              • olivierlambertO olivierlambert has marked this topic as solved on
              • R Offline
                rjt @olivierlambert
                last edited by

                @olivierlambert
                So 39% on the Citrix host shows as 0% in XO,
                but 51% on the Citrix host shows as 100% in XO.
                Got it. Hopefully, we can put that nonsense behind us soon.

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

                  @rjt yes exactly.

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