From 7526de2410f7ebd577e49703f06ff9347377dd12 Mon Sep 17 00:00:00 2001 From: Clark Boylan Date: Mon, 19 Feb 2024 09:01:10 -0800 Subject: [PATCH] Upgrade the lodgeit mariadb to 10.11 I have tested this upgrade on a held node going straight from 10.4 to 10.11 in one go. The resulting logs can be found in this paste [0]. The resulting backups of system tables are small enough that it seems reasonable to keep those enabled (though they can be disabled). Also, we can either land this change and let docker-compose do the upgrade for us, or we can put the host in the emergency file, do the upgrade by hand, then merge this change to reflect the new state of the world. One advantage to doing this by hand is that we can manually run a db backup with the service turned off to avoid any lost data between the time the upgrade occurs and the time of our last backup should anything go wrong. In either case we should probably double check that db backups look good in borg before proceeding. Comments on approach are very much welcome. [0] https://paste.opendev.org/show/bWhZZH97IMLv44eeiWlB/ Change-Id: I1bfcaeb9b90838a80d002732215f45a14a158fed --- playbooks/roles/lodgeit/templates/docker-compose.yaml.j2 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/playbooks/roles/lodgeit/templates/docker-compose.yaml.j2 b/playbooks/roles/lodgeit/templates/docker-compose.yaml.j2 index d59c13406d..b5cc215ce3 100644 --- a/playbooks/roles/lodgeit/templates/docker-compose.yaml.j2 +++ b/playbooks/roles/lodgeit/templates/docker-compose.yaml.j2 @@ -2,7 +2,7 @@ version: '2' services: mariadb: - image: docker.io/library/mariadb:10.4 + image: docker.io/library/mariadb:10.11 network_mode: host restart: always environment: @@ -10,6 +10,7 @@ services: MYSQL_DATABASE: "{{ lodgeit_db_dbname }}" MYSQL_USER: "{{ lodgeit_db_username }}" MYSQL_PASSWORD: "{{ lodgeit_db_password }}" + MARIADB_AUTO_UPGRADE: 1 command: [ '--wait_timeout=28800', ]