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

Always name database "cinder" #399

Merged
merged 1 commit into from
Jun 12, 2024

Conversation

Akrog
Copy link
Contributor

@Akrog Akrog commented Jun 12, 2024

Current code names the database for cinder based on the Cinder CR name, and this is ok if the instance is called cinder, but if the name is something like "mycloud-cinder" then the database creation doesn't work as it fails with:

  ERROR 1064 (42000) at line 1: You have an error in your SQL syntax;
  check the manual that corresponds to your MariaDB server version for
  the right syntax to use near '-cinder' at line 1

We have a constant called DatabaseName that contains the name that we should be using for the database creation, and this patch uses it.

Jira: OSPRH-7396

Current code names the database for cinder based on the Cinder CR name,
and this is ok if the instance is called cinder, but if the name is
something like "mycloud-cinder" then the database creation doesn't work
as it fails with:

  ERROR 1064 (42000) at line 1: You have an error in your SQL syntax;
  check the manual that corresponds to your MariaDB server version for
  the right syntax to use near '-cinder' at line 1

We have a constant called `DatabaseName` that contains the name that we
should be using for the database creation, and this patch uses it.

Jira: OSPRH-7396
@openshift-ci openshift-ci bot requested review from abays and olliewalsh June 12, 2024 14:48
Copy link
Contributor

openshift-ci bot commented Jun 12, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Akrog

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@fmount
Copy link
Contributor

fmount commented Jun 12, 2024

/lgtm

@openshift-ci openshift-ci bot added the lgtm label Jun 12, 2024
@openshift-merge-bot openshift-merge-bot bot merged commit 604036e into openstack-k8s-operators:main Jun 12, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants