This section instructs you on how to manually upgrade the Galera cluster. Only the MySQL and Galera packages will be upgraded. The upgrade of an underlying operating system is out of scope.
During the upgrade, the Galera cluster remains alive while you shut down each MySQL service on the node one by one to upgrade its packages and then restart the service. When the node reconnects, it synchronizes with the cluster as in case of any other outage. The upgrade of an underlying operating system is out of scope.
Warning
Before performing the upgrade on a production environment:
To upgrade the Galera cluster:
Prepare the Galera cluster for the upgrade:
Log in to the Salt Master node.
Obtain the new packages on all Galera nodes:
salt -C 'I@galera:*' cmd.run 'apt-get clean; apt-get update'
Verify that the MySQL and Galera packages are available on all Galera nodes:
salt -C 'I@galera:*' cmd.run "apt-cache policy mysql-wsrep-5.6 |egrep -i 'installed|candidate'"
salt -C 'I@galera:*' cmd.run "apt-cache policy galera-3 |egrep -i 'installed|candidate'"
Example of system response:
dbs02.openstack-ovs-core-ssl-pike-8602.local:
Installed: 5.6.35-0.1~u16.04+mcp2
Candidate: 5.6.41-1~u16.04+mcp1
dbs01.openstack-ovs-core-ssl-pike-8602.local:
Installed: 5.6.35-0.1~u16.04+mcp2
Candidate: 5.6.41-1~u16.04+mcp1
dbs03.openstack-ovs-core-ssl-pike-8602.local:
Installed: 5.6.35-0.1~u16.04+mcp2
Candidate: 5.6.41-1~u16.04+mcp1
Verify the runtime versions of the MySQL nodes of the Galera cluster:
salt -C 'I@galera:*' mysql.version
Example of system response:
dbs02.openstack-ovs-core-ssl-pike-8602.local:
5.6.35-0.1~u16.04+mcp2
dbs01.openstack-ovs-core-ssl-pike-8602.local:
5.6.35-0.1~u16.04+mcp2
dbs03.openstack-ovs-core-ssl-pike-8602.local:
5.6.35-0.1~u16.04+mcp2
Perform the following steps on one of the Galera slave nodes, for example, on the third instance:
Stop the MySQL service:
salt -C 'I@galera:* and *03*' service.stop mysql
Upgrade the packages:
salt -C 'I@galera:* and *03*' cmd.run "apt-get -y install --reinstall -o \
DPkg::Options::=--force-confold -o Dpkg::Options::=--force-confdef mysql-wsrep-5.6 \
mysql-wsrep-common-5.6 mysql-wsrep-libmysqlclient18 galera-3"
Apply the galera
Salt state:
salt -C 'I@galera:* and *03*' state.apply galera
Verify that your Galera cluster is up and running as described in Verify a Galera cluster status.
Perform the step 6 on the remaining Galera nodes one by one.
Verify the cluster status after upgrade:
Verify the versions of the installed packages:
salt -C 'I@galera:*' mysql.version
Verify that your Galera cluster is up and running as described in Verify a Galera cluster status.