
This PS performs the following changes: - updates approach to freeze requirements.txt - adds freeze tox profile - upgrades helm to v3.9.4 - changes deployment scripts in accordance with new helm v3 - python code has been re-styled to pass pep8 tests - added tox-docs zuul gate - added tox-py38 zuul gate - added tox-cover zuul gate - added tox-pep8 zuul gate - deprecated old unit-tests zuul gate - added a dependency pre-run playbook to deliver zuul node setup needed for python tox gates to run unit tests - added tox profiles for py38,pep8,docs and cover tests Change-Id: I960326fb0ab8d98cc3f62ffa638286e4fdcbb7c7
60 lines
1.5 KiB
Bash
Executable File
60 lines
1.5 KiB
Bash
Executable File
#!/bin/bash
|
|
CURRENT_DIR="$(pwd)"
|
|
: "${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:=""}
|
|
|
|
cd "${OSH_INFRA_PATH}"
|
|
#Deploy Ceph-provisioners
|
|
tee /tmp/ceph-utility-config.yaml <<EOF
|
|
endpoints:
|
|
identity:
|
|
namespace: openstack
|
|
object_store:
|
|
namespace: ceph
|
|
ceph_mon:
|
|
namespace: ceph
|
|
network:
|
|
public: 172.17.0.1/16
|
|
cluster: 172.17.0.1/16
|
|
deployment:
|
|
storage_secrets: false
|
|
ceph: false
|
|
rbd_provisioner: false
|
|
cephfs_provisioner: false
|
|
csi_rbd_provisioner: false
|
|
client_secrets: true
|
|
rgw_keystone_user_and_endpoints: false
|
|
bootstrap:
|
|
enabled: false
|
|
conf:
|
|
rgw_ks:
|
|
enabled: true
|
|
pod:
|
|
mandatory_access_control:
|
|
type: apparmor
|
|
ceph-utility-config-ceph-ns-key-generator :
|
|
ceph-storage-keys-generator: runtime/default
|
|
init: runtime/default
|
|
EOF
|
|
|
|
helm upgrade --install ceph-utility-config ./ceph-provisioners \
|
|
--namespace=$namespace \
|
|
--values=/tmp/ceph-utility-config.yaml \
|
|
${OSH_EXTRA_HELM_ARGS} \
|
|
${OSH_INFRA_EXTRA_HELM_ARGS_CEPH_DEPLOY:-$(./tools/deployment/common/get-values-overrides.sh ceph-provisioners)} \
|
|
${OSH_EXTRA_HELM_ARGS_CEPH_NS_ACTIVATE}
|
|
|
|
# Deploy Ceph-Utility
|
|
cd ${CURRENT_DIR}
|
|
helm upgrade --install ceph-utility ./artifacts/ceph-utility.tgz --namespace=$namespace
|
|
|
|
# Wait for Deployment
|
|
: "${OSH_INFRA_PATH:="../openstack-helm-infra"}"
|
|
cd "${OSH_INFRA_PATH}"
|
|
./tools/deployment/common/wait-for-pods.sh $namespace |