From 23546ec82b2ca5b32c14d7b90a25c1f2c28cc47a Mon Sep 17 00:00:00 2001 From: Pete Birley Date: Tue, 1 May 2018 09:21:56 -0500 Subject: [PATCH] Ironic: Fix gate This PS updates the ironic gate to use the ceph deployment scripts from the primary dev-deploy pipeline. Change-Id: I30c58f9532b89cf260e77c37369f142b35fd9802 --- tools/deployment/baremetal/005-setup-nodes.sh | 10 +- tools/deployment/baremetal/030-ceph.sh | 188 +----------------- .../baremetal/035-ceph-ns-activate.sh | 66 +----- 3 files changed, 8 insertions(+), 256 deletions(-) mode change 100755 => 120000 tools/deployment/baremetal/030-ceph.sh mode change 100755 => 120000 tools/deployment/baremetal/035-ceph-ns-activate.sh 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 <