Ansible playbooks to deploy Ceph, the distributed filesystem.
 
 
 
 
Go to file
Guillaume Abrioux 9034ceee7f 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>
(cherry picked from commit 0bb106045e)
2020-10-19 17:56:48 -04:00
.github flake8: run the workflow conditionally 2020-10-19 13:33:37 -04:00
contrib remove ceph restapi references 2019-06-20 15:15:10 -04:00
docs tests: migrate to quay.ceph.io registry 2020-09-10 21:37:06 +02:00
group_vars facts: refact `ceph_uid` fact 2020-09-21 13:49:03 -04:00
infrastructure-playbooks fs2bs: support `osd_auto_discovery` scenario 2020-09-29 10:48:36 -04:00
library ceph-volume: refresh lvm metadata cache 2020-10-19 17:56:48 -04: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 ceph-crash: Only deploy key to targeted hosts 2020-10-19 20:20:46 +02:00
tests tests: change cephfs pool size 2020-10-06 17:54:51 -04:00
.gitignore remove ceph-agent role and references 2019-06-17 15:56:00 -04:00
.travis.yml travis: enforce ansible-lint 4.2.0 2020-08-18 10:40:19 -04: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 remove ceph-agent role and references 2019-06-17 15:56:00 -04: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 ansible: bump to ansible 2.9 2020-09-15 13:13:09 -04:00
rhcs_edits.txt rhcs_edits: Update grafana version 2020-03-16 18:10:20 -04:00
site-container.yml.sample container: don't install the engine on all clients 2020-09-10 20:36:08 -04:00
site-docker.yml.sample site: symlink site-docker to site-container 2018-11-27 16:47:40 +00:00
site.yml.sample Fix Ansible check mode for site.yml.sample playbook 2020-10-07 07:06:54 +02:00
test.yml Remove spurious ceph. prefix for roles path in test.yml 2019-01-11 11:10:52 +01:00
tox-docker2podman.ini tests: migrate to quay.ceph.io registry 2020-09-10 21:37:06 +02:00
tox-external_clients.ini ceph-facts: only get fsid when monitor are present 2020-09-10 17:42:28 -04:00
tox-filestore_to_bluestore.ini tests: migrate to quay.ceph.io registry 2020-09-10 21:37:06 +02:00
tox-podman.ini tests: migrate to quay.ceph.io registry 2020-09-10 21:37:06 +02:00
tox-shrink_osd.ini tests: migrate to quay.ceph.io registry 2020-09-10 21:37:06 +02:00
tox-update.ini tests: migrate to quay.ceph.io registry 2020-09-10 21:37:06 +02:00
tox.ini tests: reboot and test idempotency on collocation 2020-10-06 09:21:58 -04: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/