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

    When the XCPNG host restart, it restarts running directly, instead of being in maintenance mode

    Scheduled Pinned Locked Moved Compute
    14 Posts 6 Posters 445 Views 6 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.
    • O Offline
      oliv77
      last edited by

      Hi,

      XOA version:
      xo-server 5.193.1
      xo-web-premium 5.191.0

      We've noticed on our production XOA server that when we put an XCPNG host in a pool into maintenance mode, we reboot it and then it reconnects to its pool but is no longer in maintenance mode.
      Is it possible to configure the XCPNG hosts so that they automatically return to maintenance mode after a reboot?

      Regards,

      Oliv77

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

        Hi,

        This question reminds me something 🤔 @psafont do you remember on your end?

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

          @olivierlambert I even witnessed something today, on the same thematic :

          • one pool of 2 hosts
          • multiple VMs not running, but some have the AUTO POWER ON checked
          • reboot the slave host, and as soon as it gets online / green, the VMs with auto power on starts...

          they were downed on purpose... surprise 😃

          by the way, is this what is expected if the AUTO POWER ON is also checked on the POOL advanced tab ? I supposed it was there only to check auto power on on newly created VMs

          A 1 Reply Last reply Reply Quote 0
          • A Online
            Andrew Top contributor @Pilow
            last edited by

            @Pilow @olivierlambert I have the same issue with suspended VMs restarting without my request. It happens during some host upgrades/reboots or NFS storage reconnects.

            1 Reply Last reply Reply Quote 0
            • psafontP Offline
              psafont Vates 🪐 XAPI & Network Team @olivierlambert
              last edited by

              @olivierlambert XCP-ng will include an option to keep hosts disabled after reboot. This will be part of the next update for xapi. (25.33.1) This was contributed upstream by Andriy and is used by adding an extra parameter to disable: xe host-disable uuid=$HOST auto-enable=false.

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

                Ah nice!

                1 Reply Last reply Reply Quote 0
                • O Offline
                  oliv77
                  last edited by

                  Hi,

                  @olivierlambert, @psafont @pilow Perfect, thank you a lot !!

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

                    @psafont do you know if it's already available since then in XCP-ng 8.3? If yes, worth checking XO team to also making this option visible in the UI 🙂

                    psafontP 1 Reply Last reply Reply Quote 0
                    • psafontP Offline
                      psafont Vates 🪐 XAPI & Network Team @olivierlambert
                      last edited by

                      @olivierlambert said:

                      @psafont do you know if it's already available since then in XCP-ng 8.3? If yes, worth checking XO team to also making this option visible in the UI 🙂

                      Yes, we're shipping xapi 26.1.3, which includes this enhancement.

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

                        Thanks! I will make sure the Maintenance mode button in XO extends with this new parameter.

                        P 1 Reply Last reply Reply Quote 0
                        • P Offline
                          Pilow @olivierlambert
                          last edited by

                          @olivierlambert having done a RPU yesterday on 3 hosts, I still have the "bug" where some VMs with "auto start" switched ON, but halted on purpose, reboot when a host is rebooted.

                          we do stop some VMs during RPU to lessen the migrate times, but at every host reboot, they DO START UP

                          annoying. not critical, but annoying.

                          stormiS 1 Reply Last reply Reply Quote 0
                          • stormiS Offline
                            stormi Vates 🪐 XCP-ng Team @Pilow
                            last edited by

                            @Pilow Are these VMs HA-protected? If yes, maybe when HA is re-enabled after the RPU it believes that the VM is down and must be started.

                            There's a pool-wide setting tell HA not to restart a VM that was manually stopped:

                            xe pool-param-set uuid=<your pool uuid> ha-reboot-vm-on-internal-shutdown=false
                            
                            P 1 Reply Last reply Reply Quote 0
                            • P Offline
                              Pilow @stormi
                              last edited by

                              @stormi no, we do not use HA, it's disabled on the POOL and on the VMs

                              P 1 Reply Last reply Reply Quote 0
                              • P Offline
                                Pilow @Pilow
                                last edited by Pilow

                                I did verify and yes

                                    ha-reboot-vm-on-internal-shutdown ( RW): true
                                

                                it is enabled on our Pool. but no HA

                                                           ha-enabled ( RO): false
                                
                                1 Reply Last reply Reply Quote 0

                                Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                With your input, this post could be even better 💗

                                Register Login
                                • First post
                                  Last post