-
Notifications
You must be signed in to change notification settings - Fork 90
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
luks_device: can't use device name "crypt00", see issue #409 #817
Comments
I tried to reproduce this in #821, but wasn't able to. Can you provide the output of |
@inflatador ping |
Sorry for the delay! Checking now. |
@felixfontein I have to apologize, as I messed up my original report. The task actually uses
|
@inflatador I've looked closer into what luks_device would do in your case, and noticed that it runs (Later during the module it will run |
@felixfontein Just in case it's useful, here's the output of
|
Hmm, in that case I don't see why the module should try to create a LUKS device. From the module parameters you provided and from the output of That the module works with You might have more success if you try to debug the module to actually see what happens. An easy way to do that is to install q (https://pypi.org/project/q/) and sprinkle some |
If you're using luks2 and try to reopen it with a luks1 utility you get that error. Verify the cryptsetup in your shell is the same cryptsetup ansible is using. It checks these paths in order ['/sbin', '/usr/sbin', '/usr/local/sbin'] In your shell on the target host do |
SUMMARY
If I try to run
luks_device
against an already-open luks device named 'crypt00', I get a failure.ISSUE TYPE
COMPONENT NAME
community.crypto.luks_device
ANSIBLE VERSION
COLLECTION VERSION
-->
CONFIGURATION
OS / ENVIRONMENT
controller: MacOS
host: Debian Bookworm
STEPS TO REPRODUCE
If I try to run
luks_device
against an already-open luks device named 'crypt00', I get a failure.EXPECTED RESULTS
an "ok" response from ansible, indicating that the device is already open and no actions will be taken
ACTUAL RESULTS
I receive an error (listed below). If I change the name of the luks device to "enc00," the command works as expected. I suspect an issue similar to #409.
The text was updated successfully, but these errors were encountered: