Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-9007

[PATCH] Bootstrap does not work in CentOS start script

Details

    • 10.1.9-1

    Description

      Hi everybody,

      In the Centos7 start script there is no way to bootstrap a new cluster.
      "service mysql bootstrap" is says it is bootstrapping but it always fails trying to connect to another node.

      Cheers,
      Michael

      Config:

      [server]
       
      server-id=2
       
      # this is only for the mysqld standalone daemon
      [mysqld]
      default_storage_engine = InnoDB
      max_connect_errors = 10
      max_connections = 100
      wait_timeout = 3600
      datadir = /var/lib/mysql
       
      max_heap_table_size = 100M
       
      performance_schema = ON
       
      ##team@inbox 2015-10-23 logs setup
      long_query_time = 0.1
      slow_query_log = ON
      log_error = /var/log/mysql/mysql.err
      slow_query_log_file = /var/log/mysql/slow_query.log
      sql_error_log_filename = /var/log/mysql/sql_error.log
      plugin-load = sql_errlog.so
       
       
      log_bin
       
      binlog_format = ROW
      innodb_locks_unsafe_for_binlog = 1
       
      #binlog_format=row
      #default_storage_engine=InnoDB
      innodb_autoinc_lock_mode=2
      bind-address=0.0.0.0
      #
      # Optional setting
      wsrep_slave_threads=4
      innodb_flush_log_at_trx_commit=2
       
      ##Galera settings from training material
      wsrep_on = ON
      wsrep_cluster_name="test_cluster"
      wsrep_node_name=node2
      wsrep_cluster_address="gcomm://192.168.76.199,192.168.76.189"
      wsrep_node_address=192.168.76.199
      wsrep_sst_method = xtrabackup-v2
      wsrep_sst_receive_address=192.168.76.199
      wsrep_sst_auth=sst:galera
      wsrep_provider=/usr/lib64/galera/libgalera_smm.so
      # this is only for embedded server
      [embedded]
       
      # This group is only read by MariaDB servers, not by MySQL.
      # If you use the same .cnf file for MySQL and MariaDB,
      # you can put MariaDB-only options here
      [mariadb]
       
      # This group is only read by MariaDB-10.1 servers.
      # If you use the same .cnf file for MariaDB of different versions,
      # use this group for options that older servers don't understand
      [mariadb-10.1]

      Attachments

        Issue Links

          Activity

            michaeldg, I assume it was about 10.1.8?
            Please always specify the version which report is about.

            service redirects the job to systemctl, and our systemd service does not have a bootstrap option, so apparently it's just ignored. To bootstrap a cluster via systemctl, one can do the following

            systemctl set-environment MYSQLD_OPTS=--wsrep-new-cluster
            systemctl start mariadb
            systemctl unset-environment MYSQLD_OPTS

            svoj, danblack, any ideas what we should do? Remove 'bootstrap' from the init script, to avoid confusion?

            elenst Elena Stepanova added a comment - michaeldg , I assume it was about 10.1.8? Please always specify the version which report is about. service redirects the job to systemctl, and our systemd service does not have a bootstrap option, so apparently it's just ignored. To bootstrap a cluster via systemctl, one can do the following systemctl set-environment MYSQLD_OPTS=--wsrep-new-cluster systemctl start mariadb systemctl unset-environment MYSQLD_OPTS svoj , danblack , any ideas what we should do? Remove 'bootstrap' from the init script, to avoid confusion?

            Cheers, it was indeed about 10.1.8.

            Perhaps the init script can set these environments before it redirects?

            michaeldg Michaƫl de groot added a comment - Cheers, it was indeed about 10.1.8. Perhaps the init script can set these environments before it redirects?
            danblack Daniel Black added a comment -

            > any ideas what we should do?

            yes

            > Remove 'bootstrap' from the init script, to avoid confusion?

            Like the planned mariadb@bootstrap, make a service mariadb bootstrap error out and inform the user to use a galera_new_cluster (to be added) script.

            danblack Daniel Black added a comment - > any ideas what we should do? yes > Remove 'bootstrap' from the init script, to avoid confusion? Like the planned mariadb@bootstrap, make a service mariadb bootstrap error out and inform the user to use a galera_new_cluster (to be added) script.
            danblack Daniel Black added a comment -

            sudo service mysql bootstrap

            Please use galera_new_cluster to start the mariadb service [FAILED]srep-new-cluster

            danblack Daniel Black added a comment - sudo service mysql bootstrap Please use galera_new_cluster to start the mariadb service [FAILED] srep-new-cluster
            danblack Daniel Black added a comment -

            nirbhay_c you where going to look at this before the GA release? Still interested?

            danblack Daniel Black added a comment - nirbhay_c you where going to look at this before the GA release? Still interested?

            danblack Yes, I can take care of this.

            nirbhay_c Nirbhay Choubey (Inactive) added a comment - danblack Yes, I can take care of this.
            alexzver alex zver added a comment -

            This is an issue with MariaDB-server-10.1.10-1.el7.centos.x86_64.

            alexzver alex zver added a comment - This is an issue with MariaDB-server-10.1.10-1.el7.centos.x86_64.

            As noted in the following link use galera_new_cluster instead.
            https://mariadb.com/kb/en/mariadb/systemd/

            nirbhay_c Nirbhay Choubey (Inactive) added a comment - As noted in the following link use galera_new_cluster instead. https://mariadb.com/kb/en/mariadb/systemd/

            People

              nirbhay_c Nirbhay Choubey (Inactive)
              michaeldg Michaƫl de groot
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.