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

    Connecting servers after credential change

    Scheduled Pinned Locked Moved Xen Orchestra
    15 Posts 4 Posters 2.8k Views 1 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.
    • LEB-IDL Offline
      LEB-ID
      last edited by

      Good day. As part of our security plan I periodically change the access credentials on all of our servers, including the ones hosting XO and our VM environments. A few days ago I changed the root passwords on our XCP-ng servers, and since doing so am having issues getting XO to connect to them.

      When coming to the XO home area, I'm presented with this:

      3ebc9810-7bce-48b7-b20b-5081165e1564-image.png

      Naturally, I go to Settings - Servers, to check and the credentials aren't working, as one would expect:

      SESSION_AUTHENTICATION_FAILED(root, Authentication failure)
      

      So I go to the password field and enter the updated credentials. XO gives me a green checkmark, which I would expect means that the credentials are accepted.

      18360e31-4f08-4896-9e79-1a8f97231dba-image.png

      However, the problem still persists. XO acts as though it doesn't have the correct credentials, and I'm unable to view/manage the servers or VMs.

      If I'm missing a step here, please let me know! Not sure how to proceed at this point. I know the credentials are correct, as everything functions normally in the "heavy" Windows management client.

      1 Reply Last reply Reply Quote 0
      • jedimarcusJ Offline
        jedimarcus
        last edited by

        What is the red explanation mark saying?

        LEB-IDL 1 Reply Last reply Reply Quote 0
        • LEB-IDL Offline
          LEB-ID @jedimarcus
          last edited by

          @jedimarcus It's the authentication failure message.

          SESSION_AUTHENTICATION_FAILED(root, Authentication failure)
          

          It's there before I change the credentials, and even though the green check seems to indicate that I've successfully changed them, apparently there's still an authentication failure. It seems as though XO is not properly saving the changes to the credentials.

          1 Reply Last reply Reply Quote 0
          • jedimarcusJ Offline
            jedimarcus
            last edited by

            did you try removing & adding the server?

            LEB-IDL 1 Reply Last reply Reply Quote 0
            • LEB-IDL Offline
              LEB-ID @jedimarcus
              last edited by

              @jedimarcus I thought of doing so and that was to be my next step, but I was afraid that this would mess up my configured backups. I'd rather find a solution to the particular problem and not mess up the backups if I can, rather than having to give up and delete/re-add.

              1 Reply Last reply Reply Quote 0
              • jedimarcusJ Offline
                jedimarcus
                last edited by

                Just disable your current and add the other one with the ip instead of the hostname or vice-versa. Just to be sure your API is responding correctly.

                1 Reply Last reply Reply Quote 0
                • DanpD Online
                  Danp Pro Support Team
                  last edited by

                  Have you tried disabling and then enabling the server following the password update?

                  1 Reply Last reply Reply Quote 1
                  • LEB-IDL Offline
                    LEB-ID
                    last edited by

                    @jedimarcus I tried disabling and then re-adding one of the servers by IP, this failed with a message that the server already exists.

                    @Danp This worked, but I had to disable all the servers, then start by re-enabling the master server first. If you didn't do so, the master couldn't re-join because XO thought the pool was already there.

                    Thank you folks, for your help. Looks like I just need to add the disable/re-enable bit to the process when changing credentials.

                    1 Reply Last reply Reply Quote 0
                    • jedimarcusJ Offline
                      jedimarcus
                      last edited by

                      How many Pools do you have? How many Hosts?

                      If you have 1 XCP-ng Pool, you only need 1 entry in your XO Servers page, the master only.

                      LEB-IDL 1 Reply Last reply Reply Quote 0
                      • LEB-IDL Offline
                        LEB-ID @jedimarcus
                        last edited by

                        @jedimarcus One pool, two host servers. So in that situation, you only need to connect the master server? Interesting. Thank you for the info!

                        jedimarcusJ 1 Reply Last reply Reply Quote 0
                        • jedimarcusJ Offline
                          jedimarcus @LEB-ID
                          last edited by

                          @LEB-ID Yes, in XO > Settings > Servers should only have a single entry.

                          Once connected

                          XO > Home > Hosts should display your 2 servers

                          LEB-IDL 1 Reply Last reply Reply Quote 1
                          • LEB-IDL Offline
                            LEB-ID @jedimarcus
                            last edited by

                            @jedimarcus Got it, thank you again. Labeling that part of the settings as 'Servers' is a bit confusing in this case. Perhaps the XO team might want to label that as 'Pools' instead?

                            jedimarcusJ 1 Reply Last reply Reply Quote 0
                            • DanpD Online
                              Danp Pro Support Team
                              last edited by

                              Or perhaps add a warning when you attempt to add a non-master server to the list?

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

                                We already have a warning if you try to add a server that's already connected. At least since 3 or 4 release I think.

                                edit: you need to disable/enable your server when you change the pwd.

                                1 Reply Last reply Reply Quote 0
                                • jedimarcusJ Offline
                                  jedimarcus @LEB-ID
                                  last edited by

                                  @LEB-ID It's called Add new Server in XCP-ng Center too... old habits die hard. But Pools is not the right word either. It's hard coming up with something short and precise.

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