[MARIADB] Update mariadb image and operator versions 13/140913/18
authorAndreas Geissler <andreas-geissler@telekom.de>
Mon, 19 May 2025 14:57:28 +0000 (16:57 +0200)
committerAndreas Geissler <andreas-geissler@telekom.de>
Fri, 23 May 2025 12:17:33 +0000 (14:17 +0200)
- change version to mariadb:11.7.2
- change client from mysql to mariadb
- update mariadb-operator version to 0.38.1
- cleanup so-mariadb DB settings

Issue-ID: OOM-3335

Change-Id: I8a6026c73baf3bc700c115aa295e33f2806da371
Signed-off-by: Andreas Geissler <andreas-geissler@telekom.de>
24 files changed:
docs/sections/guides/infra_guides/oom_infra_deployment_requirements.rst
kubernetes/cds/Chart.yaml
kubernetes/common/mariadb-galera/Chart.yaml
kubernetes/common/mariadb-galera/values.yaml
kubernetes/common/mariadb-init/Chart.yaml
kubernetes/common/mariadb-init/resources/config/db_init.sh
kubernetes/common/mariadb-init/tests/configmap_test.yaml
kubernetes/common/repositoryGenerator/Chart.yaml
kubernetes/common/repositoryGenerator/values.yaml
kubernetes/onap/Chart.yaml
kubernetes/onap/values.yaml
kubernetes/sdnc/Chart.yaml
kubernetes/sdnc/components/network-name-gen/Chart.yaml
kubernetes/so/Chart.yaml
kubernetes/so/components/so-mariadb/Chart.yaml
kubernetes/so/components/so-mariadb/resources/config/docker-entrypoint-initdb.d/01-create-camundabpmn.sh
kubernetes/so/components/so-mariadb/resources/config/docker-entrypoint-initdb.d/02-create-requestdb.sh
kubernetes/so/components/so-mariadb/resources/config/docker-entrypoint-initdb.d/03-create-catalogdb.sh
kubernetes/so/components/so-mariadb/resources/config/docker-entrypoint-initdb.d/04-create-nfvo-db.sh
kubernetes/so/components/so-mariadb/resources/config/docker-entrypoint-initdb.d/05-create-cnfm-db.sh
kubernetes/so/components/so-mariadb/resources/config/docker-entrypoint-initdb.d/98-create-so-user.sh
kubernetes/so/components/so-mariadb/resources/config/docker-entrypoint-initdb.d/99-create-so-admin.sh
kubernetes/so/components/so-mariadb/templates/job.yaml
kubernetes/so/components/so-mariadb/values.yaml

index c06871b..0de1775 100644 (file)
@@ -52,7 +52,7 @@ The versions of software that are supported and tested by OOM are as follows:
   ==============     ===========  =======  ========  ========  =============  ========
   New Delhi          1.28.6       3.13.1   1.28.x    20.10.x   1.14.4         0.41.0
   Oslo               1.28.6       3.13.1   1.30.x    23.0.x    1.16.2         0.44.0
-  Paris              1.28.6       3.13.1   1.30.x    23.0.x    1.16.2         0.44.0
+  Paris              1.30.4       3.16.4   1.30.x    23.0.x    1.17.2         0.45.0
   ==============     ===========  =======  ========  ========  =============  ========
 
 .. table:: OOM Software Requirements (production)
@@ -62,7 +62,7 @@ The versions of software that are supported and tested by OOM are as follows:
   ==============     ======  ============ ==============
   New Delhi          1.21.0  v1.0.0       22.0.4
   Oslo               1.24.1  v1.2.1       26.0.6
-  Paris              1.24.1  v1.2.1       26.0.6
+  Paris              1.25.2  v1.2.1       26.0.6
   ==============     ======  ============ ==============
 
 .. table:: OOM Software Requirements (optional)
@@ -72,5 +72,5 @@ The versions of software that are supported and tested by OOM are as follows:
   ==============     =========== ========== =========== ============ ===========
   New Delhi          45.x        1.16.0     0.28.1      -            -
   Oslo               45.x        1.20.2     0.36.0      5.7.2        1.18.0
-  Paris              45.x        1.20.2     0.37.1      5.7.2        1.18.0
+  Paris              71.x        1.21.2     0.38.1      5.7.2        1.19.1
   ==============     =========== ========== =========== ============ ===========
index f179afd..1353916 100644 (file)
 apiVersion: v2
 description: ONAP Controller Design Studio (CDS)
 name: cds
-version: 13.0.3
+version: 16.0.0
 
 dependencies:
   - name: common
     version: ~13.x-0
     repository: '@local'
   - name: mariadb-galera
-    version: ~13.x-0
+    version: ~16.x-0
     repository: '@local'
     condition: global.mariadbGalera.localCluster
   - name: cds-blueprints-processor
index c5cfdd7..5efb36b 100644 (file)
@@ -18,7 +18,7 @@
 apiVersion: v2
 description: Chart for MariaDB Galera cluster
 name: mariadb-galera
-version: 13.2.4
+version: 16.0.0
 keywords:
   - mariadb
   - mysql
index e1d650f..c7ec8b2 100644 (file)
@@ -57,16 +57,16 @@ secrets:
 
 mariadbOperator:
   image: mariadb
-  appVersion: 11.4.4
+  appVersion: 11.7.2
   persistence:
     #storageClassName: default
     size: 3Gi
   galera:
     enabled: true
     agentImage: mariadb-operator/mariadb-operator
-    agentVersion: 0.37.1
+    agentVersion: 0.38.1
     initImage: mariadb-operator/mariadb-operator
-    initVersion: 0.37.1
+    initVersion: 0.38.1
 
 ## String to partially override common.names.fullname template (will maintain the release name)
 ##
index 5c29010..f1acef6 100644 (file)
@@ -18,7 +18,7 @@
 apiVersion: v2
 description: Chart for MariaDB Galera init job
 name: mariadb-init
-version: 13.0.5
+version: 16.0.0
 
 dependencies:
   - name: common
index 8f7e7ce..f55da7a 100755 (executable)
@@ -36,9 +36,9 @@ while read DB ; do
 
     echo "Creating database ${DB} and user ${USER}..."
 
-    mysql $MYSQL_OPTS -e "CREATE OR REPLACE USER '${USER}'@'%' IDENTIFIED BY '${PASS}'"
-    mysql $MYSQL_OPTS -e "CREATE DATABASE IF NOT EXISTS ${DB}"
-    mysql $MYSQL_OPTS -e "GRANT ALL PRIVILEGES ON ${DB}.* TO '${USER}'@'%'"
+    mariadb $MYSQL_OPTS -e "CREATE OR REPLACE USER '${USER}'@'%' IDENTIFIED BY '${PASS}'"
+    mariadb $MYSQL_OPTS -e "CREATE DATABASE IF NOT EXISTS ${DB}"
+    mariadb $MYSQL_OPTS -e "GRANT ALL PRIVILEGES ON ${DB}.* TO '${USER}'@'%'"
 
     echo "Created database ${DB} and user ${USER}."
 done <<EOF
index 34914cd..681d173 100644 (file)
@@ -37,7 +37,7 @@ tests:
 
               echo "Creating database ynsaUCru6mUNwGal and user u5WZ1GMSIS1wHZF..."
 
-              mysql -h ${DB_HOST} -P ${DB_PORT} -uroot -p$MYSQL_ROOT_PASSWORD << 'EOF' || exit 1
+              mariadb -h ${DB_HOST} -P ${DB_PORT} -uroot -p$MYSQL_ROOT_PASSWORD << 'EOF' || exit 1
               CREATE OR REPLACE USER 'u5WZ1GMSIS1wHZF'@'localhost' IDENTIFIED BY '${MYSQL_PASSWORD}';
               CREATE OR REPLACE USER 'u5WZ1GMSIS1wHZF'@'%' IDENTIFIED BY '${MYSQL_PASSWORD}';
               CREATE DATABASE IF NOT EXISTS ynsaUCru6mUNwGal;
@@ -80,7 +80,7 @@ tests:
 
               echo "Creating database testDB and user testUser..."
 
-              mysql -h ${DB_HOST} -P ${DB_PORT} -uroot -p$MYSQL_ROOT_PASSWORD << 'EOF' || exit 1
+              mariadb -h ${DB_HOST} -P ${DB_PORT} -uroot -p$MYSQL_ROOT_PASSWORD << 'EOF' || exit 1
               CREATE OR REPLACE USER 'testUser'@'localhost' IDENTIFIED BY '${MYSQL_PASSWORD}';
               CREATE OR REPLACE USER 'testUser'@'%' IDENTIFIED BY '${MYSQL_PASSWORD}';
               CREATE DATABASE IF NOT EXISTS testDB;
@@ -92,7 +92,7 @@ tests:
 
               echo "Creating database dbOne and user one..."
 
-              mysql -h ${DB_HOST} -P ${DB_PORT} -uroot -p$MYSQL_ROOT_PASSWORD << 'EOF' || exit 1
+              mariadb -h ${DB_HOST} -P ${DB_PORT} -uroot -p$MYSQL_ROOT_PASSWORD << 'EOF' || exit 1
               CREATE OR REPLACE USER 'one'@'localhost' IDENTIFIED BY '${MYSQL_PASSWORD_DBONE}';
               CREATE OR REPLACE USER 'one'@'%' IDENTIFIED BY '${MYSQL_PASSWORD_DBONE}';
               CREATE DATABASE IF NOT EXISTS dbOne;
@@ -103,7 +103,7 @@ tests:
               echo "Created database dbOne and user one."
               echo "Creating database dbTwo and user two..."
 
-              mysql -h ${DB_HOST} -P ${DB_PORT} -uroot -p$MYSQL_ROOT_PASSWORD << 'EOF' || exit 1
+              mariadb -h ${DB_HOST} -P ${DB_PORT} -uroot -p$MYSQL_ROOT_PASSWORD << 'EOF' || exit 1
               CREATE OR REPLACE USER 'two'@'localhost' IDENTIFIED BY '${MYSQL_PASSWORD_DBTWO}';
               CREATE OR REPLACE USER 'two'@'%' IDENTIFIED BY '${MYSQL_PASSWORD_DBTWO}';
               CREATE DATABASE IF NOT EXISTS dbTwo;
index 949a444..3e8957e 100644 (file)
@@ -16,4 +16,4 @@
 apiVersion: v2
 description: Template used to generate the right repository link
 name: repositoryGenerator
-version: 13.0.1
+version: 13.0.2
index 9916d71..ffdc684 100644 (file)
@@ -37,7 +37,7 @@ global:
   jreImage: onap/integration-java11:10.0.0
   kubectlImage: bitnami/kubectl:1.22.4
   loggingImage: beats/filebeat:5.5.0
-  mariadbImage: bitnami/mariadb:10.5.8
+  mariadbImage: mariadb:11.7.2
   mongodbImage: percona/percona-server-mongodb:7.0.5-3
   nginxImage: bitnami/nginx:1.21.4
   postgresImage: crunchydata/crunchy-postgres:centos8-13.2-4.6.1
index 2bae04b..1d6e566 100644 (file)
@@ -38,7 +38,7 @@ dependencies:
     repository: '@local'
     condition: cassandra.enabled
   - name: cds
-    version: ~13.x-0
+    version: ~16.x-0
     repository: '@local'
     condition: cds.enabled
   - name: common
@@ -53,7 +53,7 @@ dependencies:
     repository: '@local'
     condition: dcaegen2-services.enabled
   - name: mariadb-galera
-    version: ~13.x-0
+    version: ~16.x-0
     repository: '@local'
     condition: mariadb-galera.enabled
   - name: multicloud
@@ -84,11 +84,11 @@ dependencies:
     repository: '@local'
     condition: sdc.enabled
   - name: sdnc
-    version: ~15.x-0
+    version: ~16.x-0
     repository: '@local'
     condition: sdnc.enabled
   - name: so
-    version: ~15.x-0
+    version: ~16.x-0
     repository: '@local'
     condition: so.enabled
   - name: strimzi
index 206cec8..b7cc78f 100755 (executable)
@@ -95,7 +95,7 @@ global:
   loggingImage: beats/filebeat:5.5.0
 
   # mariadb client image
-  mariadbImage: bitnami/mariadb:10.5.8
+  mariadbImage: mariadb:11.7.2
 
   # mongodb server image
   mongodbImage: percona/percona-server-mongodb:7.0.16-10
index 02a3681..87654cb 100644 (file)
@@ -18,7 +18,7 @@
 apiVersion: v2
 description: SDN Controller
 name: sdnc
-version: 15.1.1
+version: 16.0.0
 
 dependencies:
   - name: common
@@ -31,7 +31,7 @@ dependencies:
     version: ~13.x-0
     repository: '@local'
   - name: network-name-gen
-    version: ~13.x-0
+    version: ~16.x-0
     repository: '@local'
     condition: network-name-gen.enabled
   - name: dgbuilder
@@ -43,7 +43,7 @@ dependencies:
     repository: '@local'
     condition: config.geoEnabled
   - name: mariadb-galera
-    version: ~13.x-0
+    version: ~16.x-0
     repository: '@local'
     condition: global.mariadbGalera.localCluster
   - name: elasticsearch
index e998a64..8484b1c 100644 (file)
@@ -17,7 +17,7 @@
 apiVersion: v2\r
 description: Name Generation Micro Service\r
 name: network-name-gen\r
-version: 13.0.0\r
+version: 16.0.0\r
 \r
 dependencies:\r
   - name: common\r
@@ -27,7 +27,7 @@ dependencies:
     version: ~13.x-0\r
     repository: '@local'\r
   - name: mariadb-init\r
-    version: ~13.x-0\r
+    version: ~16.x-0\r
     repository: '@local'\r
   - name: serviceAccount\r
     version: ~13.x-0\r
index 9fd867c..d643491 100755 (executable)
@@ -17,7 +17,7 @@
 apiVersion: v2
 description: ONAP Service Orchestrator
 name: so
-version: 15.1.0
+version: 16.0.0
 
 dependencies:
   - name: common
@@ -30,7 +30,7 @@ dependencies:
     version: ~13.x-0
     repository: '@local'
   - name: mariadb-galera
-    version: ~13.x-0
+    version: ~16.x-0
     repository: '@local'
     condition: global.mariadbGalera.localCluster
   - name: repositoryGenerator
@@ -67,7 +67,7 @@ dependencies:
     repository: 'file://components/so-etsi-sol003-adapter'
     condition: so-etsi-sol003-adapter.enabled
   - name: so-mariadb
-    version: ~13.x-0
+    version: ~16.x-0
     repository: 'file://components/so-mariadb'
   - name: so-nssmf-adapter
     version: ~13.x-0
index fb138b6..3d229b8 100755 (executable)
@@ -16,7 +16,7 @@
 apiVersion: v2
 description: MariaDB Service
 name: so-mariadb
-version: 13.0.1
+version: 16.0.0
 
 dependencies:
   - name: common
index 1a78253..73c120a 100755 (executable)
@@ -26,7 +26,7 @@
 
 echo "Creating camundabpmn database . . ." 1>/tmp/mariadb-camundabpmn.log 2>&1
 
-mysql -uroot -p$MYSQL_ROOT_PASSWORD << EOF || exit 1
+mysqlcmd -uroot -p$MYSQL_ROOT_PASSWORD << EOF || exit 1
 DROP DATABASE IF EXISTS camundabpmn;
 CREATE DATABASE camundabpmn;
 DROP USER IF EXISTS '${CAMUNDA_DB_USER}';
@@ -37,7 +37,7 @@ EOF
 
 cd /docker-entrypoint-initdb.d/db-sql-scripts
 
-mysql -uroot -p$MYSQL_ROOT_PASSWORD -f < mariadb_engine_7.14.0.sql || exit 1
-mysql -uroot -p$MYSQL_ROOT_PASSWORD -f < mariadb_identity_7.14.0.sql || exit 1
+mysqlcmd -uroot -p$MYSQL_ROOT_PASSWORD -f < mariadb_engine_7.14.0.sql || exit 1
+mysqlcmd -uroot -p$MYSQL_ROOT_PASSWORD -f < mariadb_identity_7.14.0.sql || exit 1
 
 echo "Created camundabpmn database . . ." 1>>/tmp/mariadb-camundabpmn.log 2>&1
index 4c2d668..ae9a23d 100755 (executable)
@@ -25,7 +25,7 @@
 
 echo "Creating requestdb database . . ." 1>/tmp/mariadb-requestdb.log 2>&1
 
-mysql -uroot -p$MYSQL_ROOT_PASSWORD << EOF || exit 1
+mysqlcmd -uroot -p$MYSQL_ROOT_PASSWORD << EOF || exit 1
 DROP DATABASE IF EXISTS requestdb;
 CREATE DATABASE /*!32312 IF NOT EXISTS*/ requestdb /*!40100 DEFAULT CHARACTER SET latin1 */;
 DROP USER IF EXISTS '${REQUEST_DB_USER}';
index dd374d4..2f2aec8 100755 (executable)
@@ -25,7 +25,7 @@
 
 echo "Creating catalogdb database . . ." 1>/tmp/mariadb-catalogdb.log 2>&1
 
-mysql -uroot -p$MYSQL_ROOT_PASSWORD << EOF || exit 1
+mysqlcmd -uroot -p$MYSQL_ROOT_PASSWORD << EOF || exit 1
 DROP DATABASE IF EXISTS catalogdb;
 CREATE DATABASE /*!32312 IF NOT EXISTS*/ catalogdb /*!40100 DEFAULT CHARACTER SET latin1 */;
 DROP USER IF EXISTS '${CATALOG_DB_USER}';
index db6fd22..410be6c 100755 (executable)
@@ -28,7 +28,7 @@ prepare_password()
 
 NFVO_DB_PASSWORD=`prepare_password $NFVO_DB_PASSWORD`
 
-mysql -uroot -p$MYSQL_ROOT_PASSWORD << EOF || exit 1
+mysqlcmd -uroot -p$MYSQL_ROOT_PASSWORD << EOF || exit 1
 CREATE DATABASE /*!32312 IF NOT EXISTS*/ nfvo /*!40100 DEFAULT CHARACTER SET latin1 */;
 DROP USER IF EXISTS '${NFVO_DB_USER}';
 CREATE USER '${NFVO_DB_USER}';
index cb343bc..84ff14d 100644 (file)
@@ -28,7 +28,7 @@ prepare_password()
 
 CNFM_DB_PASSWORD=`prepare_password $CNFM_DB_PASSWORD`
 
-mysql -uroot -p$MYSQL_ROOT_PASSWORD << EOF || exit 1
+mysqlcmd -uroot -p$MYSQL_ROOT_PASSWORD << EOF || exit 1
 CREATE DATABASE /*!32312 IF NOT EXISTS*/ cnfm /*!40100 DEFAULT CHARACTER SET latin1 */;
 DROP USER IF EXISTS '${CNFM_DB_USER}';
 CREATE USER '${CNFM_DB_USER}';
index bf8ae78..8086dd6 100755 (executable)
@@ -33,7 +33,7 @@ prepare_password()
 
 DB_PASSWORD=`prepare_password $DB_PASSWORD`
 
-mysql -uroot -p$MYSQL_ROOT_PASSWORD << EOF || exit 1
+mysqlcmd -uroot -p$MYSQL_ROOT_PASSWORD << EOF || exit 1
 DROP USER IF EXISTS '${DB_USER}';
 CREATE USER '${DB_USER}';
 GRANT USAGE ON *.* TO '${DB_USER}'@'%' IDENTIFIED BY '${DB_PASSWORD}';
index 74b869c..d4ffb1f 100755 (executable)
@@ -33,7 +33,7 @@ prepare_password()
 
 DB_ADMIN_PASSWORD=`prepare_password $DB_ADMIN_PASSWORD`
 
-mysql -uroot -p$MYSQL_ROOT_PASSWORD << EOF || exit 1
+mysqlcmd -uroot -p$MYSQL_ROOT_PASSWORD << EOF || exit 1
 DROP USER IF EXISTS '${DB_ADMIN}';
 CREATE USER '${DB_ADMIN}';
 GRANT USAGE ON *.* TO '${DB_ADMIN}'@'%' IDENTIFIED BY '${DB_ADMIN_PASSWORD}';
index c075c69..d87faf9 100644 (file)
@@ -95,7 +95,7 @@ spec:
       initContainers: {{ include "common.readinessCheck.waitFor" . | nindent 6 }}
       containers:
       - name: {{ include "common.name" . }}-config
-        image: {{ include "repositoryGenerator.repository" . }}/{{ .Values.image }}
+        image: {{ include "repositoryGenerator.image.mariadb" . }}
         imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
         command:
         - /bin/bash
@@ -103,12 +103,12 @@ spec:
         - >
           {{- if include "common.onServiceMesh" . }}
           echo "waiting 15s for istio side cars to be up"; sleep 15s;{{- end }}
-          mysql() { /usr/bin/mysql  -h ${DB_HOST} -P ${DB_PORT} "$@"; };
-          export -f mysql;
-          mysql --user=root --password=${MYSQL_ROOT_PASSWORD} requestdb -e exit > /dev/null 2>&1 {{ if not .Values.global.migration.enabled }} && echo "Database already initialized!!!" && exit 0 {{ end }};
-          for f in /docker-entrypoint-initdb.d/*; do case "$f" in  *.sh) echo "$0: running $f"; . "$f" ;;  *.sql) echo "$0: running $f"; "${mysql[@]}" < "$f"; echo ;; *.sql.gz) echo "$0: running $f"; gunzip -c "$f" | "${mysql[@]}"; echo ;;  *) echo "$0: ignoring $f" ;;  esac; echo; done;
+          mysqlcmd() { mariadb  -h ${DB_HOST} -P ${DB_PORT} "$@"; };
+          export -f mysqlcmd;
+          mysqlcmd --user=root --password=${MYSQL_ROOT_PASSWORD} requestdb -e exit > /dev/null 2>&1 {{ if not .Values.global.migration.enabled }} && echo "Database already initialized!!!" && exit 0 {{ end }};
+          for f in /docker-entrypoint-initdb.d/*; do case "$f" in  *.sh) echo "$0: running $f"; . "$f" ;;  *.sql) echo "$0: running $f"; "${mysqlcmd[@]}" < "$f"; echo ;; *.sql.gz) echo "$0: running $f"; gunzip -c "$f" | "${mysqlcmd[@]}"; echo ;;  *) echo "$0: ignoring $f" ;;  esac; echo; done;
           {{- if .Values.global.migration.enabled }}
-          mysql -vv --user=root --password=${MYSQL_ROOT_PASSWORD} < `ls -tr /var/data/mariadb/* | tail -1`;
+          mysqlcmd -vv --user=root --password=${MYSQL_ROOT_PASSWORD} < `ls -tr /var/data/mariadb/* | tail -1`;
           {{- end }}
         env:
         - name: DB_HOST
index d084b39..a2cf93c 100755 (executable)
@@ -22,7 +22,7 @@ global:
   nodePortPrefix: 302
   nodePortPrefixExt: 304
   repository: nexus3.onap.org:10001
-  readinessImage: onap/oom/readiness:6.1.2
+  readinessImage: onap/oom/readiness:6.2.0
   ubuntuInitRepository: docker.io
   mariadbGalera:
     # flag to enable the DB creation via mariadb-operator
@@ -97,11 +97,7 @@ secrets:
 #################################################################
 # Application configuration defaults.
 #################################################################
-# application image
-repository: nexus3.onap.org:10001
-image: mariadb:10.1.38
 pullPolicy: Always
-ubuntuInitImage: oomk8s/ubuntu-init:2.0.0
 
 # Local mariadb galera instance default name
 mariadb-galera: