88fa7920ef
Update rook-ceph to use upstream code and its FluxCD manifests to align with bare metal Ceph. Changes include: - Create a migration-rook-ceph-helm package to align to the upstream helm charts - Delete previously copied upstream helm charts from stx-rook-ceph - Rename stx-rook-ceph to stx-migration-rook-ceph-helm following existing application patterns - Add new python plugin package support with python3-k8sapp-migration-rook-ceph Test Plan: PASS - Run all tox tests locally PASS - Build all application packages PASS - Deploy on AIO-SX validating that ceph cluster is operational - Followed: https://wiki.openstack.org/wiki/StarlingX/Containers/Applications/app-rook-ceph#Testing Change-Id: I99e0d3a61c6169e5aae7091dd0202350d4c3e3c9 Story: 2011055 Task: 49625 Co-Authored-By: Robert Church <robert.church@windriver.com> Signed-off-by: Caio Correa <caio.correa@windriver.com>
81 lines
2.0 KiB
Bash
81 lines
2.0 KiB
Bash
#!/bin/bash
|
|
#
|
|
# Copyright (c) 2020 Intel Corporation, Inc.
|
|
# Copyright (c) 2024 Wind River Systems, Inc.
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
#
|
|
|
|
RETVAL=0
|
|
|
|
################################################################################
|
|
# Start Action
|
|
################################################################################
|
|
function start {
|
|
return
|
|
}
|
|
|
|
################################################################################
|
|
# Stop Action
|
|
################################################################################
|
|
function stop {
|
|
pgrep ceph-mon
|
|
if [ x"$?" = x"0" ]; then
|
|
kubectl --kubeconfig=/etc/kubernetes/admin.conf delete \
|
|
deployments.apps -n rook-ceph rook-ceph-mon-a
|
|
kubectl --kubeconfig=/etc/kubernetes/admin.conf delete po \
|
|
-n rook-ceph --selector="app=rook-ceph-mon,mon=a"
|
|
fi
|
|
|
|
pgrep ceph-osd
|
|
if [ x"$?" = x"0" ]; then
|
|
kubectl --kubeconfig=/etc/kubernetes/admin.conf delete \
|
|
deployments.apps -n rook-ceph \
|
|
--selector="app=rook-ceph-osd,failure-domain=$(hostname)"
|
|
kubectl --kubeconfig=/etc/kubernetes/admin.conf delete po \
|
|
--selector="app=rook-ceph-osd,failure-domain=$(hostname)" \
|
|
-n rook-ceph
|
|
fi
|
|
}
|
|
|
|
################################################################################
|
|
# Status Action
|
|
################################################################################
|
|
function status {
|
|
pgrep sysinv-api
|
|
|
|
RETVAL=$?
|
|
|
|
return
|
|
}
|
|
|
|
################################################################################
|
|
# Main Entry
|
|
################################################################################
|
|
|
|
case "$1" in
|
|
start)
|
|
start
|
|
;;
|
|
|
|
stop)
|
|
stop
|
|
;;
|
|
|
|
restart)
|
|
stop
|
|
start
|
|
;;
|
|
|
|
status)
|
|
status
|
|
;;
|
|
|
|
*)
|
|
echo "usage: $0 { start | stop | status | restart }"
|
|
exit 1
|
|
;;
|
|
esac
|
|
|
|
exit $RETVAL
|