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

    XO - Restore Health Check

    Scheduled Pinned Locked Moved Advanced features
    11 Posts 4 Posters 564 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.
    • nikadeN Offline
      nikade Top contributor
      last edited by

      Hi everyone,

      Has anyone else tried the Restore Health Check-feature in XO to test their backups?
      I've used it now in my lab a couple of times and it works great, but one thing that bugs me out is that the name of the tested VM is no longer dispalyed after the TEST is finished because it was removed:

      7edb57c5-f1b7-47a5-bd58-f9ecde6f93db-bild.png

      Instead of listing the name of the VM it just says "VM not found!"

      We're using XO from sources:

      Xen Orchestra, commit 8b7e1
      Master, commit 587da

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

        Ping @florent maybe

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

          I can confirm this is the case for me too, not a huge deal, but would be kinda nice if it could keep track of the name.

          nikadeN 1 Reply Last reply Reply Quote 1
          • nikadeN Offline
            nikade Top contributor @planedrop
            last edited by

            @planedrop said in XO - Restore Health Check:

            I can confirm this is the case for me too, not a huge deal, but would be kinda nice if it could keep track of the name.

            Thanks for verifying, it is probably an easy fix for the vates ppl 🙂

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

              Since Flo is AFK, maybe @MathieuRA can take a quick look 🙂 (if it's only a display thing that would make sense)

              1 Reply Last reply Reply Quote 0
              • MathieuRAM Offline
                MathieuRA Vates 🪐 XO Team @nikade
                last edited by

                Hi, @nikade
                As you said, the VM is deleted at the end of the health-check, and it will not be trivial to keep the VM name.

                BTW, maybe we can add a column.
                So the current VM column will point to the VM used for the health-check (no change), and the new column will point to the backuped VM. What do you think?

                nikadeN 1 Reply Last reply Reply Quote 0
                • nikadeN Offline
                  nikade Top contributor @MathieuRA
                  last edited by

                  @MathieuRA said in XO - Restore Health Check:

                  Hi, @nikade
                  As you said, the VM is deleted at the end of the health-check, and it will not be trivial to keep the VM name.

                  BTW, maybe we can add a column.
                  So the current VM column will point to the VM used for the health-check (no change), and the new column will point to the backuped VM. What do you think?

                  Cant you just read $name and print $name in the column instead of a hyperlink to the VM (when it is deleted)?
                  This is the flow that I imagine:

                  Health check starts -> $name of VM is recorded -> $name is listed as a hyperlink in the VM column -> VM is deleted -> $name is listed as text in the VM column.

                  MathieuRAM 1 Reply Last reply Reply Quote 0
                  • MathieuRAM Offline
                    MathieuRA Vates 🪐 XO Team @nikade
                    last edited by

                    @nikade said in XO - Restore Health Check:

                    of VM is recorded -> $name is listed as a hyperlink in the VM column -> VM is deleted -> $name is listed as text in the VM column.

                    No we can't, we do not have direct access to the VM name.
                    We must first find the VM using an ID and then return the name_label property of the VM object.

                    nikadeN 1 Reply Last reply Reply Quote 0
                    • nikadeN Offline
                      nikade Top contributor @MathieuRA
                      last edited by

                      @MathieuRA said in XO - Restore Health Check:

                      @nikade said in XO - Restore Health Check:

                      of VM is recorded -> $name is listed as a hyperlink in the VM column -> VM is deleted -> $name is listed as text in the VM column.

                      No we can't, we do not have direct access to the VM name.
                      We must first find the VM using an ID and then return the name_label property of the VM object.

                      OK, so it is possible!

                      MathieuRAM 2 Replies Last reply Reply Quote 0
                      • MathieuRAM Offline
                        MathieuRA Vates 🪐 XO Team @nikade
                        last edited by

                        @nikade said in XO - Restore Health Check:

                        OK, so it is possible!

                        Reply

                        If the VM is deleted, we can no longer find it, so we cannot retrieve the name label property of an object that does not exist.

                        1 Reply Last reply Reply Quote 0
                        • MathieuRAM Offline
                          MathieuRA Vates 🪐 XO Team @nikade
                          last edited by

                          At least for XO5, there is no trivial way to do that.

                          So will probably need to wait for XO6.

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