From 41eddd813c6283201e98597b20682017c01e77f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9gis=20Behmo?= Date: Thu, 22 Jun 2023 12:33:57 +0200 Subject: [PATCH 1/2] fix: mysql deployment on k8s The `--ignore-db-dir` option is no longer supported on MySQL 8. See: https://dev.mysql.com/doc/refman/8.0/en/upgrade-prerequisites.html This option was causing the mysql container to fail. --- changelog.d/20230622_123257_regis_k8s_fix_mysql8_start.md | 1 + tutor/templates/k8s/deployments.yml | 4 +--- 2 files changed, 2 insertions(+), 3 deletions(-) create mode 100644 changelog.d/20230622_123257_regis_k8s_fix_mysql8_start.md diff --git a/changelog.d/20230622_123257_regis_k8s_fix_mysql8_start.md b/changelog.d/20230622_123257_regis_k8s_fix_mysql8_start.md new file mode 100644 index 0000000..40c9422 --- /dev/null +++ b/changelog.d/20230622_123257_regis_k8s_fix_mysql8_start.md @@ -0,0 +1 @@ +- [Bugfix] On Kubernetes, fix mysql deployment by removing the `-ignore-db-dir` option, which no longer exists on MySQL 8. (by @regisb) diff --git a/tutor/templates/k8s/deployments.yml b/tutor/templates/k8s/deployments.yml index 30c73b8..ee01724 100644 --- a/tutor/templates/k8s/deployments.yml +++ b/tutor/templates/k8s/deployments.yml @@ -392,9 +392,7 @@ spec: containers: - name: mysql image: {{ DOCKER_IMAGE_MYSQL }} - # Note the ignore-db-dir: this is because ext4 volumes are created with a lost+found directory in them, which causes mysql - # initialisation to fail - args: ["mysqld", "--character-set-server=utf8", "--collation-server=utf8_general_ci", "--ignore-db-dir=lost+found"] + args: ["mysqld", "--character-set-server=utf8", "--collation-server=utf8_general_ci"] env: - name: MYSQL_ROOT_PASSWORD value: "{{ MYSQL_ROOT_PASSWORD }}" From b5b74bec9df24f5946cf43d4278fdf188cd730d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9gis=20Behmo?= Date: Thu, 22 Jun 2023 13:00:17 +0200 Subject: [PATCH 2/2] v16.0.2 --- CHANGELOG.md | 5 +++++ changelog.d/20230622_123257_regis_k8s_fix_mysql8_start.md | 1 - tutor/__about__.py | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) delete mode 100644 changelog.d/20230622_123257_regis_k8s_fix_mysql8_start.md diff --git a/CHANGELOG.md b/CHANGELOG.md index 589513a..c37c903 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -20,6 +20,11 @@ instructions, because git commits are used to generate release notes: + +## v16.0.2 (2023-06-22) + +- [Bugfix] On Kubernetes, fix mysql deployment by removing the `--ignore-db-dir` option, which no longer exists on MySQL 8. (by @regisb) + ## v16.0.1 (2023-06-16) diff --git a/changelog.d/20230622_123257_regis_k8s_fix_mysql8_start.md b/changelog.d/20230622_123257_regis_k8s_fix_mysql8_start.md deleted file mode 100644 index 40c9422..0000000 --- a/changelog.d/20230622_123257_regis_k8s_fix_mysql8_start.md +++ /dev/null @@ -1 +0,0 @@ -- [Bugfix] On Kubernetes, fix mysql deployment by removing the `-ignore-db-dir` option, which no longer exists on MySQL 8. (by @regisb) diff --git a/tutor/__about__.py b/tutor/__about__.py index e6f268f..40bcca6 100644 --- a/tutor/__about__.py +++ b/tutor/__about__.py @@ -2,7 +2,7 @@ import os # Increment this version number to trigger a new release. See # docs/tutor.html#versioning for information on the versioning scheme. -__version__ = "16.0.1" +__version__ = "16.0.2" # The version suffix will be appended to the actual version, separated by a # dash. Use this suffix to differentiate between the actual released version and