Ansible playbooks to deploy Ceph, the distributed filesystem.
 
 
 
 
Go to file
Guillaume Abrioux 0bb106045e ceph-volume: refresh lvm metadata cache
When running rhel8 containers on a rhel7 host, after zapping an OSD
there's a discrepancy with the lvmetad cache that needs to be refreshed.
Otherwise, the host still sees the lv and can makes the user confused.
If user tries to redeploy an OSD, it will fail because the LV isn't
present and need to be recreated.

ie:

```
 stderr: lsblk: ceph-block-8/block-8: not a block device
 stderr: blkid: error: ceph-block-8/block-8: No such file or directory
 stderr: Unknown device, --name=, --path=, or absolute path in /dev/ or /sys expected.
usage: ceph-volume lvm prepare [-h] --data DATA [--data-size DATA_SIZE]
                               [--data-slots DATA_SLOTS] [--filestore]
                               [--journal JOURNAL]
                               [--journal-size JOURNAL_SIZE] [--bluestore]
                               [--block.db BLOCK_DB]
                               [--block.db-size BLOCK_DB_SIZE]
                               [--block.db-slots BLOCK_DB_SLOTS]
                               [--block.wal BLOCK_WAL]
                               [--block.wal-size BLOCK_WAL_SIZE]
                               [--block.wal-slots BLOCK_WAL_SLOTS]
                               [--osd-id OSD_ID] [--osd-fsid OSD_FSID]
                               [--cluster-fsid CLUSTER_FSID]
                               [--crush-device-class CRUSH_DEVICE_CLASS]
                               [--dmcrypt] [--no-systemd]
ceph-volume lvm prepare: error: Unable to proceed with non-existing device: ceph-block-8/block-8
```

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1886534

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
2020-10-19 15:07:32 -04:00
.github flake8: run the workflow conditionally 2020-10-06 08:00:58 +02:00
contrib remove ceph restapi references 2019-06-18 09:13:19 +02:00
docs doc: Update methods.rst 2020-09-25 20:08:11 +02:00
group_vars defaults: change defaults value 2020-10-02 07:42:40 +02:00
infrastructure-playbooks infrastructure-playbooks: drop add-osd playbook 2020-10-06 08:54:16 +02:00
library ceph-volume: refresh lvm metadata cache 2020-10-19 15:07:32 -04:00
plugins ipaddrs_in_ranges: fix python indent 2019-10-28 09:23:17 +01:00
profiles Common: Add profiles 2017-07-19 11:50:03 +02:00
roles ceph-osd: Fix check mode for start osds tasks 2020-10-19 20:22:08 +02:00
tests tests: change cephfs pool size 2020-10-06 09:23:52 -04:00
.gitignore remove ceph-agent role and references 2019-06-03 13:35:50 +02:00
.mergify.yml mergify: remove merge on skip ci 2020-06-09 09:30:10 -04:00
.travis.yml travis: enforce ansible-lint 4.2.0 2020-08-18 10:29:19 -04:00
CONTRIBUTING.md doc: update backport section 2019-08-14 16:42:25 +02:00
LICENSE Add Ceph Playbook 2014-03-03 19:08:51 +01:00
Makefile Fixes for Makefile 2019-11-08 09:09:30 -05:00
README-MULTISITE.md README-MULTISITE: Fix syntax issues from markdownlint 2020-09-25 19:55:51 +02:00
README.rst docs: update URLs to point to the RTD links 2020-09-25 21:22:05 +08:00
Vagrantfile defaults: change default grafana-server name 2020-09-29 07:42:26 +02:00
ansible.cfg ansible.cfg: set force_valid_group_names param 2020-09-24 14:03:49 -04:00
ceph-ansible.spec.in doc/tests: bump to ansible 2.9 on master 2020-03-25 08:01:27 +01:00
dashboard.yml defaults: change default grafana-server name 2020-09-29 07:42:26 +02:00
dummy-ansible-hosts Fix Travis 2015-01-21 16:33:26 +01:00
generate_group_vars_sample.sh Add role definitions of ceph-rgw-loadbalancer 2019-06-06 17:12:04 +02:00
raw_install_python.yml install python-xml on SUSE/openSUSE only if python2 is installed 2019-09-27 14:19:32 +02:00
requirements.txt requirements: exclude ansible 2.9.10 2020-06-19 17:32:33 -04:00
rhcs_edits.txt rhcs: update release to 5 for octopus 2020-03-26 22:00:08 +01:00
site-container.yml.sample defaults: change default grafana-server name 2020-09-29 07:42:26 +02:00
site.yml.sample Fix Ansible check mode for site.yml.sample playbook 2020-10-07 00:29:44 +02:00
test.yml Remove spurious ceph. prefix for roles path in test.yml 2019-01-11 11:10:52 +01:00
tox-cephadm.ini tests: remove sleep commands from tox ini files 2020-09-30 17:09:42 -04:00
tox-docker2podman.ini tests: remove sleep commands from tox ini files 2020-09-30 17:09:42 -04:00
tox-external_clients.ini ceph-facts: only get fsid when monitor are present 2020-09-10 13:19:44 -04:00
tox-filestore_to_bluestore.ini tests: migrate to quay.ceph.io registry 2020-09-07 12:54:29 +02:00
tox-podman.ini tests: remove sleep commands from tox ini files 2020-09-30 17:09:42 -04:00
tox-shrink_osd.ini tests: remove sleep commands from tox ini files 2020-09-30 17:09:42 -04:00
tox-update.ini tests: migrate to quay.ceph.io registry 2020-09-07 12:54:29 +02:00
tox.ini infrastructure-playbooks: drop add-osd playbook 2020-10-06 08:54:16 +02:00
vagrant_variables.yml.sample Fix units and add ability to have a dedicated instance 2019-06-10 18:18:46 +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-5.0/