From 0f8835305bd5ef33d3832b94d4b9fa3f0c63ed5a Mon Sep 17 00:00:00 2001 From: diwakar thyagaraj Date: Fri, 3 Jul 2020 22:59:14 +0000 Subject: [PATCH] [Fix] Remove the dependency for Ceph-Utility Deployment Jobs 1) Maps and uses default ceph deployment script for deploying Ceph Components. 2) Remove redundant Apparmor folder. Change-Id: I9e0f4391b6fddb703ef1b7818e77eaf1b8a6c7f6 Signed-off-by: diwakar thyagaraj --- tools/deployment/000-install-packages.sh | 4 +- tools/deployment/010-ceph-utility.sh | 227 +----------------- .../apparmor/001-setup-apparmor-profiles.sh | 2 - 3 files changed, 14 insertions(+), 219 deletions(-) delete mode 100755 tools/deployment/apparmor/001-setup-apparmor-profiles.sh diff --git a/tools/deployment/000-install-packages.sh b/tools/deployment/000-install-packages.sh index 60a09fcc..76f6aab9 100755 --- a/tools/deployment/000-install-packages.sh +++ b/tools/deployment/000-install-packages.sh @@ -5,4 +5,6 @@ cd ${INSTALL_PATH} # Clone dependencies git clone https://opendev.org/openstack/openstack-helm-infra.git -bash -c "./openstack-helm-infra/tools/deployment/common/000-install-packages.sh" +git clone https://opendev.org/openstack/openstack-helm.git +# Install Packages +bash -c "./openstack-helm-infra/tools/deployment/common/000-install-packages.sh" \ No newline at end of file diff --git a/tools/deployment/010-ceph-utility.sh b/tools/deployment/010-ceph-utility.sh index 34046d8c..e51dc169 100755 --- a/tools/deployment/010-ceph-utility.sh +++ b/tools/deployment/010-ceph-utility.sh @@ -1,221 +1,16 @@ #!/bin/bash -set -xe -namespace="utility" CURRENT_DIR="$(pwd)" -# Create loop back devices for ceph osds. -sudo df -lh -sudo lsblk -sudo mkdir -p /var/lib/openstack-helm/ceph -sudo truncate -s 10G /var/lib/openstack-helm/ceph/ceph-osd-data-loopbackfile.img -sudo truncate -s 8G /var/lib/openstack-helm/ceph/ceph-osd-db-wal-loopbackfile.img -sudo losetup /dev/loop0 /var/lib/openstack-helm/ceph/ceph-osd-data-loopbackfile.img -sudo losetup /dev/loop1 /var/lib/openstack-helm/ceph/ceph-osd-db-wal-loopbackfile.img -# lets check the devices -sudo df -lh -sudo lsblk + : "${OSH_PATH:="../openstack-helm"}" + : "${OSH_INFRA_PATH:="../openstack-helm-infra"}" + +cd "${OSH_PATH}" +bash -c "./tools/deployment/component/ceph/ceph.sh" + +namespace="utility" +: ${OSH_EXTRA_HELM_ARGS:=""} -: ${OSH_INFRA_PATH:="../../openstack-helm-infra"} cd "${OSH_INFRA_PATH}" - -for CHART in ceph-mon ceph-client ceph-provisioners; do - make "${CHART}" -done - -#NOTE: Deploy command -: ${OSH_EXTRA_HELM_ARGS:=""} -[ -s /tmp/ceph-fs-uuid.txt ] || uuidgen > /tmp/ceph-fs-uuid.txt -CEPH_FS_ID="$(cat /tmp/ceph-fs-uuid.txt)" -#NOTE(portdirect): to use RBD devices with Ubuntu kernels < 4.5 this -# should be set to 'hammer' -. /etc/os-release -if [ "x${ID}" == "xubuntu" ] && \ - [ "$(uname -r | awk -F "." '{ print $2 }')" -lt "5" ]; then - CRUSH_TUNABLES=hammer -else - CRUSH_TUNABLES=null -fi -tee /tmp/ceph.yaml <