]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rbd-wnbd: use the right AdminSocket instance 52540/head
authorLucian Petrut <lpetrut@cloudbasesolutions.com>
Tue, 26 Sep 2023 11:52:31 +0000 (11:52 +0000)
committerLucian Petrut <lpetrut@cloudbasesolutions.com>
Fri, 1 Mar 2024 17:39:00 +0000 (17:39 +0000)
commita14003c492ad26ed4eef13e3d73e42212dd2bd93
tree49d3565ef86c33bed9c533e701104949cfe49f43
parent83d58ab307063b4a37f3a297af2b0e6ba27e84dc
rbd-wnbd: use the right AdminSocket instance

The rbd-wnbd daemon currently caches one rados context per cluster.
However, it's registering hooks against the global context
admin socket, which won't be available. For this reason,
the "rbd-wnbd stats" command no longer works.

To address this issue, we'll ensure that rbd-wnbd sets command hooks
against the right admin socket instance, leveraging the image
context.

Signed-off-by: Lucian Petrut <lpetrut@cloudbasesolutions.com>
src/tools/rbd_wnbd/rbd_mapping.cc
src/tools/rbd_wnbd/wnbd_handler.cc
src/tools/rbd_wnbd/wnbd_handler.h