fix: Resolve missing unlock encrypted wal/db at osd start #680
Merged
sabaini merged 3 commits intocanonical:mainfrom Feb 27, 2026
Merged
fix: Resolve missing unlock encrypted wal/db at osd start #680sabaini merged 3 commits intocanonical:mainfrom
sabaini merged 3 commits intocanonical:mainfrom
Conversation
On reboot encrypted wal/dbs will not be unlocked correctly and will lead to issues on startup. Add a relevant test that will demonstrate failure to unlock. The test manually closes the encrypted devices simulating a reboot. It then tries to start back up microceph and verifies the devices should be available (currently fails) Signed-off-by: John Ramsden <john.ramsden@canonical.com> Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* osd start was not unlocking encrypted wal/db * Add functionality to unlock by looking at wal/db suffix Signed-off-by: John Ramsden <john.ramsden@canonical.com> Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
sabaini
requested changes
Feb 26, 2026
Collaborator
sabaini
left a comment
There was a problem hiding this comment.
Hey @johnramsden thanks lgtm in general, only a minor testing nit!
Signed-off-by: John Ramsden <john.ramsden@canonical.com>
Member
Author
|
I believe the current errors are not related to this PR |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
On node reboot, or if devices are closed encrypted wal/dbs will not be unlocked correctly and will lead to issues on startup.
The relevant issue #655 describes the problem very well:
Add tests and fix the unlock.
Fixes #655
Type of change
How has this been tested?
This has been tested locally by executing:
The test which is also been added to CI creates three loop back devices, and then creates an OSD with an encrypted WAL & DB. This happens successfully.
The test then shuts down the OSD, closes the relevant encrypted devices and then starts the OSD back up. This should lead to the OSD being opened successfully. Instead it fails.
Contributor checklist
Please check that you have: