SSL handling: check cert/key before attempting to set
Also update some dependencies and fix tox config
Change-Id: Ief48e2f67130f45b4aa83840636b11313a44bb96 Signed-off-by: Peter Sabaini peter.sabaini@canonical.com
版权所有:中国计算机学会技术支持:开源发展技术委员会
京ICP备13000930号-9
京公网安备 11010802032778号
Overview
The ceph-dashboard charm deploys the Ceph Dashboard, a built-in web-based Ceph management and monitoring application. It works in conjunction with the openstack-loadbalancer charm, which in turn utilises the hacluster charm.
Usage
Configuration
This section covers common and/or important configuration options. See file
config.yamlfor the full list of options, along with their descriptions and default values. See the Juju documentation for details on configuring applications.grafana-api-urlSets the URL of the Grafana API when using embedded graphs. See Embedded Grafana dashboards.
public-hostnameSets the hostname or address of the public endpoint used to access the dashboard.
enable-password-policySets whether certain password restrictions are enforced when a user is created or changes their password.
password-*There are a number of
password-*options which impose constraints on which passwords can be used. These options are ignored unlessenable-password-policyis set to ‘True’.Deployment
We are assuming a pre-existing Ceph cluster.
Deploy ceph-dashboard as a subordinate to the ceph-mon charm:
TLS is a requirement for this charm. Enable it by adding a relation to the vault application:
See Managing TLS certificates in the OpenStack Charms Deployment Guide for more information on TLS.
Load balancer
The dashboard is accessed via a load balancer using VIPs and implemented via the openstack-loadbalancer and hacluster charms:
Now add a relation between the openstack-loadbalancer and ceph-dashboard applications:
Dashboard user
Credentials are needed to log in to the dashboard. Set these up by applying an action to any ceph-dashboard unit. For example, to create an administrator user called ‘admin’:
The command’s output will include a generated password.
The dashboard can then be accessed on the configured VIP and on port 8443:
https://10.5.20.200:8443
Embedded Grafana dashboards
To embed Grafana dashboards within the Ceph dashboard some additional relations are required (Grafana, Telegraf, and Prometheus are assumed to be pre-existing):
Grafana, Telegraf, and Prometheus should be related in the standard way:
When Grafana is integrated with the Ceph Dashboard it requires TLS, so add a relation to Vault (the grafana charm also supports TLS configuration via
ssl_*charm options):Grafana should be configured with the following charm options:
The grafana charm also requires the vonage-status-panel and grafana-piechart-panel plugins. The
install_pluginsconfiguration option should be set to include URLs from which these plugins can be downloaded. They are currently available from https://storage.googleapis.com/plugins-community. For example:Telegraf should be configured with the following charm option:
Currently the dashboard does not autodetect the API endpoint of the Grafana service. It needs to be provided via a configuration option:
Prometheus alerting
To enable alerting for an existing Prometheus service add the following relations:
Ceph Object storage
To enable Object storage management of an existing Ceph RADOS Gateway service add the following relation:
Actions
This section lists Juju actions supported by the charm. Actions allow specific operations to be performed on a per-unit basis. To display action descriptions run
juju actions --schema ceph-dashboard. If the charm is not deployed then see fileactions.yaml.add-userdelete-userDocumentation
The OpenStack Charms project maintains two documentation guides:
Contributing
Please see the OpenStack Charm Guide community section for contribution guidelines. Specifically, see the software contributions section for software contribution guidelines, and the documentation contributions section for guidelines on documentation contribution.
Bugs
Please report bugs on Launchpad. Note the bug submission section on guidelines for reporting bugs.
License
The ceph-dashboard charm is free software, distributed under the Apache 2.0 software licence. See the LICENSE file for more information.