Workaround for MariaDB 10.3 deployment failure on ClusterControl

Follow

Comments

8 comments

  • Avatar
    Paul Namuag

    Just an update:

     

    MaiaDB 10.3.11 has already fixed this. So you'll notice that in /bin/galera_new_cluster, instead of "return", the "exit" function is now used.

    0
    Comment actions Permalink
  • Avatar
    Star Florist

    Very useful. Thanks for Sharing.

    0
    Comment actions Permalink
  • Avatar
    Blake Wyman

    The new update is pretty complete and I like it.

    basket random

    0
    Comment actions Permalink
  • Avatar
    Lennon Ampere

    Thanks for sharing these detailed steps! It’s a solid workaround for deploying a 3-node MariaDB 10.3 Galera Cluster despite the current limitations with the known issue. Your method of letting ClusterControl handle each node’s installation individually, followed by manually editing the galera_new_cluster script, seems like an effective approach to bypass the issue until MariaDB resolves it. This will help others facing deployment challenges with ClusterControl to achieve a stable setup for their clusters, even if it requires a bit more manual input. Great work, and thanks for contributing to the community!

    1
    Comment actions Permalink
  • Avatar
    Jasbon Jonwick

    1. Install Software on All Nodes (Individually):

    • In ClusterControl:
      Deploy -> MySQL Galera -> Setup SSH and Cluster Name -> Select MariaDB 10.3

    • Add one node at a time (change IP/hostname per node).

    • This installs the packages via ClusterControl, but not the full cluster.

    2. Stop MariaDB on All Nodes:

    bash
    CopyEdit
    systemctl stop mariadb

    3. Modify galera_new_cluster Script:

    • Edit /bin/galera_new_cluster

    • Change the final line from:

      bash
      CopyEdit
      return $extcode

      to:

      bash
      CopyEdit
      exit $extcode

    4. Deploy the Cluster (Without Reinstalling Software):

    • Back in ClusterControl:

      • Deploy -> MySQL Galera

      • Uncheck "Install Software" (leave it blank)

      • Continue, select MariaDB 10.3

      • Now add all 3 nodes at once

    0
    Comment actions Permalink
  • Avatar
    Arshad Khan

    Thanks for sharing this workaround, Paul! This is really helpful for anyone struggling with MariaDB 10.3 deployment on ClusterControl.

    To summarize your approach:

    Initial Package Installation: Let ClusterControl install MariaDB 10.3 on each node individually. Yes, it’s a bit repetitive, but it ensures all necessary packages are correctly set up.

    Stop MariaDB Services: Run systemctl stop mariadb on all nodes before modifying the Galera script.

    Edit galera new cluster: Change the last line from return to exit $extcode. This prevents the script from failing during initialization.

    Final Cluster Deployment: Go back to ClusterControl, disable the “Install Software” option, and add all nodes to finalize the cluster setup.

    It’s a bit of a manual workaround, but it seems to reliably bypass the MDEV-17379 issue.

    Have you noticed any edge cases or limitations with this approach, especially with larger clusters?

    0
    Comment actions Permalink
  • Avatar
    Paul Namuag

    Hi Gohar,

    If you see above, there's a link showing Create Support Request and we encourage you to file in case you find a bug upon using ClusterControl.

    0
    Comment actions Permalink
  • Avatar
    Hande

    this is very interesting.

    -1
    Comment actions Permalink

Please sign in to leave a comment.

Powered by Zendesk