summaryrefslogtreecommitdiffstats
path: root/deploy/adapters/ansible/roles/storage/files
diff options
context:
space:
mode:
authorchigang <chigang@huawei.com>2017-06-30 20:24:25 +0800
committerchigang <chigang@huawei.com>2017-07-03 21:19:28 +0800
commit95ecdb773c9fa90f9e4f1f792f5cc5dc8328fd6a (patch)
tree1b012703eb52f78fe35119a4f9eba98b221f69d9 /deploy/adapters/ansible/roles/storage/files
parentd529e77a45c77c10ac6970ca9e733e92e89d138f (diff)
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 <chigang@huawei.com>
Diffstat (limited to 'deploy/adapters/ansible/roles/storage/files')
-rwxr-xr-xdeploy/adapters/ansible/roles/storage/files/create_img.sh12
-rwxr-xr-xdeploy/adapters/ansible/roles/storage/files/get_var_size.sh14
-rwxr-xr-xdeploy/adapters/ansible/roles/storage/files/loop.yml10
-rwxr-xr-xdeploy/adapters/ansible/roles/storage/files/losetup.sh15
-rwxr-xr-xdeploy/adapters/ansible/roles/storage/files/storage10
-rw-r--r--deploy/adapters/ansible/roles/storage/files/storage.service15
6 files changed, 0 insertions, 76 deletions
diff --git a/deploy/adapters/ansible/roles/storage/files/create_img.sh b/deploy/adapters/ansible/roles/storage/files/create_img.sh
deleted file mode 100755
index 00392929..00000000
--- a/deploy/adapters/ansible/roles/storage/files/create_img.sh
+++ /dev/null
@@ -1,12 +0,0 @@
-##############################################################################
-# Copyright (c) 2016 HUAWEI TECHNOLOGIES CO.,LTD and others.
-#
-# All rights reserved. This program and the accompanying materials
-# are made available under the terms of the Apache License, Version 2.0
-# which accompanies this distribution, and is available at
-# http://www.apache.org/licenses/LICENSE-2.0
-##############################################################################
-seek_num=`echo $1 | sed -e 's/.* //g'`
-if [ ! -f /var/storage.img ]; then
- dd if=/dev/zero of=/var/storage.img bs=1 count=0 seek=$seek_num
-fi
diff --git a/deploy/adapters/ansible/roles/storage/files/get_var_size.sh b/deploy/adapters/ansible/roles/storage/files/get_var_size.sh
deleted file mode 100755
index 9d679f97..00000000
--- a/deploy/adapters/ansible/roles/storage/files/get_var_size.sh
+++ /dev/null
@@ -1,14 +0,0 @@
-##############################################################################
-# Copyright (c) 2016 HUAWEI TECHNOLOGIES CO.,LTD and others.
-#
-# All rights reserved. This program and the accompanying materials
-# are made available under the terms of the Apache License, Version 2.0
-# which accompanies this distribution, and is available at
-# http://www.apache.org/licenses/LICENSE-2.0
-##############################################################################
-size=`df /var | awk '$3 ~ /[0-9]+/ { print $4 }'`;
-if [ $size -gt 2000000000 ]; then
- echo -n 2000000000000;
-else
- echo -n $((size * 1000 / 512 * 512));
-fi
diff --git a/deploy/adapters/ansible/roles/storage/files/loop.yml b/deploy/adapters/ansible/roles/storage/files/loop.yml
deleted file mode 100755
index 32088de7..00000000
--- a/deploy/adapters/ansible/roles/storage/files/loop.yml
+++ /dev/null
@@ -1,10 +0,0 @@
----
-##############################################################################
-# Copyright (c) 2016 HUAWEI TECHNOLOGIES CO.,LTD and others.
-#
-# All rights reserved. This program and the accompanying materials
-# are made available under the terms of the Apache License, Version 2.0
-# which accompanies this distribution, and is available at
-# http://www.apache.org/licenses/LICENSE-2.0
-##############################################################################
-physical_device: /dev/loop0
diff --git a/deploy/adapters/ansible/roles/storage/files/losetup.sh b/deploy/adapters/ansible/roles/storage/files/losetup.sh
deleted file mode 100755
index 8a22a62a..00000000
--- a/deploy/adapters/ansible/roles/storage/files/losetup.sh
+++ /dev/null
@@ -1,15 +0,0 @@
-##############################################################################
-# Copyright (c) 2016 HUAWEI TECHNOLOGIES CO.,LTD and others.
-#
-# All rights reserved. This program and the accompanying materials
-# are made available under the terms of the Apache License, Version 2.0
-# which accompanies this distribution, and is available at
-# http://www.apache.org/licenses/LICENSE-2.0
-##############################################################################
-loop_dev=`losetup -a |grep "/var/storage.img"|awk -F':' '{print $1}'`
-if [ -z $loop_dev ]; then
- losetup -f --show /var/storage.img
-else
- echo $loop_dev
-fi
-
diff --git a/deploy/adapters/ansible/roles/storage/files/storage b/deploy/adapters/ansible/roles/storage/files/storage
deleted file mode 100755
index 3acc6115..00000000
--- a/deploy/adapters/ansible/roles/storage/files/storage
+++ /dev/null
@@ -1,10 +0,0 @@
-#! /bin/bash
-### BEGIN INIT INFO
-# Provides: Storage
-# Required-Start: $remote_fs $network
-# Required-Stop: $remote_fs $network
-# Default-Start: 2 3 4 5
-# Default-Stop: 0 1 6
-# Description: Storage
-### END INIT INFO
-loop_dev=`sh /opt/setup_storage/losetup.sh`
diff --git a/deploy/adapters/ansible/roles/storage/files/storage.service b/deploy/adapters/ansible/roles/storage/files/storage.service
deleted file mode 100644
index 924db25a..00000000
--- a/deploy/adapters/ansible/roles/storage/files/storage.service
+++ /dev/null
@@ -1,15 +0,0 @@
-[Unit]
-Description=Storage Service
-Before=runlevel2.target runlevel3.target runlevel4.target runlevel5.target shutdown.target
-After=remote-fs.target nss-lookup.target network-online.target time-sync.target network-online.target net_init.service
-Before=ceph.service
-Wants=network-online.target
-Conflicts=shutdown.target
-
-[Service]
-Type=oneshot
-ExecStart=/bin/sh -c "/etc/init.d/storage"
-
-[Install]
-WantedBy=multi-user.target
-