From 95ecdb773c9fa90f9e4f1f792f5cc5dc8328fd6a Mon Sep 17 00:00:00 2001 From: chigang Date: Fri, 30 Jun 2017 20:24:25 +0800 Subject: Remove obsoleted code JIRA:- use OpenStack-ansible deploy openstack, so remove obsoleted code. Some of the enhanced features will be added in later versions Change-Id: Ie92b92b5de234a7d7d03b578b0bc15fd0218b3b3 Signed-off-by: chigang --- .../roles/ceph-osd/files/ceph-crush-location.in | 79 ---------------------- 1 file changed, 79 deletions(-) delete mode 100644 deploy/adapters/ansible/roles/ceph-osd/files/ceph-crush-location.in (limited to 'deploy/adapters/ansible/roles/ceph-osd/files/ceph-crush-location.in') diff --git a/deploy/adapters/ansible/roles/ceph-osd/files/ceph-crush-location.in b/deploy/adapters/ansible/roles/ceph-osd/files/ceph-crush-location.in deleted file mode 100644 index d7637510..00000000 --- a/deploy/adapters/ansible/roles/ceph-osd/files/ceph-crush-location.in +++ /dev/null @@ -1,79 +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 name of the cluster (see /etc/ceph/$cluster.conf) -# --type daemon/entity type -# --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 ] --id --type " - 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" -- cgit 1.2.3-korg