From cca4b8e1c75fa9892c49e041623c2749f8f7bc98 Mon Sep 17 00:00:00 2001 From: garciadeblas Date: Tue, 10 Oct 2023 11:45:57 +0200 Subject: [PATCH] Update osm helm chart to use version 8.0.34 of mysql server Change-Id: I4804d7da812c50283dd0cd3f5398fb4bbb9b93c2 Signed-off-by: garciadeblas --- docker/Keystone/scripts/start.sh | 6 ++++-- installers/helm/osm/templates/mysql/mysql-statefulset.yaml | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/docker/Keystone/scripts/start.sh b/docker/Keystone/scripts/start.sh index d7fa2abd..dde1b5ae 100755 --- a/docker/Keystone/scripts/start.sh +++ b/docker/Keystone/scripts/start.sh @@ -109,8 +109,10 @@ else fi if [ -z $USER_DB_EXISTS ]; then - mysql -h"$DB_HOST" -P"$DB_PORT" -u"$ROOT_DB_USER" -p"$ROOT_DB_PASSWORD" --default_character_set utf8 -e "GRANT ALL PRIVILEGES ON keystone.* TO 'keystone'@'localhost' IDENTIFIED BY '$KEYSTONE_DB_PASSWORD'" - mysql -h"$DB_HOST" -P"$DB_PORT" -u"$ROOT_DB_USER" -p"$ROOT_DB_PASSWORD" --default_character_set utf8 -e "GRANT ALL PRIVILEGES ON keystone.* TO 'keystone'@'%' IDENTIFIED BY '$KEYSTONE_DB_PASSWORD'" + mysql -h"$DB_HOST" -P"$DB_PORT" -u"$ROOT_DB_USER" -p"$ROOT_DB_PASSWORD" --default_character_set utf8 -e "CREATE USER 'keystone'@'localhost' IDENTIFIED BY '$KEYSTONE_DB_PASSWORD'" + mysql -h"$DB_HOST" -P"$DB_PORT" -u"$ROOT_DB_USER" -p"$ROOT_DB_PASSWORD" --default_character_set utf8 -e "GRANT ALL PRIVILEGES ON keystone.* TO 'keystone'@'localhost'" + mysql -h"$DB_HOST" -P"$DB_PORT" -u"$ROOT_DB_USER" -p"$ROOT_DB_PASSWORD" --default_character_set utf8 -e "CREATE USER 'keystone'@'%' IDENTIFIED BY '$KEYSTONE_DB_PASSWORD'" + mysql -h"$DB_HOST" -P"$DB_PORT" -u"$ROOT_DB_USER" -p"$ROOT_DB_PASSWORD" --default_character_set utf8 -e "GRANT ALL PRIVILEGES ON keystone.* TO 'keystone'@'%'" fi # Setting Keystone database connection diff --git a/installers/helm/osm/templates/mysql/mysql-statefulset.yaml b/installers/helm/osm/templates/mysql/mysql-statefulset.yaml index c9b2d161..1a18f4a3 100644 --- a/installers/helm/osm/templates/mysql/mysql-statefulset.yaml +++ b/installers/helm/osm/templates/mysql/mysql-statefulset.yaml @@ -49,7 +49,7 @@ spec: # readOnlyRootFilesystem: true allowPrivilegeEscalation: false # runAsNonRoot: true - image: mysql:5 + image: mysql:8.0.34 imagePullPolicy: {{ .Values.global.image.pullPolicy }} ports: - containerPort: 3306 -- 2.25.1