From d754520e1cb310bd54b919ea2789102a2b3fd45f Mon Sep 17 00:00:00 2001 From: Travis Nielsen Date: Thu, 27 Feb 2020 12:52:17 -0700 Subject: [PATCH] ceph: allow mons from external cluster in toolbox The toolbox generates a ceph.conf and extracts the names of the mons based on the assumption that they all had the prefix rook-ceph. This is no longer true for external clusters. The external clusters may have mons with any variety of names. Signed-off-by: Travis Nielsen --- images/ceph/toolbox.sh | 3 --- 1 file changed, 3 deletions(-) diff --git a/images/ceph/toolbox.sh b/images/ceph/toolbox.sh index 41f8cb1c8..526bac7b3 100755 --- a/images/ceph/toolbox.sh +++ b/images/ceph/toolbox.sh @@ -32,9 +32,6 @@ write_endpoints() { # filter out the mon names mon_endpoints=$(echo ${endpoints} | sed 's/[a-z]\+=//g') - # filter out the legacy mon names - mon_endpoints=$(echo ${mon_endpoints} | sed 's/rook-ceph-mon[0-9]\+=//g') - DATE=$(date) echo "$DATE writing mon endpoints to ${CEPH_CONFIG}: ${endpoints}" cat < ${CEPH_CONFIG}