Skip to content

feat: use MariaDB operator for creating OpenStack oslo db connection string #698

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

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

cardoe
Copy link
Contributor

@cardoe cardoe commented Feb 19, 2025

Rather than having to pass around the DB password in plain text to OpenStack Helm, let the MariaDB operator create a file snippet that contains the properly formatted db connection string for oslo.config to use and let each of our services load it.

Blocked until the following changes are merged and our chart is updated to a new enough version to have it:

Generate and inject the database connection info via a secret generated
by the MariaDB operator to create a connection string that matches what
oslo.config reads.

Unfortunately OpenStack Helm doesn't always respect the mount for the
db_sync job so this won't work until that's fixed upstream and we bump
to releases with those fixes for all the services.
Since we're now using the MariaDB operator to generate the DB
connection, we don't need to have this generated by OpenStack Helm. So
that means we don't need to inject the passwords in via plain text since
OpenStack Helm does not support passing secrets by reference. Instead we
are using the db connection snippet of the prior commit.

Keystone and Placement currently do not support mounting the DB
connection snippet for the db_sync job currently so we must wait until
that is fixed upstream and we bump to a new enough version.

Placement fix: https://review.opendev.org/c/openstack/openstack-helm/+/942131
@cardoe cardoe force-pushed the mariadb-connections branch from 10d8272 to 641b51c Compare February 19, 2025 21:35
@cardoe
Copy link
Contributor Author

cardoe commented Feb 19, 2025

Based on upstream feedback, https://review.opendev.org/c/openstack/openstack-helm-infra/+/942294 will do it generically for all charts using the db-sync job.

This isn't necessarily complete because there are other pods that have the config mounted and we'll need to see if those need the database credentials and then make sure to get that loaded into those pods. There might be more fixed needed upstream to get the loading working.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant