libceph: error -2 building auth method x request
G'day,
In case anyone else might be getting the $subject error, and to make the issue visible to a google search...
When trying to map an rdb block device whilst using cephx authentication, if you get kernel messages like:
[79683.055935] libceph: client0 fsid c6618970-0ce0-4cb2-bc9a-dd5f29b62e24 [79683.059286] libceph: error -2 building auth method x request
...ensure you have the appropriate encryption available in the kernel (built in or modules). I'm a bit unclear as to precisely what is required, but Josh Durgin's comment was:
The only path I'm seeing that could lead to that error is if the kernel wasn't compiled with support for "cbc(aes)" with the CRYPTO_ALG_ASYNC flag. I'd guess any of the CRYTPO_AES* build options (with CRYPTO_BLKCIPHER2?) would be sufficient.
These modules were required to get my mapping working whilst using cephx:
aes_x86_64
aes_generic
cbc
See also: http://tracker.newdream.net/issues/3285
Cheers,
Chris.