Skip to content

Commit

Permalink
Merge pull request #134 from h0tbird/restart_from_scratch
Browse files Browse the repository at this point in the history
Attempt to get the most recent monmap
  • Loading branch information
leseb committed Jul 22, 2015
2 parents 1d0551b + 7844508 commit d91137d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion daemon/config.kv.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,13 @@ function get_mon_config {
if [ ! -f /etc/ceph/monmap ]; then
echo "Monmap is missing. Adding initial monmap..."
kviator --kvstore=${KV_TYPE} --client=${KV_IP}:${KV_PORT} get ${CLUSTER_PATH}/monmap > /etc/ceph/monmap
ceph mon getmap -o /etc/ceph/monmap
fi

echo "Trying to get the most recent monmap..."
if timeout 5 ceph ${CEPH_OPTS} mon getmap -o /etc/ceph/monmap; then
echo "Monmap successfully retrieved."
else
echo "Peers not found, using initial monmap."
fi

else
Expand Down

0 comments on commit d91137d

Please sign in to comment.