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

    Setting "Protect from accidental deletion" breaks with backups and healtchecks

    Scheduled Pinned Locked Moved Backup
    5 Posts 4 Posters 27 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.
    • P Offline
      probain
      last edited by probain

      Having the flag "Protect from accidental deletion" has since yesterday left me with plenty of restored VMs. In the backup logs, it indicates that this happens during the healthcheck.

      This has happened on 3 out of 6 VMs
      Update: The other 3 VMs were opt-out from Healthchecks. So that is why this didn't affect them.

      23a84083-7aa0-4405-81f2-30e630b5edd5-image.png

      commit: dd5f0cdaa9993fae25469bd1cb1d01d4f2123f44

       transfer
      Start: 2026-02-04 12:16
      End: 2026-02-04 12:16
      Duration: a few seconds
      Size: 2.01 GiB
      Speed: 81.14 MiB/s
       health check 
       transfer
      Start: 2026-02-04 12:16
      End: 2026-02-04 12:35
      Duration: 19 minutes
       vmstart 
      Start: 2026-02-04 12:35
      End: 2026-02-04 12:35
      Start: 2026-02-04 12:16
      End: 2026-02-04 12:35
      Error: forbidden operation: destroy is blocked: protected from accidental deletion
      Start: 2026-02-04 12:15
      End: 2026-02-04 12:35
      Duration: 20 minutes
      Error: forbidden operation: destroy is blocked: protected from accidental deletion
       Clean VM directory 
       cleanVm: incorrect backup size in metadata
       merge
      Start: 2026-02-04 12:40
      End: 2026-02-04 12:41
      Duration: a minute
      Start: 2026-02-04 12:40
      End: 2026-02-04 12:41
       Snapshot 
      Start: 2026-02-04 12:41
      End: 2026-02-04 12:41
      
      G 1 Reply Last reply Reply Quote 0
      • G Offline
        Greg_E @probain
        last edited by

        @probain

        Not that this is an answer, but what happens if you uncheck the deletion box, and delete them manually?

        P P 2 Replies Last reply Reply Quote 0
        • P Offline
          Pilow @Greg_E
          last edited by

          @Greg_E i think protection is doing its job. do not delete.
          but in case of healthcheck, the process should bypass that for the restored VM

          thoughts @bastien-nollet @florent ?

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

            @Pilow clearly that is a bug

            1 Reply Last reply Reply Quote 1
            • P Offline
              probain @Greg_E
              last edited by

              @Greg_E

              Manually unchecking makes the problem go away..
              And I can also delete manually (after unchecking the HC-vms)

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