diff --git a/gnocchi/.helmignore b/gnocchi/.helmignore deleted file mode 100644 index f0c1319444..0000000000 --- a/gnocchi/.helmignore +++ /dev/null @@ -1,21 +0,0 @@ -# Patterns to ignore when building packages. -# This supports shell glob matching, relative path matching, and -# negation (prefixed with !). Only one pattern per line. -.DS_Store -# Common VCS dirs -.git/ -.gitignore -.bzr/ -.bzrignore -.hg/ -.hgignore -.svn/ -# Common backup files -*.swp -*.bak -*.tmp -*~ -# Various IDEs -.project -.idea/ -*.tmproj diff --git a/gnocchi/Chart.yaml b/gnocchi/Chart.yaml deleted file mode 100644 index 7bcf0dea69..0000000000 --- a/gnocchi/Chart.yaml +++ /dev/null @@ -1,25 +0,0 @@ -# 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. - -apiVersion: v1 -description: OpenStack-Helm Gnocchi -name: gnocchi -version: 0.1.0 -home: https://gnocchi.xyz/ -icon: https://gnocchi.xyz/_static/gnocchi-logo.png -sources: - - https://github.com/gnocchixyz/gnocchi - - https://git.openstack.org/cgit/openstack/openstack-helm -maintainers: - - name: OpenStack-Helm Authors diff --git a/gnocchi/requirements.yaml b/gnocchi/requirements.yaml deleted file mode 100644 index 4a8b1c610f..0000000000 --- a/gnocchi/requirements.yaml +++ /dev/null @@ -1,18 +0,0 @@ -# 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. - -dependencies: - - name: helm-toolkit - repository: http://localhost:8879/charts - version: 0.1.0 \ No newline at end of file diff --git a/gnocchi/templates/bin/_bootstrap.sh.tpl b/gnocchi/templates/bin/_bootstrap.sh.tpl deleted file mode 100644 index 533c0a5a3f..0000000000 --- a/gnocchi/templates/bin/_bootstrap.sh.tpl +++ /dev/null @@ -1,20 +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 -ex -{{ .Values.bootstrap.script | default "echo 'Not Enabled'" }} diff --git a/gnocchi/templates/bin/_ceph-admin-keyring.sh.tpl b/gnocchi/templates/bin/_ceph-admin-keyring.sh.tpl deleted file mode 100644 index f3c0a521db..0000000000 --- a/gnocchi/templates/bin/_ceph-admin-keyring.sh.tpl +++ /dev/null @@ -1,31 +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 -ex -export HOME=/tmp - -cat < /etc/ceph/ceph.client.admin.keyring -[client.admin] -{{- if .Values.conf.ceph.admin_keyring }} - key = {{ .Values.conf.ceph.admin_keyring }} -{{- else }} - key = $(cat /tmp/client-keyring) -{{- end }} -EOF - -exit 0 diff --git a/gnocchi/templates/bin/_ceph-keyring.sh.tpl b/gnocchi/templates/bin/_ceph-keyring.sh.tpl deleted file mode 100644 index 68ce85c2cf..0000000000 --- a/gnocchi/templates/bin/_ceph-keyring.sh.tpl +++ /dev/null @@ -1,32 +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 -ex -export HOME=/tmp - -cat < /etc/ceph/ceph.client.{{ .Values.conf.gnocchi.storage.ceph_username }}.keyring - -[client.{{ .Values.conf.gnocchi.storage.ceph_username }}] -{{- if .Values.conf.gnocchi.storage.provided_keyring }} - key = {{ .Values.conf.gnocchi.storage.provided_keyring }} -{{- else }} - key = $(cat /tmp/client-keyring) -{{- end }} -EOF - -exit 0 diff --git a/gnocchi/templates/bin/_clean-secrets.sh.tpl b/gnocchi/templates/bin/_clean-secrets.sh.tpl deleted file mode 100644 index d133adb517..0000000000 --- a/gnocchi/templates/bin/_clean-secrets.sh.tpl +++ /dev/null @@ -1,24 +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 -ex - -exec kubectl delete secret \ - --namespace ${NAMESPACE} \ - --ignore-not-found=true \ - ${RBD_POOL_SECRET} diff --git a/gnocchi/templates/bin/_db-init.sh.tpl b/gnocchi/templates/bin/_db-init.sh.tpl deleted file mode 100644 index e3715d6859..0000000000 --- a/gnocchi/templates/bin/_db-init.sh.tpl +++ /dev/null @@ -1,91 +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 -ex -export HOME=/tmp - -pgsql_superuser_cmd () { - DB_COMMAND="$1" - if [[ ! -z $2 ]]; then - EXPORT PGDATABASE=$2 - fi - if [[ ! -z "${ROOT_DB_PASS}" ]]; then - export PGPASSWORD="${ROOT_DB_PASS}" - fi - psql \ - -h ${DB_FQDN} \ - -p ${DB_PORT} \ - -U ${ROOT_DB_USER} \ - --command="${DB_COMMAND}" - unset PGPASSWORD -} - -if [[ ! -v ROOT_DB_CONNECTION ]]; then - echo "environment variable ROOT_DB_CONNECTION not set" - exit 1 -else - echo "Got DB root connection" -fi - -if [[ -v OPENSTACK_CONFIG_FILE ]]; then - if [[ ! -v OPENSTACK_CONFIG_DB_SECTION ]]; then - echo "Environment variable OPENSTACK_CONFIG_DB_SECTION not set" - exit 1 - elif [[ ! -v OPENSTACK_CONFIG_DB_KEY ]]; then - echo "Environment variable OPENSTACK_CONFIG_DB_KEY not set" - exit 1 - fi - - echo "Using ${OPENSTACK_CONFIG_FILE} as db config source" - echo "Trying to load db config from ${OPENSTACK_CONFIG_DB_SECTION}:${OPENSTACK_CONFIG_DB_KEY}" - - DB_CONN=$(awk -v key=$OPENSTACK_CONFIG_DB_KEY "/^\[${OPENSTACK_CONFIG_DB_SECTION}\]/{f=1} f==1&&/^$OPENSTACK_CONFIG_DB_KEY/{print \$3;exit}" "${OPENSTACK_CONFIG_FILE}") - - echo "Found DB connection: $DB_CONN" -elif [[ -v DB_CONNECTION ]]; then - DB_CONN=${DB_CONNECTION} - echo "Got config from DB_CONNECTION env var" -else - echo "Could not get dbconfig" - exit 1 -fi - -ROOT_DB_PROTO="$(echo $ROOT_DB_CONNECTION | grep '//' | sed -e's,^\(.*://\).*,\1,g')" -ROOT_DB_URL="$(echo $ROOT_DB_CONNECTION | sed -e s,$ROOT_DB_PROTO,,g)" -ROOT_DB_USER="$(echo $ROOT_DB_URL | grep @ | cut -d@ -f1 | cut -d: -f1)" -ROOT_DB_PASS="$(echo $ROOT_DB_URL | grep @ | cut -d@ -f1 | cut -d: -f2)" - -DB_FQDN="$(echo $ROOT_DB_URL | sed -e s,$ROOT_DB_USER:$ROOT_DB_PASS@,,g | cut -d/ -f1 | cut -d: -f1)" -DB_PORT="$(echo $ROOT_DB_URL | sed -e s,$ROOT_DB_USER:$ROOT_DB_PASS@,,g | cut -d/ -f1 | cut -d: -f2)" -DB_NAME="$(echo $ROOT_DB_URL | sed -e s,$ROOT_DB_USER:$ROOT_DB_PASS@,,g | cut -d/ -f2 | cut -d? -f1)" - -DB_PROTO="$(echo $DB_CONN | grep '//' | sed -e's,^\(.*://\).*,\1,g')" -DB_URL="$(echo $DB_CONN | sed -e s,$DB_PROTO,,g)" -DB_USER="$( echo $DB_URL | grep @ | cut -d@ -f1 | cut -d: -f1)" -DB_PASS="$( echo $DB_URL | grep @ | cut -d@ -f1 | cut -d: -f2)" - -#create db -pgsql_superuser_cmd "SELECT 1 FROM pg_database WHERE datname = '$DB_NAME'" | grep -q 1 || pgsql_superuser_cmd "CREATE DATABASE $DB_NAME" - -#create db user -pgsql_superuser_cmd "SELECT * FROM pg_roles WHERE rolname = '$DB_USER';" | tail -n +3 | head -n -2 | grep -q 1 || \ - pgsql_superuser_cmd "CREATE ROLE ${DB_USER} LOGIN PASSWORD '$DB_PASS';" && pgsql_superuser_cmd "ALTER USER ${DB_USER} WITH SUPERUSER" - -#give permissions to user -pgsql_superuser_cmd "GRANT ALL PRIVILEGES ON DATABASE $DB_NAME to $DB_USER;" - diff --git a/gnocchi/templates/bin/_db-sync.sh.tpl b/gnocchi/templates/bin/_db-sync.sh.tpl deleted file mode 100644 index a32db4ec4b..0000000000 --- a/gnocchi/templates/bin/_db-sync.sh.tpl +++ /dev/null @@ -1,21 +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 -ex - -exec gnocchi-upgrade --create-legacy-resource-types diff --git a/gnocchi/templates/bin/_gnocchi-api.sh.tpl b/gnocchi/templates/bin/_gnocchi-api.sh.tpl deleted file mode 100644 index 4cbdcc8281..0000000000 --- a/gnocchi/templates/bin/_gnocchi-api.sh.tpl +++ /dev/null @@ -1,34 +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 -ex -COMMAND="${@:-start}" - -function start () { - if [ -f /etc/apache2/envvars ]; then - # Loading Apache2 ENV variables - source /etc/apache2/envvars - fi - exec apache2 -DFOREGROUND -} - -function stop () { - kill -TERM 1 -} - -$COMMAND diff --git a/gnocchi/templates/bin/_gnocchi-metricd.sh.tpl b/gnocchi/templates/bin/_gnocchi-metricd.sh.tpl deleted file mode 100644 index 0bf5150e96..0000000000 --- a/gnocchi/templates/bin/_gnocchi-metricd.sh.tpl +++ /dev/null @@ -1,21 +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 -x -exec gnocchi-metricd \ - --config-file /etc/gnocchi/gnocchi.conf diff --git a/gnocchi/templates/bin/_gnocchi-statsd.sh.tpl b/gnocchi/templates/bin/_gnocchi-statsd.sh.tpl deleted file mode 100644 index dff4ee627c..0000000000 --- a/gnocchi/templates/bin/_gnocchi-statsd.sh.tpl +++ /dev/null @@ -1,21 +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 -x -exec gnocchi-statsd \ - --config-file /etc/gnocchi/gnocchi.conf diff --git a/gnocchi/templates/bin/_gnocchi-test.sh.tpl b/gnocchi/templates/bin/_gnocchi-test.sh.tpl deleted file mode 100644 index 5f309ad7be..0000000000 --- a/gnocchi/templates/bin/_gnocchi-test.sh.tpl +++ /dev/null @@ -1,68 +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 -ex -export HOME=/tmp - -echo "Test: list archive policies" -gnocchi archive-policy list - -echo "Test: create metric" -gnocchi metric create --archive-policy-name low -METRIC_UUID=$(gnocchi metric list -c id -f value | head -1) -sleep 5 - -echo "Test: show metric" -gnocchi metric show ${METRIC_UUID} - -sleep 5 - -echo "Test: add measures" -gnocchi measures add -m 2017-06-27T12:00:00@31 \ - -m 2017-06-27T12:03:27@20 \ - -m 2017-06-27T12:06:51@41 \ - ${METRIC_UUID} - -sleep 15 - -echo "Test: show measures" -gnocchi measures show ${METRIC_UUID} -gnocchi measures show --aggregation min ${METRIC_UUID} - -echo "Test: delete metric" -gnocchi metric delete ${METRIC_UUID} - -RESOURCE_UUID={{ uuidv4 }} - -echo "Test: create resouce type" -gnocchi resource-type create --attribute name:string --attribute host:string test - -echo "Test: list resource types" -gnocchi resource-type list - -echo "Test: create resource" -gnocchi resource create --attribute name:test --attribute host:testnode1 --create-metric cpu:medium --create-metric memory:low --type test ${RESOURCE_UUID} - -echo "Test: show resource history" -gnocchi resource history --format json --details ${RESOURCE_UUID} -echo "Test: delete resource" -gnocchi resource delete ${RESOURCE_UUID} -echo "Test: delete resource type" -gnocchi resource-type delete test - -exit 0 diff --git a/gnocchi/templates/bin/_storage-init.sh.tpl b/gnocchi/templates/bin/_storage-init.sh.tpl deleted file mode 100644 index 6013b01574..0000000000 --- a/gnocchi/templates/bin/_storage-init.sh.tpl +++ /dev/null @@ -1,60 +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 -x -SECRET=$(mktemp --suffix .yaml) -KEYRING=$(mktemp --suffix .keyring) -function cleanup { - rm -f ${SECRET} ${KEYRING} -} -trap cleanup EXIT - -set -ex -ceph -s -function ensure_pool () { - ceph osd pool stats $1 || ceph osd pool create $1 $2 - local test_luminous=$(ceph tell osd.* version | egrep -c "12.2|luminous" | xargs echo) - if [[ ${test_luminous} -gt 0 ]]; then - ceph osd pool application enable $1 $3 - fi -} -ensure_pool ${RBD_POOL_NAME} ${RBD_POOL_CHUNK_SIZE} "gnocchi-metrics" - -if USERINFO=$(ceph auth get client.${RBD_POOL_USER}); then - KEYSTR=$(echo $USERINFO | sed 's/.*\( key = .*\) caps mon.*/\1/') - echo $KEYSTR > ${KEYRING} -else - #NOTE(Portdirect): Determine proper privs to assign keyring - ceph auth get-or-create client.${RBD_POOL_USER} \ - mon "allow *" \ - osd "allow *" \ - mgr "allow *" \ - -o ${KEYRING} -fi - -ENCODED_KEYRING=$(sed -n 's/^[[:blank:]]*key[[:blank:]]\+=[[:blank:]]\(.*\)/\1/p' ${KEYRING} | base64 -w0) -cat > ${SECRET} < - WSGIDaemonProcess gnocchi processes=1 threads=2 user=gnocchi group=gnocchi display-name=%{GROUP} - WSGIProcessGroup gnocchi - WSGIScriptAlias / "/var/lib/kolla/venv/lib/python2.7/site-packages/gnocchi/rest/app.wsgi" - WSGIApplicationGroup %{GLOBAL} - - ErrorLog /dev/stderr - SetEnvIf X-Forwarded-For "^.*\..*\..*\..*" forwarded - CustomLog /dev/stdout combined env=!forwarded - CustomLog /dev/stdout proxy env=forwarded - - - Require all granted - - - ceph: - monitors: [] - admin_keyring: null - override: - append: - paste: - pipeline:main: - pipeline: gnocchi+auth - composite:gnocchi+noauth: - use: egg:Paste#urlmap - /: gnocchiversions - /v1: gnocchiv1+noauth - composite:gnocchi+auth: - use: egg:Paste#urlmap - /: gnocchiversions - /v1: gnocchiv1+auth - pipeline:gnocchiv1+noauth: - pipeline: gnocchiv1 - pipeline:gnocchiv1+auth: - pipeline: keystone_authtoken gnocchiv1 - app:gnocchiversions: - paste.app_factory: gnocchi.rest.app:app_factory - root: gnocchi.rest.VersionsController - app:gnocchiv1: - paste.app_factory: gnocchi.rest.app:app_factory - root: gnocchi.rest.V1Controller - filter:keystone_authtoken: - paste.filter_factory: keystonemiddleware.auth_token:filter_factory - oslo_config_project: gnocchi - policy: - admin_or_creator: 'role:admin or project_id:%(created_by_project_id)s' - resource_owner: 'project_id:%(project_id)s' - metric_owner: 'project_id:%(resource.project_id)s' - get status: 'role:admin' - create resource: '' - get resource: 'rule:admin_or_creator or rule:resource_owner' - update resource: 'rule:admin_or_creator' - delete resource: 'rule:admin_or_creator' - delete resources: 'rule:admin_or_creator' - list resource: 'rule:admin_or_creator or rule:resource_owner' - search resource: 'rule:admin_or_creator or rule:resource_owner' - create resource type: 'role:admin' - delete resource type: 'role:admin' - update resource type: 'role:admin' - list resource type: '' - get resource type: '' - get archive policy: '' - list archive policy: '' - create archive policy: 'role:admin' - update archive policy: 'role:admin' - delete archive policy: 'role:admin' - create archive policy rule: 'role:admin' - get archive policy rule: '' - list archive policy rule: '' - delete archive policy rule: 'role:admin' - create metric: '' - delete metric: 'rule:admin_or_creator' - get metric: 'rule:admin_or_creator or rule:metric_owner' - search metric: 'rule:admin_or_creator or rule:metric_owner' - list metric: '' - list all metric: 'role:admin' - get measures: 'rule:admin_or_creator or rule:metric_owner' - post measures: 'rule:admin_or_creator' - gnocchi: - DEFAULT: - debug: false - token: - provider: uuid - api: - auth_mode: keystone - #NOTE(portdirect): the bind port should not be defined, and is manipulated - # via the endpoints section. - port: null - statsd: - #NOTE(portdirect): the bind port should not be defined, and is manipulated - # via the endpoints section. - port: null - metricd: - workers: 1 - database: - max_retries: -1 - storage: - driver: ceph - ceph_pool: gnocchi.metrics - ceph_username: gnocchi - ceph_keyring: /etc/ceph/ceph.client.gnocchi.keyring - ceph_conffile: /etc/ceph/ceph.conf - file_basepath: /var/lib/gnocchi - provided_keyring: null - indexer: - driver: postgresql - keystone_authtoken: - auth_type: password - auth_version: v3 - memcache_security_strategy: ENCRYPT - -ceph_client: - configmap: ceph-etc - user_secret_name: pvc-ceph-client-key - -secrets: - identity: - admin: gnocchi-keystone-admin - gnocchi: gnocchi-keystone-user - oslo_db: - admin: gnocchi-db-admin - gnocchi: gnocchi-db-user - oslo_db_indexer: - admin: gnocchi-db-indexer-admin - gnocchi: gnocchi-db-indexer-user - rbd: gnocchi-rbd-keyring - -bootstrap: - enabled: false - ks_user: gnocchi - script: | - openstack token issue - -# typically overridden by environmental -# values, but should include all endpoints -# required by this chart -endpoints: - cluster_domain_suffix: cluster.local - local_image_registry: - name: docker-registry - namespace: docker-registry - hosts: - default: localhost - internal: docker-registry - node: localhost - host_fqdn_override: - default: null - port: - registry: - node: 5000 - identity: - name: keystone - auth: - admin: - username: "admin" - user_domain_name: "default" - password: "password" - project_name: "admin" - project_domain_name: "default" - region_name: "RegionOne" - os_auth_type: "password" - os_tenant_name: "admin" - gnocchi: - username: "gnocchi" - role: "admin" - password: "password" - project_name: "service" - region_name: "RegionOne" - os_auth_type: "password" - os_tenant_name: "service" - user_domain_name: service - project_domain_name: service - hosts: - default: keystone - internal: keystone-api - host_fqdn_override: - default: null - path: - default: /v3 - scheme: - default: 'http' - port: - api: - default: 80 - internal: 5000 - metric: - name: gnocchi - hosts: - default: gnocchi-api - public: gnocchi - host_fqdn_override: - default: null - path: - default: null - scheme: - default: 'http' - port: - api: - default: 8041 - public: 80 - metric_statsd: - name: gnocchi-statsd - hosts: - default: gnocchi-statsd - host_fqdn_override: - default: null - path: - default: null - scheme: - default: null - port: - statsd: - default: 8125 - oslo_db_postgresql: - auth: - admin: - username: postgres - password: password - gnocchi: - username: gnocchi - password: password - hosts: - default: postgresql - host_fqdn_override: - default: null - path: /gnocchi - scheme: postgresql - port: - postgresql: - default: 5432 - oslo_db: - auth: - admin: - username: root - password: password - gnocchi: - username: gnocchi - password: password - hosts: - default: mariadb - host_fqdn_override: - default: null - path: /gnocchi - scheme: mysql+pymysql - port: - mysql: - default: 3306 - oslo_cache: - auth: - # NOTE(portdirect): this is used to define the value for keystone - # authtoken cache encryption key, if not set it will be populated - # automatically with a random value, but to take advantage of - # this feature all services should be set to use the same key, - # and memcache service. - memcache_secret_key: null - hosts: - default: memcache - host_fqdn_override: - default: null - port: - memcache: - default: 11211 - -manifests: - configmap_bin: true - configmap_etc: true - daemonset_metricd: true - daemonset_statsd: true - deployment_api: true - ingress_api: true - job_bootstrap: true - job_clean: true - job_db_drop: false - job_db_init_indexer: true - job_db_init: true - job_image_repo_sync: true - secret_db_indexer: true - job_db_sync: true - job_ks_endpoints: true - job_ks_service: true - job_ks_user: true - job_storage_init: true - pdb_api: true - pod_gnocchi_test: true - secret_db: true - secret_keystone: true - service_api: true - service_ingress_api: true - service_statsd: true diff --git a/tools/deployment/multinode/220-gnocchi.sh b/tools/deployment/multinode/220-gnocchi.sh index 783161774b..2a2d5375c6 100755 --- a/tools/deployment/multinode/220-gnocchi.sh +++ b/tools/deployment/multinode/220-gnocchi.sh @@ -16,7 +16,8 @@ set -xe #NOTE: Wait for deploy -helm upgrade --install gnocchi ./gnocchi \ +: ${OSH_INFRA_PATH:="../openstack-helm-infra"} +helm upgrade --install gnocchi ${OSH_INFRA_PATH}/gnocchi \ --namespace=openstack \ --set pod.replicas.api=2 \ ${OSH_EXTRA_HELM_ARGS} \