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

    Unable to add host to pool (db mismatch)

    Scheduled Pinned Locked Moved Xen Orchestra
    9 Posts 4 Posters 193 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.
    • mauzillaM Offline
      mauzilla
      last edited by

      We've been building on a running pool and want to add our last host to it. Host had a fresh install, renamed interfaces, but adding it provides:

      POOL_JOINING_HOST_MUST_HAVE_SAME_DB_SCHEMA(5.602, 5.603)

      We've opened a ticket and was advised to do the following:
      https://help.vates.tech/kb/en-us/14/103

      Completed this step and the new host now has identical packages to the rest of the pool. Tried to add again, same error:
      POOL_JOINING_HOST_MUST_HAVE_SAME_DB_SCHEMA(5.602, 5.603)

      Also rebooted the new host (incase this was the issue) but same result.

      How do we update the db schema?

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

        DB schema is updated automatically when you make your updates. So there's an update mismatch between your hosts.

        L 1 Reply Last reply Reply Quote 0
        • L Offline
          Lulina @olivierlambert
          last edited by

          @olivierlambert

          The purpose of the exercise is to get the new host updated with identical packages/updates to match the pool master

          Am I correct in saying that when "Install all patches" is selected on the new host, it will resolve the db_schema mismatch and still be able to successfully join the pool?

          Unless the new host has more updates afterwards than the pool master and won't be able to join the pool?

          1 Reply Last reply Reply Quote 0
          • mauzillaM Offline
            mauzilla
            last edited by

            @olivierlambert - what can we provide to assist log wise? I can confirm the only 2 packages that are different from the yum changes are iftop and the intel fibre card. The rest are identical.

            Is there another command we can run to retrigger the database migration on the new host?

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

              Have you rebooted after installing patches? Or at least restarted the toolstack?

              mauzillaM 1 Reply Last reply Reply Quote 0
              • mauzillaM Offline
                mauzilla @olivierlambert
                last edited by

                @olivierlambert yes we have. What's funny is that we were able to add the other member to the pool a couple of months ago (this is the final one we need to add before we can actually schedule downtime to do proper pool maintenance). Our current pool only has 2 hosts in it, so we cannot really do master / pool restarts as the risk of reboot scenario with a single host will more than likely overload the single host.

                We have installed exactly the same patches of the pool. The new host has also been rebooted. Is there a manual mechanism to upgrade the schema on the new host? As the new host is currently empty, we're happy to perform whatever is needed to get it to join the pool.

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

                  Again, there's absolutely no reason to upgrade a schema manually, if you have installed the package, a simple toolstack restart would have done it automatically on XAPI start. That's why it doesn't make sense to me.

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

                    Ping @andriy.sultanov

                    1 Reply Last reply Reply Quote 0
                    • A Offline
                      andriy.sultanov Vates 🪐 XAPI & Network Team
                      last edited by andriy.sultanov

                      Could you please provide the output of (for the master and the candidate host):

                      xe host-list params=software-version
                      

                      It does seem odd....

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