ceph-ansible/library
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
..
__init__.py tests for the ceph_volume module 2017-12-11 09:58:06 -06:00
ceph_add_users_buckets.py library: flake8 ceph-ansible modules 2020-10-01 11:23:52 +02:00
ceph_crush.py library: flake8 ceph-ansible modules 2020-10-01 11:23:52 +02:00
ceph_dashboard_user.py library: flake8 ceph-ansible modules 2020-10-01 11:23:52 +02:00
ceph_facts Discover rbd facts. 2018-11-20 15:06:01 +01:00
ceph_fs.py library: add ceph_fs module 2020-10-06 08:02:58 +02:00
ceph_key.py ceph_key: support using different keyring 2020-10-06 07:38:44 +02:00
ceph_pool.py ceph_pool: improve pg_autoscaler support 2020-10-02 07:42:40 +02:00
ceph_volume.py ceph-volume: refresh lvm metadata cache 2020-10-19 15:07:32 -04:00
config_template Using config_template 2015-12-16 17:19:50 +01:00
igw_client.py iscsi module linting 2018-10-30 14:41:36 +01:00
igw_gateway.py igw: Add check for mismatch ceph-iscsi and iscsigws.yml settings 2019-07-03 22:13:19 +02:00
igw_lun.py library: flake8 ceph-ansible modules 2020-10-01 11:23:52 +02:00
igw_purge.py library: flake8 ceph-ansible modules 2020-10-01 11:23:52 +02:00
radosgw_realm.py library: add radosgw_realm module 2020-10-06 10:07:58 +02:00
radosgw_user.py library: add radosgw_user module 2020-10-06 10:07:58 +02:00
radosgw_zone.py library: add radosgw_zone module 2020-10-06 10:07:58 +02:00
radosgw_zonegroup.py library: add radosgw_zonegroup module 2020-10-06 10:07:58 +02:00