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

[DPE-2406] Fix pod deletion #134

Merged
merged 2 commits into from
Aug 22, 2023
Merged

[DPE-2406] Fix pod deletion #134

merged 2 commits into from
Aug 22, 2023

Conversation

marceloneppel
Copy link
Member

@marceloneppel marceloneppel commented Aug 18, 2023

Issue

When the PgBlouncer charm pod is deleted, the auth file is not re-rendered, causing connection issues.

Solution

Re-render the auth file in the upgrade-charm hook, which is executed after a pod is rescheduled (like when we manually delete the pod).

Also added a check in the on-start hook, that is the hook that fires when the host machine is restarted (like when the Multipass VM is restarted).

Fixes #133.

@marceloneppel marceloneppel marked this pull request as ready for review August 18, 2023 20:59
@dragomirp dragomirp merged commit 2bafa6e into main Aug 22, 2023
19 checks passed
@dragomirp dragomirp deleted the dpe-2406-fix-pod-deletion branch August 22, 2023 08:59
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.

Cannot connect to PgBouncer after Multipass VM has been restarted
3 participants