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

Adding support for SQL Stream Builder deployment #48

Merged
merged 2 commits into from
Apr 29, 2022

Conversation

asdaraujo
Copy link
Contributor

No description provided.

name: ssb_admin
user: ssb_admin
password: "{{ database_default_password }}"
SQL_STREAM_BUILDER_MVE:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is any magic required to make this DB get provisioned? I had a feeling that this is a list of services rather than a list of databases.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a list of databases. There was no additional magic required. Just added the db here and it got created correctly.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm surprised because here: https://github.com/cloudera-labs/cloudera.cluster/blob/main/roles/deployment/databases/tasks/mariadb.yml#L17 it's iterating through the databases using the list of services as a key. I'm struggling tos ee how SQL_STREAM_BUILDER_MVE would ever get created.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mmm... that's a good point, @tmgstevens . Let me review/retest this.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tmgstevens I've reviewed this and I believe there's no need for the MariaDB and PostgreSQL db creation role to filter the list of databases by the service names ({{ databases | intersect(services) }}). Removing that subtraction appears to be harmless to me and makes it more flexible, since you can specify multiple databases per service if needed, which is the case of SSB.

I've made the change and re-tested it and the database is now being created successfully and I haven't seen any collateral effects so far.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would the side effect of this be that all database get created now, regardless of whether they are being used, due to the way that the config merge happens>=?

Signed-off-by: Andre Araujo <araujo@cloudera.com>
Signed-off-by: Andre Araujo <araujo@cloudera.com>
@wmudge wmudge added the enhancement New feature or request label Mar 31, 2022
@wmudge wmudge requested a review from tmgstevens March 31, 2022 21:27
@asdaraujo
Copy link
Contributor Author

@tmgstevens @wmudge Anything pending here?

@tmgstevens
Copy link
Contributor

One comment above

@tmgstevens tmgstevens merged commit e87bd1e into cloudera-labs:devel Apr 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

Successfully merging this pull request may close these issues.

3 participants