]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
vstart.sh: highlight presence of stray conf 31403/head
authorMilind Changire <mchangir@redhat.com>
Mon, 11 Nov 2019 14:58:17 +0000 (20:28 +0530)
committerMilind Changire <mchangir@redhat.com>
Mon, 11 Nov 2019 14:58:17 +0000 (20:28 +0530)
If there's a stray conf file present in /etc/ceph/ceph.conf,
then it leads to a misbehaving cluster.
Probably an unresponsive cluster as well.

Fixes: https://tracker.ceph.com/issues/42643
Signed-off-by: Milind Changire <mchangir@redhat.com>
src/vstart.sh

index 8b630110f9c2777468f3860fa4ee95fc8bcfbd3f..dc06adbfec3ca222e2d5d9650782ec9e60238787 100755 (executable)
@@ -1412,3 +1412,16 @@ echo ""
 
 echo "CEPH_DEV=1"
 
+# always keep this section at the very bottom of this file
+STRAY_CONF_PATH="/etc/ceph/ceph.conf"
+if [ -f "$STRAY_CONF_PATH" -a -n "$conf_fn" -a ! "$conf_fn" -ef "$STRAY_CONF_PATH" ]; then
+    echo ""
+    echo ""
+    echo "WARNING:"
+    echo "    Please remove stray $STRAY_CONF_PATH if not needed."
+    echo "    Your conf files $conf_fn and $STRAY_CONF_PATH may not be in sync"
+    echo "    and may lead to undesired results."
+    echo ""
+    echo "NOTE:"
+    echo "    Remember to restart cluster after removing $STRAY_CONF_PATH"
+fi