-
Notifications
You must be signed in to change notification settings - Fork 35
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
[tlse] TLS database connection #331
[tlse] TLS database connection #331
Conversation
Build failed (check pipeline). Post https://review.rdoproject.org/zuul/buildset/1f54dd75ccae4fb8a111ac316509f770 ✔️ openstack-k8s-operators-content-provider SUCCESS in 2h 11m 54s |
There is an error in the operator with the current changes while trying to run aodh:
|
customData := map[string]string{common.CustomServiceConfigFileName: instance.Spec.Aodh.CustomServiceConfig} | ||
|
||
// the aodh controller currently creates the db with the user | ||
db, err := mariadbv1.GetDatabaseByName(ctx, h, instance.Spec.Aodh.DatabaseUser) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suspect that this should be instance.Spec.Aodh.DatabaseName
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this was intentional as DatabaseUser is also used in https://github.com/openstack-k8s-operators/telemetry-operator/blob/main/controllers/aodh_controller.go#L159 . will have a look in a bit. I guess the issue is that the Database is created in a different controller.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we are not consistent on how the database is called, I have submitted some changes to use DatabaseUser as the database name everywhere
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@stuggi The split between autoscaling_controller.go and aodh_controller.go doesn't mean anything, its one controller split into 2 files. The reason is, that historically the autoscaling controller was a lot bigger (it included parts of the current metric storage controller).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After discussing with @vyzigold, we realized that the databasename should be fixed, and the issue is to call it as DatabaseUser. This has been fixed now and everywhere it is referred to by the constant autoscaling.DatabaseName
c1998f6
to
58fbe55
Compare
I missed to relocate the DB creation. we need to create the DB before the config gets rendered |
Build failed (check pipeline). Post https://review.rdoproject.org/zuul/buildset/5f5d47b08af847a88991665fb7224e7e ❌ openstack-k8s-operators-content-provider FAILURE in 22m 13s |
recheck |
Build failed (check pipeline). Post https://review.rdoproject.org/zuul/buildset/5ff5bda50b6d4e07b835e27207980586 ✔️ openstack-k8s-operators-content-provider SUCCESS in 1h 59m 30s |
There is something wrong with reconciliation, it never seems to end:
|
the dbName had the wrong label. changed it in my last update. lets see |
Build failed (check pipeline). Post https://review.rdoproject.org/zuul/buildset/285636c1a12549e08066d375c181073b ❌ openstack-k8s-operators-content-provider RETRY_LIMIT in 31m 11s |
recheck |
Build failed (check pipeline). Post https://review.rdoproject.org/zuul/buildset/382b384dfb114029a25750cf4bf7e2b9 ❌ openstack-k8s-operators-content-provider TIMED_OUT in 31m 17s |
/unhold |
Build failed (check pipeline). Post https://review.rdoproject.org/zuul/buildset/31cb6ddfefb4439aa8b5a19d2442d4e7 ✔️ openstack-k8s-operators-content-provider SUCCESS in 1h 56m 52s |
The my.cnf file gets added to the secret holding the service configs. The content of my.cnf is centrally managed in the mariadb-operator and retrieved calling db.GetDatabaseClientConfig(tlsCfg) Depends-On: openstack-k8s-operators/mariadb-operator#190 Depends-On: openstack-k8s-operators/mariadb-operator#191 Jira: OSPRH-4547
Build failed (check pipeline). Post https://review.rdoproject.org/zuul/buildset/e2b696addf0041edb8b19b750498622d ✔️ openstack-k8s-operators-content-provider SUCCESS in 1h 29m 49s |
recheck |
Build failed (check pipeline). Post https://review.rdoproject.org/zuul/buildset/78b9731f24f2401c8aedb06fddb22baf ❌ openstack-k8s-operators-content-provider FAILURE in 19m 55s |
recheck |
1 similar comment
recheck |
|
/test telemetry-operator-build-deploy-kuttl |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: jlarriba, stuggi 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 |
5590312
into
openstack-k8s-operators:main
The my.cnf file gets added to the secret holding the service configs. The content of my.cnf is centrally managed in the mariadb-operator and retrieved calling db.GetDatabaseClientConfig(tlsCfg)
Depends-On: openstack-k8s-operators/mariadb-operator#190
Depends-On: openstack-k8s-operators/mariadb-operator#191
Jira: OSPRH-4547