Ansible playbooks to deploy Ceph, the distributed filesystem.
 
 
 
 
Go to file
Guillaume Abrioux b46d2bf0a6 ceph_volume: fix bug in `is_lv()`
This function makes the `ceph_volume` module be not idempotent in
containerized context because it tries to run a container and bindmount
directories that no longer exist.

In that case, the `lvs` command being executed returns something
different than `0` so we can't call `json.loads(out)['report'][0]['lv']`
since it might throw an python error.

The idea is to return `True` only if `rc` is equal to `0` and
`len(result)` is greater than `0`, which means the command matched an
LV.

Fixes: #6284

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
(cherry picked from commit ed79bc7a4e)
2021-03-25 14:11:11 +01:00
.github tests: install correct ansible-lint version 2021-02-10 08:32:24 +01:00
contrib remove ceph restapi references 2019-06-20 15:15:10 -04:00
docs Docs: fix some typos 2021-03-12 09:36:11 +01:00
group_vars Fix typo and broken link for documenting RGW frontends 2021-03-03 14:20:26 +01:00
infrastructure-playbooks fix 'command -v' tasks 2021-03-22 13:53:11 +01:00
library ceph_volume: fix bug in `is_lv()` 2021-03-25 14:11:11 +01:00
plugins ipaddrs_in_ranges: fix python indent 2019-10-28 15:54:31 +01:00
profiles Common: Add profiles 2017-07-19 11:50:03 +02:00
roles facts: fix nfs/external cluster scenario 2021-03-18 06:41:00 +01:00
tests requirements.txt: Move the six dependency into the general requirements 2021-03-03 13:22:29 +01:00
.gitignore remove ceph-agent role and references 2019-06-17 15:56:00 -04:00
.mergify.yml mergify: add mergify configuration 2020-12-15 10:03:33 +01:00
CONTRIBUTING.md remove ceph-agent role and references 2019-06-17 15:56:00 -04:00
LICENSE Add Ceph Playbook 2014-03-03 19:08:51 +01:00
Makefile Fixes for Makefile 2020-03-30 22:31:04 +02:00
README-MULTISITE.md README-MULTISITE: Fix syntax issues from markdownlint 2020-09-25 14:48:38 -04:00
README.rst docs: update URLs to point to the RTD links 2020-09-25 10:47:38 -04:00
RELEASE-NOTE.md doc: update release note 2020-04-23 13:27:24 +02:00
Vagrantfile tests: revert vagrant_variable file name detection 2019-11-25 14:52:57 +01:00
ansible.cfg ansible.cfg: set force_valid_group_names param 2020-09-29 16:31:33 +02:00
ceph-ansible.spec.in ansible: bump to ansible 2.9 2020-09-15 13:13:09 -04:00
dashboard.yml node-exporter: exclude client nodes 2020-09-14 16:13:25 -04:00
dummy-ansible-hosts Fix Travis 2015-01-21 16:33:26 +01:00
generate_group_vars_sample.sh fix broken ceph-fetch-keys role 2020-12-15 17:30:42 +01:00
raw_install_python.yml install python-xml on SUSE/openSUSE only if python2 is installed 2019-09-27 17:50:10 +02:00
requirements.txt requirements.txt: Move the six dependency into the general requirements 2021-03-03 13:22:29 +01:00
rhcs_edits.txt defaults: update rhcs dashboard images versions 2021-02-18 18:22:28 +01:00
site-container.yml.sample main: followup on pr 6012 2020-11-12 15:34:12 -05:00
site-docker.yml.sample site: symlink site-docker to site-container 2018-11-27 16:47:40 +00:00
site.yml.sample main: followup on pr 6012 2020-11-12 15:34:12 -05:00
test.yml Remove spurious ceph. prefix for roles path in test.yml 2019-01-11 11:10:52 +01:00
tox-docker2podman.ini common: drop `fetch_directory` feature 2020-12-15 17:30:42 +01:00
tox-external_clients.ini common: drop `fetch_directory` feature 2020-12-15 17:30:42 +01:00
tox-filestore_to_bluestore.ini common: drop `fetch_directory` feature 2020-12-15 17:30:42 +01:00
tox-podman.ini common: drop `fetch_directory` feature 2020-12-15 17:30:42 +01:00
tox-shrink_osd.ini common: drop `fetch_directory` feature 2020-12-15 17:30:42 +01:00
tox-update.ini common: drop `fetch_directory` feature 2020-12-15 17:30:42 +01:00
tox.ini tests: increase nb of rerun in pytest 2021-03-12 17:52:00 +01:00
vagrant_variables.yml.sample Fix units and add ability to have a dedicated instance 2019-06-12 11:48:12 +02:00

README.rst

ceph-ansible
============
Ansible playbooks for Ceph, the distributed filesystem.

Please refer to our hosted documentation here: https://docs.ceph.com/projects/ceph-ansible/en/latest/

You can view documentation for our ``stable-*`` branches by substituting ``master`` in the link
above for the name of the branch. For example: https://docs.ceph.com/projects/ceph-ansible/en/stable-4.0/