]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
krbd: add support for msgr2
authorIlya Dryomov <idryomov@gmail.com>
Mon, 18 Jan 2021 12:49:49 +0000 (13:49 +0100)
committerIlya Dryomov <idryomov@gmail.com>
Sun, 31 Jan 2021 13:32:03 +0000 (14:32 +0100)
commit61f622e2514328576debafcf46aff476e42c5ae1
tree5edc44607ad27c3381134a708813d177cb0708f6
parent60f2aa52b03be3baf6550f60df098d85a4d063e0
krbd: add support for msgr2

Recognize ms_mode map option and filter initial monitor addresses
accordingly: if ms_mode is not given or ms_mode=legacy, discard v2
addresses, otherwise discard v1 addresses.

Note that nothing was discarded (i.e. v2 addresses were passed to
the kernel) previously.  The intent was to preserve that behaviour
in case ms_mode is not given, allowing to change the kernel default
in the future.  However, it turns out that mount.ceph helper has
been misguidedly discarding v2 addresses since commit eae01275134e
("mount.ceph: fork a child to get info from local configuration"),
so that ship has sailed.

Fixes: https://tracker.ceph.com/issues/48976
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
(cherry picked from commit 08f714964b7fe5024504818f01328a41acc24965)

Conflicts:
src/tools/rbd/action/Kernel.cc [ commit 34f539d8af33 ("rbd:
  delay parsing of default kernel map options") not in octopus ]
doc/man/8/rbd.rst
src/krbd.cc
src/tools/rbd/action/Kernel.cc