]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
krbd: return error when no initial monitor address found 44886/head
authorBurt Holzman <burt@fnal.gov>
Wed, 2 Feb 2022 15:18:52 +0000 (09:18 -0600)
committerBurt Holzman <burt@fnal.gov>
Mon, 7 Feb 2022 16:47:31 +0000 (10:47 -0600)
commit0076ffc86e043af7aedc127df8661eaf87fc1c58
tree6f8c6e1c4e4dfdaacc7623cb64e278fa402136e9
parent8505861220151415bee016249cd7d1bf614502cb
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>
src/krbd.cc