]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph-crush-location: remove 19881/head
authorSage Weil <sage@redhat.com>
Tue, 9 Jan 2018 22:38:12 +0000 (16:38 -0600)
committerSage Weil <sage@redhat.com>
Tue, 9 Jan 2018 22:38:12 +0000 (16:38 -0600)
This script is pointless.  It is equivalent to the built-in default
behavior, which makes it only useful as a sample for what a location
hook's output should be.  The documentation has been updated to provide
that.

Signed-off-by: Sage Weil <sage@redhat.com>
PendingReleaseNotes
alpine/APKBUILD.in
ceph.spec.in
debian/ceph-common.install
src/CMakeLists.txt
src/ceph-crush-location.in [deleted file]

index b48eb44cf70ba1cbc4adfe5be207e27253b34e2e..1b30751de3b1e0002bab0f8ee3c732e39a263d88 100644 (file)
@@ -1,4 +1,4 @@
-13.0.0
+13.0.1
 ------
 
 * The RBD C API's rbd_discard method now enforces a maximum length of
     mds_session_timeout, mds_session_autoclose, and mds_max_file_size are now
     obsolete.
 
+* The sample ``crush-location-hook`` script has been removed.  Its output is
+  equivalent to the built-in default behavior, so it has been replaced with an
+  example in the CRUSH documentation.
+
 
 
 >= 12.2.2
index e82dd20a50cfd64613437b6091361e9151c777fd..47d2d586a54107ea793b3c637780a066ebc3946f 100644 (file)
@@ -216,7 +216,6 @@ common() {
                ceph-dencoder \
                ceph-rbdnamer \
                ceph-syn \
-               ceph-crush-location \
                cephfs-data-scan \
                cephfs-journal-tool \
                cephfs-table-tool \
index 0b0a506969efc9565b76b562a5f4835883bf7490..03f3f302f15d6a4f87bc332998a8dffaaa4974ff 100644 (file)
@@ -1066,7 +1066,6 @@ fi
 %{_bindir}/ceph-dencoder
 %{_bindir}/ceph-rbdnamer
 %{_bindir}/ceph-syn
-%{_bindir}/ceph-crush-location
 %{_bindir}/cephfs-data-scan
 %{_bindir}/cephfs-journal-tool
 %{_bindir}/cephfs-table-tool
index 11e24f49472ad2ec1397c53a8da8061532b6c6d4..afba9d90240947af30b22f009d5c62b8264aa0a7 100755 (executable)
@@ -10,7 +10,6 @@ usr/bin/ceph-conf
 usr/bin/ceph-dencoder
 usr/bin/ceph-rbdnamer
 usr/bin/ceph-syn
-usr/bin/ceph-crush-location
 usr/bin/cephfs-data-scan
 usr/bin/cephfs-journal-tool
 usr/bin/cephfs-table-tool
index 6337805198eabc4cf84d9586e62cbb02de48dbb4..f202c12e07163e16d9d0234e97355c3702caedf9 100644 (file)
@@ -926,9 +926,6 @@ endif()
 configure_file(${CMAKE_SOURCE_DIR}/src/ceph.in
   ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/ceph @ONLY)
 
-configure_file(${CMAKE_SOURCE_DIR}/src/ceph-crush-location.in
-  ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/ceph-crush-location @ONLY)
-
 configure_file(${CMAKE_SOURCE_DIR}/src/init-ceph.in
   ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/init-ceph @ONLY)
 
@@ -944,7 +941,6 @@ endif()
 
 install(PROGRAMS
   ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/ceph
-  ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/ceph-crush-location
   ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/ceph-post-file
   ${CMAKE_SOURCE_DIR}/src/ceph-run
   ${CMAKE_SOURCE_DIR}/src/ceph-rest-api
diff --git a/src/ceph-crush-location.in b/src/ceph-crush-location.in
deleted file mode 100755 (executable)
index a8c22a8..0000000
+++ /dev/null
@@ -1,80 +0,0 @@
-#!/bin/sh
-#
-# Generate a CRUSH location for the given entity
-#
-# The CRUSH location consists of a list of key=value pairs, separated
-# by spaces, all on a single line.  This describes where in CRUSH
-# hierarhcy this entity should be placed.
-#
-# Arguments:
-#   --cluster <clustername>   name of the cluster (see /etc/ceph/$cluster.conf)
-#   --type <osd|mds|client>   daemon/entity type
-#   --id <id>                 id (osd number, mds name, client name)
-#
-
-# if we start up as ./ceph-crush-location, assume everything else is
-# in the current directory too.
-if [ `dirname $0` = "." ] && [ $PWD != "/usr/bin" ]; then
-    BINDIR=.
-    SBINDIR=.
-    LIBDIR=.
-    ETCDIR=.
-else
-    BINDIR=@bindir@
-    SBINDIR=@prefix@/sbin
-    LIBDIR=@libdir@/ceph
-    ETCDIR=@sysconfdir@/ceph
-fi
-
-usage_exit() {
-    echo "usage: $0 [--cluster <cluster>] --id <id> --type <osd|mds|client>"
-    exit
-}
-
-cluster="ceph"
-type=""
-id=""
-while [ $# -ge 1 ]; do
-    case $1 in
-       --cluster | -C)
-           shift
-           cluster="$1"
-           shift
-           ;;
-       --id | -i)
-           shift
-           id="$1"
-           shift
-           ;;
-       --type | -t)
-           shift
-           type="$1"
-           shift
-           ;;
-       *)
-           echo "unrecognized option '$1'"
-           usage_exit
-           ;;
-    esac
-done
-
-if [ -z "$type" ]; then
-    echo "must specify entity type"
-    usage_exit
-fi
-
-if [ -z "$id" ]; then
-    echo "must specify id"
-    usage_exit
-fi
-
-# try a generic location
-location="$($BINDIR/ceph-conf --cluster=${cluster:-ceph} --name=$type.$id --lookup crush_location || :)"
-if [ -n "$location" ]; then
-    echo $location
-    exit 0
-fi
-
-# spit out something generic
-echo "host=$(hostname -s) root=default"
-