lvcreate -T -V 4g -n testvol cinder-volumes/cinder-volumes-pool
device-mapper: reload ioctl on (253:3) failed: Operation not permitted
Aborting. Failed to locally activate thin pool cinder-volumes/cinder-volumes-pool.
Using bpftrace (with BTF support via libbpf and 5.11 kernel) I was also able to confirm that EPERM (-1) definitely comes from devcgroup_check_permission: https://paste.ubuntu.com/p/Hpfkd2FJ5t/
# ...
cgroup permission check (devcgroup_check_permission) for: major: 253, minor: 2
kstack:
Also encountered it during thin LV creation via lvcreate:
https:/ /pastebin. canonical. com/p/3TDh83RgX y/
lvcreate -T -V 4g -n testvol cinder- volumes/ cinder- volumes- pool volumes/ cinder- volumes- pool.
device-mapper: reload ioctl on (253:3) failed: Operation not permitted
Aborting. Failed to locally activate thin pool cinder-
Using bpftrace (with BTF support via libbpf and 5.11 kernel) I was also able to confirm that EPERM (-1) definitely comes from devcgroup_ check_permissio n: /paste. ubuntu. com/p/Hpfkd2FJ5 t/ check_permissio n) for: major: 253, minor: 2
https:/
# ...
cgroup permission check (devcgroup_
kstack:
ustack:
ioctl+11
dm_task_ run+828
_reload_ with_suppressio n_v4+783
dm_task_ run+349
_load_ node+697
dm_tree_ preload_ children+ 450
_tree_ action+ 1284
dev_manager_ activate+ 49
_lv_activate_ lv+159
_lv_activate+ 1271
lv_activate_ with_filter+ 147
activate_ lv+244
_lv_create_ an_lv+2473
lv_create_ single+ 1131
_lvcreate_ single+ 1590
_process_ vgnameid_ list+1688
process_ each_vg+ 1274
lvcreate+ 543
lvm_run_ command+ 2912
lvm2_main+ 1426
__libc_ start_main+ 243
main+36
retval -1