-
Notifications
You must be signed in to change notification settings - Fork 26
[MISC] Conditional password #604
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||
---|---|---|---|---|
|
@@ -21,9 +21,11 @@ log: | |||
restapi: | ||||
listen: '{{ self_ip }}:8008' | ||||
connect_address: '{{ self_ip }}:8008' | ||||
{%- if patroni_password %} | ||||
authentication: | ||||
username: patroni | ||||
password: {{ patroni_password }} | ||||
{%- endif %} | ||||
Comment on lines
+24
to
+28
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If the leader elected executes after the template is rendered we'll be stuck with There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can this happen in wild? What is our answer there? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't think so, but when we add rotation (DPE-5270) we should switch to SIGHUPing the service instead of reloading via REST. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Basic question: At which point during charm execution the patroni template is rendered? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 2 @lucasgameiroborges good to have this answer in https://charmhub.io/postgresql-k8s/docs/e-flowchart-charm for VM charm :-D There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
I don't think there's a set order, especially during charm's bootstrap. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I might ask @marceloneppel once hes back, might be good to have this clear and documented somewhere (maybe on the diagrams!) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I believe that the issue might be happening at postgresql-operator/src/upgrade.py Line 149 in 5f546f1
The changes from this PR LGTM. |
||||
{%- if enable_tls %} | ||||
cafile: {{ conf_path }}/ca.pem | ||||
certfile: {{ conf_path }}/cert.pem | ||||
|
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.
Looks like the 503 errors were API related not RAFT related.