Remove the Ceph related charts from the stx-openstack application

This will remove the rbd-provisioner and ceph-pools-audit charts from
the stx-openstack application and enable it to use the default platform
storage provisioner.

Changes include:
 - Update the rbd-provsioner and ceph-pools-audit helm plugin to provide
   overrides for the namespace defined by
   HELM_NS_STORAGE_PROVISIONER (currently: kube-system).
 - Update the cinder, glance, gnocchi, and nova helm plugins use the
   existing ceph-pool-kube-rbd secret for Ceph client access. This
   allows removing the pvc-ceph-client-key generation from the
   rbd-provisioner chart.
 - Add functions to kube_app.py to create/delete the required Ceph user
   secret for all namespaces of a supported application. This provides
   support for PVCs within the application's namespace(s). In the case
   of stx-openstack, this covers any claims made from the 'openstack'
   namespace.
 - Add functions to kube_app.py to support creating and deleting app
   specific resources that are not handled by the application charts.
   Using this enables copying the 'ceph-etc' configmap from the
   provisioner namespace to the openstack namespace for application use.
 - Add support through the kubernetes API to copy a secret from one
   namespace to another.
 - Add support through the kubernetes API to get, create, delete, and
   copy configmaps.
 - Remove the rbd-provisioner and ceph-pools-audit stevedore plugins
   from the stx-openstack application. Also, re-number the plugins.
 - Update the RBD provisioner to support creating namespaces and Ceph
   user secrets for additional namespaces other than that which the
   provisioner is installed. Also, enable PVCs for default
   namespaces (default and kube-public) against the 'general'
   storageclass.

Change-Id: I387e315545d2c99a1b6baa90d30bdb2a4e08f315
Depends-On: I67dba3f1a3a6e7c8169719ee622ddd533c69be31
Story: 2005424
Task: 30679
Signed-off-by: Robert Church <robert.church@windriver.com>
This commit is contained in:
Robert Church 2019-05-01 05:07:30 -04:00
parent 6b3f535b4d
commit 6cb5df8520
3 changed files with 7 additions and 79 deletions

View File

@ -1,3 +1,3 @@
SRC_DIR="stx-openstack-helm"
COPY_LIST_TO_TAR="$PKG_BASE/../../../helm-charts/rbd-provisioner $PKG_BASE/../../../helm-charts/garbd $PKG_BASE/../../../helm-charts/ceph-pools-audit"
TIS_PATCH_VER=12
COPY_LIST_TO_TAR="$PKG_BASE/../../../helm-charts/garbd"
TIS_PATCH_VER=13

View File

@ -57,9 +57,7 @@ helm repo add local http://localhost:8879/charts
# Make the charts. These produce a tgz file
make nova-api-proxy
make rbd-provisioner
make garbd
make ceph-pools-audit
make keystone-api-proxy
# terminate helm server (the last backgrounded task)

View File

@ -106,64 +106,6 @@ data:
- helm-toolkit
---
schema: armada/Chart/v1
metadata:
schema: metadata/Document/v1
name: openstack-rbd-provisioner
data:
chart_name: rbd-provisioner
release: openstack-rbd-provisioner
namespace: openstack
wait:
timeout: 1800
labels:
app: rbd-provisioner
install:
no_hooks: false
upgrade:
no_hooks: false
pre:
delete:
- type: job
labels:
app: rbd-provisioner
source:
type: tar
location: http://172.17.0.1/helm_charts/starlingx/rbd-provisioner-0.1.0.tgz
subpath: rbd-provisioner
reference: master
dependencies:
- helm-toolkit
---
schema: armada/Chart/v1
metadata:
schema: metadata/Document/v1
name: openstack-ceph-pools-audit
data:
chart_name: ceph-pools-audit
release: openstack-ceph-pools-audit
namespace: openstack
wait:
timeout: 1800
labels:
app: rbd-provisioner
install:
no_hooks: false
upgrade:
no_hooks: false
pre:
delete:
- type: job
labels:
app: osh-openstack-ceph-pools-audit
source:
type: tar
location: http://172.17.0.1/helm_charts/starlingx/ceph-pools-audit-0.1.0.tgz
subpath: ceph-pools-audit
reference: master
dependencies:
- helm-toolkit
---
schema: armada/Chart/v1
metadata:
schema: metadata/Document/v1
name: openstack-mariadb
@ -713,10 +655,10 @@ data:
namespace: openstack
# If we deploy ovs-dpdk on the host, ovs pod will not be created.
# commenting out the wait block until a solution can be implemented
#wait:
# timeout: 1800
# labels:
# release_group: osh-openstack-openvswitch
# wait:
# timeout: 1800
# labels:
# release_group: osh-openstack-openvswitch
install:
no_hooks: false
upgrade:
@ -976,7 +918,7 @@ data:
metrics:
required: false
workarounds:
enable_numa_live_migration: True
enable_numa_live_migration: true
hypervisor:
address_search_enabled: false
network:
@ -2986,17 +2928,6 @@ data:
- openstack-ingress
---
schema: armada/ChartGroup/v1
metadata:
schema: metadata/Document/v1
name: provisioner
data:
description: "Provisioner"
sequenced: true
chart_group:
- openstack-rbd-provisioner
- openstack-ceph-pools-audit
---
schema: armada/ChartGroup/v1
metadata:
schema: metadata/Document/v1
name: openstack-mariadb
@ -3133,7 +3064,6 @@ data:
chart_groups:
- kube-system-ingress
- openstack-ingress
- provisioner
- openstack-mariadb
- openstack-memcached
- openstack-rabbitmq