Skip to content

patch: Recover keystore credentials for smtp and backups - #207

Merged
akram09 merged 6 commits into
2/edgefrom
DPE-11209-Keystore-credentials-are-not-recovered-after-Pod-restart
Oct 9, 2026
Merged

akram09 merged 6 commits into
2/edgefrom
DPE-11209-Keystore-credentials-are-not-recovered-after-Pod-restart

Conversation

@akram09

@akram09 akram09 commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

This Pull Request fixes the issue of keystore credentials lost for plugins and backup integration when a pod is restarted. It also address the case of doing a refresh which involves a pod restarting as well. On a pod restart the keystore is again empty and needs to be recovered from the relations. So the solution is to add a function in both the start hook handler and the upgrade_charm hook handler on K8s. We could technically put only one handler in the StartOpenSearch hook handler. But I don't want to crowd that hook a lot, its already including a lot of logic.

@akram09
akram09 marked this pull request as ready for review September 30, 2026 20:48
Copilot AI lite review requested due to automatic review settings September 30, 2026 20:48

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@akram09 akram09 changed the title fix: Recover keystore credentials for smtp and backups patch: Recover keystore credentials for smtp and backups Sep 30, 2026

@Mehdi-Bendriss Mehdi-Bendriss left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks Akram, 2 comments from my side.

Comment thread opensearch_single_kernel/events/snapshots.py Outdated
Comment thread opensearch_single_kernel/events/snapshots.py Outdated
Mehdi-Bendriss
Mehdi-Bendriss previously approved these changes Oct 6, 2026
Comment thread opensearch_single_kernel/events/snapshots.py
Comment thread opensearch_single_kernel/events/snapshots.py Outdated
Comment thread opensearch_single_kernel/events/snapshots.py Outdated
Comment thread opensearch_single_kernel/events/snapshots.py
Comment thread opensearch_single_kernel/events/snapshots.py
@akram09
akram09 merged commit 53a11ce into 2/edge Oct 9, 2026
14 of 24 checks passed
@akram09
akram09 deleted the DPE-11209-Keystore-credentials-are-not-recovered-after-Pod-restart branch October 9, 2026 12:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants