ceph/qa/rbd/krbd_modprobe.t
Ilya Dryomov 286bdbfe24 krbd: modprobe before calling build_map_buf()
Otherwise add_key() in set_kernel_secret() fails as if running against
an ancient kernel and we fall back to secret= in options for the first
image being mapped on the machine.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
2019-10-17 16:52:43 +02:00

11 lines
269 B
Perl

$ sudo modprobe -r rbd
$ sudo modprobe -r libceph
$ lsmod | grep libceph
[1]
$ rbd create --size 1 img
$ DEV=$(sudo rbd map img)
$ sudo grep -q ',key=' /sys/bus/rbd/devices/${DEV#/dev/rbd}/config_info
$ sudo rbd unmap $DEV
$ rbd rm --no-progress img