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

    IP Address changed for a slave within a Pool, How do I reconfigure it?

    Scheduled Pinned Locked Moved Compute
    8 Posts 3 Posters 1.5k 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.
    • M Offline
      MrXeon
      last edited by

      Hi there, just recently did a bunch of changes to my internet infrastructure and lan, I've got everything working again except one of my hosts.

      It's complaining that the master node is unreachable, this is due to an IP change, I've set a static one within OPNSense so that shouldn't be a problem in the future.

      I can't seem to find a way to change the IP for this Host in XOA within the pool manager. I've tried forgetting it, I've tried removing it from the pool via keyboard and vga... says it isn't in one. Xapi is throwing errors and is unresponsive.

      How should I go around solving this kerfuffle?

      Any help is greatly appreciated, thanks. - MrXeon.

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

        If you changed the master IP, the XAPI slave can't reach the master anymore, and so you can't make any modification via XAPI (since everything is going to the master, and then if needed to the slave).

        On the slave, you might need to modify manually the master IP address in /etc/xensource/pool.conf. You should have:
        slave:<OLD MASTER IP> and change it to slave:<NEW MASTER IP>

        ForzaF M 2 Replies Last reply Reply Quote 2
        • ForzaF Offline
          Forza @olivierlambert
          last edited by

          @olivierlambert said in IP Address changed for a slave within a Pool, How do I reconfigure it?:

          If you changed the master IP, the XAPI slave can't reach the master anymore, and so you can't make any modification via XAPI (since everything is going to the master, and then if needed to the slave).

          On the slave, you might need to modify manually the master IP address in /etc/xensource/pool.conf. You should have:
          slave:<OLD MASTER IP> and change it to slave:<NEW MASTER IP>

          I had exactly this error an hour ago. I changed the management interface IP, but the member server could not re-establish contact. Looking in xensource logs I saw it was trying to connect using the old IP, but I thought this was stored in the xapi database and could not be updated...

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

            On a slave host, the database is in read only. If the slave lost the connection with the master, there's no way to make any change into the "local" slave XAPI database.

            ForzaF 1 Reply Last reply Reply Quote 1
            • ForzaF Offline
              Forza @olivierlambert
              last edited by

              @olivierlambert said in IP Address changed for a slave within a Pool, How do I reconfigure it?:

              On a slave host, the database is in read only. If the slave lost the connection with the master, there's no way to make any change into the "local" slave XAPI database.

              It makes sense. It would have been nice if pool members get the updated IP through XAPI before the actual change on the master happens.

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

                I suppose it's not always possible in some cases. But yeah, in theory, you should tell all the slaves to point to the new IP, and then change it locally, hoping the IP change will not fail (otherwise, you are also stuck).

                It's not a simple thing as one could imagine in the first place 😄

                ForzaF 1 Reply Last reply Reply Quote 2
                • ForzaF Offline
                  Forza @olivierlambert
                  last edited by Forza

                  For now, a warning in XOA when changing the management IP would be nice. It could include an instruction on how to update the pool members after the IP of the master was changed.

                  Is it possible to use hostnames instead of IPs? It could make things easier?

                  1 Reply Last reply Reply Quote 1
                  • M Offline
                    MrXeon @olivierlambert
                    last edited by MrXeon

                    @olivierlambert Looks possible, since I've clicked forget this particular slave/host in XOA, how would I go around adding it back there?

                    The slave is missing from the masters pool list.

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