Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[cinder][pxc-db] Add support for PXC galera cluster: part 1 #7642

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 8 additions & 5 deletions openstack/cinder/Chart.lock
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
dependencies:
- name: utils
repository: oci://keppel.eu-de-1.cloud.sap/ccloud-helm
version: 0.18.4
version: 0.22.1
- name: mariadb
repository: oci://keppel.eu-de-1.cloud.sap/ccloud-helm
version: 0.14.2
- name: pxc-db
repository: oci://keppel.eu-de-1.cloud.sap/ccloud-helm
version: 0.2.13
- name: mysql_metrics
repository: oci://keppel.eu-de-1.cloud.sap/ccloud-helm
version: 0.3.5
version: 0.4.2
- name: memcached
repository: oci://keppel.eu-de-1.cloud.sap/ccloud-helm
version: 0.5.3
Expand All @@ -22,6 +25,6 @@ dependencies:
version: 1.0.0
- name: linkerd-support
repository: oci://keppel.eu-de-1.cloud.sap/ccloud-helm
version: 1.0.0
digest: sha256:49c61b998768421d8cdd026a0c886ec850bfcdc9ed89204f64c812470605b17b
generated: "2024-09-27T14:13:49.162697106+02:00"
version: 1.1.0
digest: sha256:5cbad9ed0100100c160d25f00645a796f761dedaa3b62b953b442455c49ce864
generated: "2025-02-14T18:31:05.45834+02:00"
16 changes: 11 additions & 5 deletions openstack/cinder/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,19 +1,25 @@
---
apiVersion: v2
description: A Helm chart for Kubernetes
icon: https://www.openstack.org/themes/openstack/images/project-mascots/Cinder/OpenStack_Project_Cinder_mascot.png
name: cinder
version: 0.2.1
version: 0.3.0
dependencies:
- name: utils
repository: oci://keppel.eu-de-1.cloud.sap/ccloud-helm
version: ~0.18.4
- name: mariadb
version: 0.22.1
- condition: mariadb.enabled
name: mariadb
repository: oci://keppel.eu-de-1.cloud.sap/ccloud-helm
version: 0.14.2
condition: mariadb.enabled
- condition: pxc_db.enabled
name: pxc-db
alias: pxc_db
repository: oci://keppel.eu-de-1.cloud.sap/ccloud-helm
version: 0.2.13
- name: mysql_metrics
repository: oci://keppel.eu-de-1.cloud.sap/ccloud-helm
version: 0.3.5
version: 0.4.2
condition: mariadb.enabled
- name: memcached
repository: oci://keppel.eu-de-1.cloud.sap/ccloud-helm
Expand Down
28 changes: 27 additions & 1 deletion openstack/cinder/ci/test-values.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
---
global:
accessControlAllowOrigin: '*'
region: regionOne
domain: evil.corp
registry: keppel.regionOne.cloud
registryAlternateRegion: other.docker.registry
dockerHubMirror: myRegistry/dockerhub
dockerHubMirrorAlternateRegion: myRegistry/dockerhubalternate
tld: regionOne.cloud
domain_seeds:
skip_hcm_domain: false

cinder_service_password: topSecret
availability_zones:
- foo
Expand All @@ -29,6 +31,30 @@ mariadb:
name: cinder
password: password

pxc_db:
enabled: true
users:
cinder:
password: topSecret!
system_users:
root:
password: topSecret!
xtrabackup:
password: topSecret!
monitor:
password: topSecret!
proxyadmin:
password: topSecret!
operator:
password: topSecret!
replication:
password: topSecret!
backup:
s3:
secrets:
aws_access_key_id: topSecret!
aws_secret_access_key: topSecret!

rabbitmq:
users:
admin:
Expand Down
37 changes: 35 additions & 2 deletions openstack/cinder/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ global:
dbUser: cinder
domain_seeds:
skip_hcm_domain: false

linkerd_requested: true
osprofiler: {}
imagePullPolicy: IfNotPresent
Expand Down Expand Up @@ -139,6 +139,39 @@ mariadb:
alerts:
support_group: compute-storage-api

pxc_db:
enabled: false
name: cinder
initdb_job: true
alerts:
support_group: compute-storage-api
ccroot_user:
enabled: true
databases:
- cinder
users:
cinder:
name: cinder
grants:
- "ALL PRIVILEGES on cinder.*"
pxc:
configuration:
options:
max_connections: "2048"
innodb_buffer_pool_size: "2048M"
innodb_log_file_size: "512M"
connect_timeout: "15"
persistence:
size: 10Gi
backup:
enabled: true
s3:
secrets:
aws_access_key_id: null
aws_secret_access_key: null
pitr:
enabled: true

max_pool_size: 15
max_overflow: 5

Expand Down Expand Up @@ -327,7 +360,7 @@ rabbitmq:
sidecar:
enabled: false
enableDetailedMetrics: true
enablePerObjectMetrics: true
enablePerObjectMetrics: true
rabbitmq_notifications:
name: cinder
logging:
Expand Down