Tests: pin boto3
For https://github.com/boto/boto3/issues/4398
Also lint updates
Signed-off-by: Peter Sabaini peter.sabaini@canonical.com Change-Id: Ieb248434b482f513060ca8b453e2068d51fde9cf
版权所有:中国计算机学会技术支持:开源发展技术委员会
京ICP备13000930号-9
京公网安备 11010802032778号
Overview
Ceph is a unified, distributed storage system designed for excellent performance, reliability, and scalability.
The ceph-radosgw charm deploys the RADOS Gateway, a S3 and Swift compatible HTTP gateway. The deployment is done within the context of an existing Ceph cluster.
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.pool-typeThe
pool-typeoption dictates the storage pool type. See section ‘Ceph pool type’ for more information.sourceThe
sourceoption states the software sources. A common value is an OpenStack UCA release (e.g. ‘cloud:xenial-queens’ or ‘cloud:bionic-ussuri’). See Ceph and the UCA. The underlying host’s existing apt sources will be used if this option is not specified (this behaviour can be explicitly chosen by using the value of ‘distro’).Ceph pool type
Ceph storage pools can be configured to ensure data resiliency either through replication or by erasure coding. This charm supports both types via the
pool-typeconfiguration option, which can take on the values of ‘replicated’ and ‘erasure-coded’. The default value is ‘replicated’.For this charm, the pool type will be associated with Object storage.
Replicated pools
Replicated pools use a simple replication strategy in which each written object is copied, in full, to multiple OSDs within the cluster.
The
ceph-osd-replication-countoption sets the replica count for any object stored within the rgw pools. Increasing this value increases data resilience at the cost of consuming more real storage in the Ceph cluster. The default value is ‘3’.Erasure coded pools
Erasure coded pools use a technique that allows for the same resiliency as replicated pools, yet reduces the amount of space required. Written data is split into data chunks and error correction chunks, which are both distributed throughout the cluster.
When using erasure coded pools for Object storage multiple pools will be created: one erasure coded pool (‘rgw.buckets.data’ for storing actual RGW data) and several replicated pools (for storing RGW omap metadata). The
ceph-osd-replication-countconfiguration option only applies to the metadata (replicated) pools.Erasure coded pools can be configured via options whose names begin with the
ec-prefix.See Ceph Erasure Coding in the OpenStack Charms Deployment Guide for more information.
Ceph BlueStore compression
This charm supports BlueStore inline compression for its associated Ceph storage pool(s). The feature is enabled by assigning a compression mode via the
bluestore-compression-modeconfiguration option. The default behaviour is to disable compression.The efficiency of compression depends heavily on what type of data is stored in the pool and the charm provides a set of configuration options to fine tune the compression behaviour.
Deployment
Ceph RADOS Gateway is often containerised. Here a single unit is deployed to a new container on machine ‘1’ within an existing Ceph cluster:
If the RADOS Gateway is being integrated into OpenStack then a relation to the keystone application is needed:
Expose the service:
The Gateway can be accessed over port 80 (as per
juju status ceph-radosgwoutput).Multi-site replication
The charm supports native replication between multiple RADOS Gateway deployments. This is documented under Ceph RADOS Gateway multisite replication in the OpenStack Charms Deployment Guide.
Tenant namespacing
By default, Ceph RADOS Gateway puts all tenant buckets into the same global namespace, disallowing multiple tenants to have buckets with the same name. Tenant namespacing can be enabled in this charm by deploying with configuration like:
Enabling tenant namespacing will place all tenant buckets into their own namespace under their tenant id, as well as adding the tenant’s ID parameter to the Keystone endpoint registration to allow seamless integration with OpenStack. Tenant namespacing cannot be toggled on in an existing installation as it will remove tenant access to existing buckets. Toggling this option on an already deployed RADOS Gateway will have no effect.
Access
For security reasons the charm is not designed to administer the Ceph cluster. A user (e.g. ‘ubuntu’) for the Ceph Object Gateway service will need to be created manually:
Keystone integration (Swift)
Ceph RGW supports Keystone authentication of Swift requests. This is enabled by adding a relation to an existing keystone application:
High availability
When more than one unit is deployed with the hacluster application the charm will bring up an HA active/active cluster.
There are two mutually exclusive high availability options: using virtual IP(s) or DNS. In both cases the hacluster subordinate charm is used to provide the Corosync and Pacemaker backend HA functionality.
See OpenStack high availability in the OpenStack Charms Deployment Guide for details.
S3 Interface Support
This charm provides s3 charm interface support. This means it can act as a provider for applications wishing to make use of S3 object storage via this relation. An application that implements the s3 requirer side of this relation will can be related to ceph-radosgw. Using the mysql-operator charm as an example:
Upon forming that relation, ceph-radosgw will create a bucket for use by the requirer, and transmit access information back to the requirer. The requirer then could use this to connect to the S3 endpoint to store application data.
Only a single bucket will be created per requirer application. If an application relation is removed, the bucket will be preserved. If subsequently the application reestablishes the relation, the bucket will be reused.
Network spaces
This charm supports the use of Juju network spaces (Juju
v.2.0). This feature optionally allows specific types of the application’s network traffic to be bound to subnets that the underlying hardware is connected to.API endpoints can be bound to distinct network spaces supporting the network separation of public, internal and admin endpoints.
For example, providing that spaces ‘public-space’, ‘internal-space’, and ‘admin-space’ exist, the deploy command above could look like this:
Alternatively, configuration can be provided as part of a bundle:
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 ceph-radosgw. If the charm is not deployed then see fileactions.yaml.pausepromotereadonlyreadwriteresumetidydefaultsenable-buckets-syncdisable-buckets-syncreset-buckets-syncDocumentation
The OpenStack Charms project maintains two documentation guides:
Bugs
Please report bugs on Launchpad.