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

    Continuous replication problem with multiple SR

    Scheduled Pinned Locked Moved Solved Backup
    8 Posts 3 Posters 195 Views 3 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.
    • GheppyG Offline
      Gheppy
      last edited by Gheppy

      Hello,
      I have problems with continuous replication, meaning that if I choose to do it on a single SR everything is ok but if I add two or more SRs it crashes and gives the error message below.
      The problem is that it does nothing, it stays stuck and it is always the first SR in the list.
      Info:

      • XCP-ng 8.3 up to date,
      • XOCE commit 6ecab

      Here it is with only one SR and everything is ok:

      • configuration:
        ac70e819-d049-4012-ae36-1e11cbc74019-image.png

      • transfer:
        1a607aab-db25-4ab1-b970-9233d196c1d7-image.png

      • message

      • f225a84e-f2e6-443a-9a5a-5213b211caff-image.png

      • bc228099-8f29-434f-b0ca-bec7ebf69b47-image.png

      Here it is with two SRs

      • configuration:
        2d985a5f-7141-4b4d-9640-33671b458f3f-image.png

      • transfer:
        4158c90f-739b-4fce-8309-91865d6ba93b-image.png

      • message:
        c766f698-fcec-41d6-bd46-43323533b499-image.png

      • log

      {
        "data": {
          "mode": "delta",
          "reportWhen": "always"
        },
        "id": "1748599936065",
        "jobId": "109e74e9-b59f-483b-860f-8f36f5223789",
        "jobName": "********-vrs7",
        "message": "backup",
        "scheduleId": "40f57bd8-2557-4cf5-8322-705ec1d811d2",
        "start": 1748599936065,
        "status": "pending",
        "infos": [
          {
            "data": {
              "vms": [
                "629bdfeb-7700-561c-74ac-e151068721c2"
              ]
            },
            "message": "vms"
          }
        ],
        "tasks": [
          {
            "data": {
              "type": "VM",
              "id": "629bdfeb-7700-561c-74ac-e151068721c2",
              "name_label": "********-vrs7"
            },
            "id": "1748599941103",
            "message": "backup VM",
            "start": 1748599941103,
            "status": "pending",
            "tasks": [
              {
                "id": "1748599941671",
                "message": "snapshot",
                "start": 1748599941671,
                "status": "success",
                "end": 1748599945608,
                "result": "5c030f40-0b34-d1b4-10aa-f849548aa0b7"
              },
              {
                "data": {
                  "id": "1afcdfda-6ede-3cb5-ecbf-29dc09ea605c",
                  "isFull": true,
                  "name_label": "********-RAID",
                  "type": "SR"
                },
                "id": "1748599945609",
                "message": "export",
                "start": 1748599945609,
                "status": "pending",
                "tasks": [
                  {
                    "id": "1748599948875",
                    "message": "transfer",
                    "start": 1748599948875,
                    "status": "failure",
                    "end": 1748599949159,
                    "result": {
                      "code": "HANDLE_INVALID",
                      "params": [
                        "SR",
                        "OpaqueRef:e6bbcba7-6a86-4d00-8391-3c1722b3552f"
                      ],
                      "call": {
                        "duration": 6,
                        "method": "VDI.create",
                        "params": [
                          "* session id *",
                          {
                            "name_description": "********-sdb-256gb",
                            "name_label": "********-sdb-256gb",
                            "other_config": {
                              "xo:backup:vm": "629bdfeb-7700-561c-74ac-e151068721c2",
                              "xo:copy_of": "59ee458d-99c8-4a45-9c91-263c9729208b"
                            },
                            "read_only": false,
                            "sharable": false,
                            "SR": "OpaqueRef:e6bbcba7-6a86-4d00-8391-3c1722b3552f",
                            "tags": [],
                            "type": "user",
                            "virtual_size": 274877906944,
                            "xenstore_data": {}
                          }
                        ]
                      },
                      "message": "HANDLE_INVALID(SR, OpaqueRef:e6bbcba7-6a86-4d00-8391-3c1722b3552f)",
                      "name": "XapiError",
                      "stack": "XapiError: HANDLE_INVALID(SR, OpaqueRef:e6bbcba7-6a86-4d00-8391-3c1722b3552f)\n    at XapiError.wrap (file:///opt/xen-orchestra/packages/xen-api/_XapiError.mjs:16:12)\n    at file:///opt/xen-orchestra/packages/xen-api/transports/json-rpc.mjs:38:21\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)"
                    }
                  }
                ]
              },
              {
                "data": {
                  "id": "a5d2b22e-e4be-c384-9187-879aa41dd70f",
                  "isFull": true,
                  "name_label": "********-vrs6-RAID",
                  "type": "SR"
                },
                "id": "1748599945617",
                "message": "export",
                "start": 1748599945617,
                "status": "pending",
                "tasks": [
                  {
                    "id": "1748599948887",
                    "message": "transfer",
                    "start": 1748599948887,
                    "status": "pending"
                  }
                ]
              }
            ]
          }
        ]
      }
      
      olivierlambertO 1 Reply Last reply Reply Quote 0
      • olivierlambertO Offline
        olivierlambert Vates 🪐 Co-Founder CEO @Gheppy
        last edited by

        @Gheppy Hi,

        Worth an investigation for @florent (adding also @lsouai-vates in the loop)

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

          @olivierlambert @Gheppy that is a nice catch and it gives us a interesting clue

          I am currently working on it

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

            I have a branch that fix this case, at least on our lab fix_multiple_replication , PR is here : https://github.com/vatesfr/xen-orchestra/pull/8668

            it should be in master tomorrow , and hopefully in latest by the end of the week

            fbeauchamp opened this pull request in vatesfr/xen-orchestra

            closed fix(backups): properly clone data on incremental backup #8668

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

              said in Continuous replication problem with multiple SR:

              I have a branch that fix this case, at least on our lab fix_multiple_replication , PR is here : https://github.com/vatesfr/xen-orchestra/pull/8668

              it should be in master tomorrow , and hopefully in latest by the end of the week

              it's merged in master (also with the same fix for mirror backups)

              GheppyG 1 Reply Last reply Reply Quote 1
              • GheppyG Offline
                Gheppy @florent
                last edited by

                I tested with commit e64c434 and it is ok.
                Thank you

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

                  🍾

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

                    @Gheppy it's always easier to fix when we can build a minimal setup that reproduce the issue
                    thanks for your report

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