]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
krbd: return error when no initial monitor address found 44914/head
authorBurt Holzman <burt@fnal.gov>
Wed, 2 Feb 2022 15:18:52 +0000 (09:18 -0600)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 7 Feb 2022 20:43:08 +0000 (21:43 +0100)
commit3d55c1ca657f6bf88c4fa8b800ba7e178cb8d723
tree227f806e14bc53a2a6d7556eb9cccb2fcc0341b7
parentff8f9b2c21d7761a4f00720d74b62241ef8e209c
krbd: return error when no initial monitor address found

Since we filter monitor addresses based on ms_mode, check that at
least one address was found.

Otherwise, we mismatch arguments when calling sysfs/add_single_major
which emits a misleading error message to dmesg:

  libceph: resolve 'name=user1' (ret=-3): failed
  libceph: parse_ips bad ip 'name=user1,key=client.user1'

Fixes: https://tracker.ceph.com/issues/54128
Signed-off-by: Burt Holzman <burt@fnal.gov>
(cherry picked from commit 0076ffc86e043af7aedc127df8661eaf87fc1c58)
src/krbd.cc