From 480c71a7ad1f31e15612ffbff7a167ed10ccebff Mon Sep 17 00:00:00 2001 From: Ilya Dryomov Date: Thu, 10 Nov 2016 22:37:17 +0100 Subject: [PATCH] krbd: kernel client expects ip[:port], not an entity_addr_t Commit 2ee1b9a4084f ("krbd.cc: don't rely on MonMap internal members") inadvertently dropped .get_sockaddr() call, breaking rbd map. Fix it. Signed-off-by: Ilya Dryomov --- src/krbd.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/krbd.cc b/src/krbd.cc index 295461562986e..d1cdf5529779e 100644 --- a/src/krbd.cc +++ b/src/krbd.cc @@ -125,7 +125,7 @@ static int build_map_buf(CephContext *cct, const char *pool, const char *image, if (oss.tellp() > 0) { oss << ","; } - oss << p; + oss << p.get_sockaddr(); } oss << " name=" << cct->_conf->name.get_id(); -- 2.39.5