Project

General

Profile

Actions

Bug #64784

open

rbd_plugins does not check if the plugin exist before changing the value.

Added by Jacobus Erasmus 2 months ago. Updated 2 months ago.

Status:
New
Priority:
Normal
Assignee:
-
Target version:
-
% Done:

0%

Source:
Community (user)
Tags:
Backport:
Regression:
No
Severity:
1 - critical
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

When a rbd_plugins is set incorrectly (no plugin available) it will accept the change without any error. If you later try and change the plugin (legitimate or not) rbd gives and error.ix it will fail.

Eg.
rbd config image set xppool/test rbd_plugins test
works (No Error)
rbd config image set xppool/test rbd_plugins pwl_cache
gives

2024-03-07T11:20:21.559+0200 7fe793ff76c0 -1 load failed dlopen(): "/usr/lib/ceph/librbd/libceph_librbd_test.so: cannot open shared object file: No such file or directory" or "/usr/lib/ceph/libceph_librbd_test.so: cannot open shared object file: No such file or directory"
2024-03-07T11:20:21.559+0200 7fe793ff76c0 -1 librbd::PluginRegistry: 0x55c06160d560 init: failed to load plugin: test
2024-03-07T11:20:21.559+0200 7fe793ff76c0 -1 librbd::image::OpenRequest: failed to initialize plugin registry: (38) Function not implemented
2024-03-07T11:20:21.559+0200 7fe790ff16c0 -1 librbd::ImageState: 0x55c06160db80 failed to open image: (38) Function not implemented
rbd: error opening image test: (38) Function not implemented

Actions

Also available in: Atom PDF