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

    XO/XOA CR not removing old VMs on destination SR

    Scheduled Pinned Locked Moved Solved Xen Orchestra
    9 Posts 4 Posters 389 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.
    • A Offline
      Andrew Top contributor
      last edited by

      @olivierlambert @florent When running Continuous Replication, the current version of XO source (commit 26131) AND latest XOA (xo-server 5.116.0) are leaving old VMs on the destination SR each time the backup job runs. With hundreds of VMs duplicating every hour this creates thousands of old VMs on the destination machine...

      The backup log from XOA does not list any errors.

      {
        "data": {
          "mode": "delta",
          "reportWhen": "failure"
        },
        "id": "1685552686691",
        "jobId": "522e0064-4a95-423c-8f14-7b0f214b75b7",
        "jobName": "XOA Test CR to 11",
        "message": "backup",
        "scheduleId": "45c1ccec-898d-41a4-af34-49b5fca871bd",
        "start": 1685552686691,
        "status": "success",
        "infos": [
          {
            "data": {
              "vms": [
                "d2e9d407-bec9-9daf-9496-be5299ad1dde"
              ]
            },
            "message": "vms"
          }
        ],
        "tasks": [
          {
            "data": {
              "type": "VM",
              "id": "d2e9d407-bec9-9daf-9496-be5299ad1dde",
              "name_label": "VMTest"
            },
            "id": "1685552687941",
            "message": "backup VM",
            "start": 1685552687941,
            "status": "success",
            "tasks": [
              {
                "id": "1685552687979",
                "message": "snapshot",
                "start": 1685552687979,
                "status": "success",
                "end": 1685552688856,
                "result": "e6728814-db44-ae01-5124-cb01b7404a74"
              },
              {
                "data": {
                  "id": "d381b22e-f75a-f10c-982b-a1b6386e3ed1",
                  "isFull": false,
                  "name_label": "Local storage",
                  "type": "SR"
                },
                "id": "1685552688857",
                "message": "export",
                "start": 1685552688857,
                "status": "success",
                "tasks": [
                  {
                    "id": "1685552689715",
                    "message": "transfer",
                    "start": 1685552689715,
                    "status": "success",
                    "end": 1685552691414,
                    "result": {
                      "size": 10511360
                    }
                  }
                ],
                "end": 1685552691449
              }
            ],
            "end": 1685552691636
          }
        ],
        "end": 1685552691636
      }
      
      1 Reply Last reply Reply Quote 0
      • florentF Offline
        florent Vates 🪐 XO Team @Andrew
        last edited by

        @Andrew found it : https://github.com/vatesfr/xen-orchestra/pull/6871
        we'll release a patch ASAP

        fbeauchamp opened this pull request in vatesfr/xen-orchestra

        closed fix(backups): fix CR not deleting older VM #6871

        florentF 1 Reply Last reply Reply Quote 0
        • GheppyG Offline
          Gheppy
          last edited by

          I confirm this
          ff1f106f-4dd4-4122-b134-7b51888ca71f-image.png

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

            @florent will check that ASAP tomorrow morning (Paris time)

            A 1 Reply Last reply Reply Quote 0
            • A Offline
              Andrew Top contributor @olivierlambert
              last edited by

              @olivierlambert @florent
              Looks like XO is not running the Destroy (old) VM on the destination SR.

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

                @Andrew found it : https://github.com/vatesfr/xen-orchestra/pull/6871
                we'll release a patch ASAP

                fbeauchamp opened this pull request in vatesfr/xen-orchestra

                closed fix(backups): fix CR not deleting older VM #6871

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

                  @florent it's merged into master

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

                    I confirm the bug is fixed and also automatically cleaning the previously created VMs.

                    1 Reply Last reply Reply Quote 0
                    • A Offline
                      Andrew Top contributor @florent
                      last edited by Andrew

                      @florent XO and XOA are working correctly again for me now. Thanks!

                      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
                      • olivierlambertO Offline
                        olivierlambert Vates 🪐 Co-Founder CEO
                        last edited by

                        Thanks everyone for your feedback!

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