-
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
Error: Failed adding new disk: Failed to open: Failed to luksOpen: /dev/disk/by-path/..., exit status 2, Failed to load key in kernel keyring. No key available with this passphrase. #190
Comments
Hi @nobuto-m , Apologies for the late reply. I couldn't immediately repro this issue. Would you be able to share some more details:
Thanks in advance. |
Sure thing. I have the following list of snaps installed on 3 machines and the microceph is behind the microcloud cluster.
And this microcloud cluster was set up by the following snippet and the content of it should be straightforward, I think.
To answer your questions,
Yes, it errors out as expected in the initial run, then I ran it explicitly.
Yes, it works without encryption. As you can see below, the device was added as
|
Many thanks, I believe I could reproduce your results. It appears that the seccomp assertions are not applied to running snap processes. Restarting the microceph.daemon process after connecting dm-crypt works around this issue. I have filed a case for snapd in bug #2034585 for this and will document the workaround in the MicroCeph docs as well, possibly will have to add a daemon restart in an interface hook |
This is a stop gap measure for canonical#190. There is an issue to track this at https://bugs.launchpad.net/snapd/+bug/2034585 . For a more permanent workaround we could alternatively also restart microceph.daemon in an interface hook after dm-crypt connection, however it'd be preferable to fix this in snapd so as to avoid API interruptions. Signed-off-by: Peter Sabaini <peter.sabaini@canonical.com>
Originally posted by @nobuto-m in #211 (comment) |
When I follow the FDE document:
https://canonical-microceph.readthedocs-hosted.com/en/latest/explanation/fde-osd/
It fails with the following output.
The text was updated successfully, but these errors were encountered: