diff --git a/tools/deployment/baremetal/005-setup-nodes.sh b/tools/deployment/baremetal/005-setup-nodes.sh index c06e8ee72b..2f04fcc316 100755 --- a/tools/deployment/baremetal/005-setup-nodes.sh +++ b/tools/deployment/baremetal/005-setup-nodes.sh @@ -16,10 +16,12 @@ set -xe -#NOTE: We only want to run control plane components on the primary node -kubectl label nodes openstack-control-plane- --all --overwrite -PRIMARY_NODE="$(kubectl get nodes -l openstack-helm-node-class=primary -o name | awk -F '/' '{ print $NF; exit }')" -kubectl label node ${PRIMARY_NODE} openstack-control-plane=enabled +#NOTE: We only want to run ceph and control plane components on the primary node +for LABEL in openstack-control-plane ceph-osd ceph-mon ceph-mds ceph-rgw ceph-mgr; do + kubectl label nodes ${LABEL}- --all --overwrite + PRIMARY_NODE="$(kubectl get nodes -l openstack-helm-node-class=primary -o name | awk -F '/' '{ print $NF; exit }')" + kubectl label node ${PRIMARY_NODE} ${LABEL}=enabled +done #NOTE: Build charts make all diff --git a/tools/deployment/baremetal/030-ceph.sh b/tools/deployment/baremetal/030-ceph.sh deleted file mode 100755 index bef54dc9c1..0000000000 --- a/tools/deployment/baremetal/030-ceph.sh +++ /dev/null @@ -1,187 +0,0 @@ -#!/bin/bash - -# Copyright 2017 The Openstack-Helm Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. You may obtain -# a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -# License for the specific language governing permissions and limitations -# under the License. - -set -xe - -#NOTE: Pull images and lint chart -for CHART in ceph-mon ceph-osd ceph-client; do - make pull-images "${CHART}" -done - -#NOTE: Deploy command -uuidgen > /tmp/ceph-fs-uuid.txt -tee /tmp/ceph.yaml <