]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rbd-mirror: resolve admin socket path names collision 15048/head
authorMykola Golub <mgolub@mirantis.com>
Thu, 11 May 2017 10:08:58 +0000 (12:08 +0200)
committerMykola Golub <mgolub@mirantis.com>
Fri, 12 May 2017 18:28:16 +0000 (20:28 +0200)
commitcd71ffce193b16a5612eefae032e4757ed7d4b08
tree5e7ab389fefeba7fe876027a20bad09c82a60564
parent404cee744fb6891fe7bf48cfe012cecdc1c2eba1
rbd-mirror: resolve admin socket path names collision

If global admin_socket parameter is set, for PoolReplayer admin
sockets generate and use unique paths in $run_dir. Provide the socket
paths in output of PoolReplayer's "rbd mirror status" admin socket
command.

A possible use case:

1) run "rbd mirror status $pool_replayer" command using global admin
   socket (known from configuration) and obtain socket paths for the
   PoolReplayer local and remote context sockets.
2) Use these paths to run commands provides by the contexts.

Fixes: http://tracker.ceph.com/issues/19907
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
src/tools/rbd_mirror/PoolReplayer.cc