18cbf7f6e1
When adding ceph-mon relation to cinder, the charm installs ceph.conf with the update-alternatives via cinder_utils.resource_map(). However when the relation is removed, the alternative isn't cleaned up. This can cause issues if installing a cinder-ceph subordinate charm. The cinder-ceph charm also installs a ceph.conf alternative that will point to the leftover ceph.conf installed by the ceph-mon charm. Added remove_alternative() in ceph-relation-broken hook to ensure that leftover ceph.conf alternatives is removed upon relation removal. Change-Id: I308e62a626f31eb8ef690a09035fe3908920ccc9 Closes-Bug: 1778084 |
||
---|---|---|
actions | ||
hooks | ||
lib | ||
templates | ||
tests | ||
unit_tests | ||
.coveragerc | ||
.gitignore | ||
.gitreview | ||
.project | ||
.pydevproject | ||
.testr.conf | ||
.zuul.yaml | ||
LICENSE | ||
Makefile | ||
README.md | ||
charm-helpers-hooks.yaml | ||
config.yaml | ||
copyright | ||
icon.svg | ||
metadata.yaml | ||
requirements.txt | ||
revision | ||
setup.cfg | ||
test-requirements.txt | ||
tox.ini |
README.md
Ceph Storage Backend for Cinder
Overview
This charm provides a Ceph storage backend for use with the Cinder charm; this allows multiple Ceph storage clusters to be associated with a single Cinder deployment, potentially alongside other storage backends from other vendors.
To use:
juju deploy cinder
juju deploy -n 3 ceph
juju deploy cinder-ceph
juju add-relation cinder-ceph cinder
juju add-relation cinder-ceph ceph
Configuration
The cinder-ceph charm allows the replica count for the Ceph storage pool to be configured. This must be done in advance of relating to the ceph charm:
juju set cinder-ceph ceph-osd-replication-count=3
juju add-relation cinder-ceph ceph
By default, the replica count is set to 2 replicas. Increasing this value increases data resilience at the cost of consuming most real storage in the Ceph cluster.