#!/bin/bash set -e . /opt/kolla/kolla-common.sh . /opt/kolla/config-gnocchi.sh check_required_vars KEYSTONE_ADMIN_TOKEN \ KEYSTONE_AUTH_PROTOCOL \ KEYSTONE_ADMIN_SERVICE_HOST \ KEYSTONE_ADMIN_SERVICE_PORT \ ADMIN_TENANT_NAME \ GNOCCHI_DB_NAME \ GNOCCHI_DB_USER \ GNOCCHI_DB_PASSWORD \ GNOCCHI_SERVICE_PROTOCOL \ GNOCCHI_SERVICE_PORT \ GNOCCHI_ARCHIVE_POLICY \ GNOCCHI_STORAGE_BACKEND \ GNOCCHI_KEYSTONE_USER \ GNOCCHI_ADMIN_PASSWORD \ GNOCCHI_API_SERVICE_HOST fail_unless_os_service_running keystone fail_unless_db mysql -h ${MARIADB_SERVICE_HOST} -u root -p${DB_ROOT_PASSWORD} mysql <