Dynamically determine if ceph is enabled for compute kit
Change-Id: If9af66b0e5e1d6b5ba514c8e5e5f27383e74850e Signed-off-by: Andrii Ostapenko <andrii.ostapenko@att.com>
This commit is contained in:
parent
289e3ff6f8
commit
71bc6d15c7
@ -13,9 +13,15 @@
|
||||
# under the License.
|
||||
set -xe
|
||||
|
||||
: ${CEPH_ENABLED:=false}
|
||||
: ${RUN_HELM_TESTS:="yes"}
|
||||
|
||||
export OS_CLOUD=openstack_helm
|
||||
CEPH_ENABLED=false
|
||||
if openstack service list -f value -c Type | grep -q "^volume" && \
|
||||
openstack volume type list -f value -c Name | grep -q "rbd"; then
|
||||
CEPH_ENABLED=true
|
||||
fi
|
||||
|
||||
#NOTE: Get the overrides to use for placement, should placement be deployed.
|
||||
case "${OPENSTACK_RELEASE}" in
|
||||
"newton")
|
||||
|
@ -13,6 +13,13 @@
|
||||
# under the License.
|
||||
set -xe
|
||||
|
||||
export OS_CLOUD=openstack_helm
|
||||
CEPH_ENABLED=false
|
||||
if openstack service list -f value -c Type | grep -q "^volume" && \
|
||||
openstack volume type list -f value -c Name | grep -q "rbd"; then
|
||||
CEPH_ENABLED=true
|
||||
fi
|
||||
|
||||
#NOTE: Get the over-rides to use
|
||||
export HELM_CHART_ROOT_PATH="${HELM_CHART_ROOT_PATH:="${OSH_INFRA_PATH:="../openstack-helm-infra"}"}"
|
||||
: ${OSH_EXTRA_HELM_ARGS_LIBVIRT:="$(./tools/deployment/common/get-values-overrides.sh libvirt)"}
|
||||
@ -24,7 +31,7 @@ make -C ${HELM_CHART_ROOT_PATH} libvirt
|
||||
: ${OSH_EXTRA_HELM_ARGS:=""}
|
||||
helm upgrade --install libvirt ${HELM_CHART_ROOT_PATH}/libvirt \
|
||||
--namespace=openstack \
|
||||
--set conf.ceph.enabled=false \
|
||||
--set conf.ceph.enabled=${CEPH_ENABLED} \
|
||||
${OSH_EXTRA_HELM_ARGS:=} \
|
||||
${OSH_EXTRA_HELM_ARGS_LIBVIRT}
|
||||
|
||||
|
@ -14,7 +14,6 @@
|
||||
set -xe
|
||||
|
||||
export RUN_HELM_TESTS="no"
|
||||
export CEPH_ENABLED=true
|
||||
export OSH_EXTRA_HELM_ARGS_NOVA="--set manifests.network_policy=true $(./tools/deployment/common/get-values-overrides.sh nova)"
|
||||
|
||||
# Deploy nova and neutron charts
|
||||
|
Loading…
Reference in New Issue
Block a user