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

nvme TLS key insert fails with ENOKEY when modules is missing #2522

Open
igaw opened this issue Oct 2, 2024 · 0 comments
Open

nvme TLS key insert fails with ENOKEY when modules is missing #2522

igaw opened this issue Oct 2, 2024 · 0 comments

Comments

@igaw
Copy link
Collaborator

igaw commented Oct 2, 2024

When trying to insert a TLS key to the kernel keyring and the module is not loaded the error reported is

nvme check-tls-key -I 1 -c nqn.io -d NVMeTLSkey-1:01:QQ+JhVDGETH9daL0dqcOGfMDo71Xn4Ig2aCWcwqk1pamtw/5: -i
Failed to insert key, error 126

which maps to

ENOKEY 126 Required key not available

Extend error message to something meaningful.

@igaw igaw changed the title nvme tls key insert fails with ENOKEY when modules is missing nvme TLS key insert fails with ENOKEY when modules is missing Oct 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant