ceph-csi/examples/rbd
Prasanna Kumar Kalever c9cc36d8db rbd: provide alternatives to preserve the ceph log files
Currently, we delete the ceph client log file on unmap/detach.

This patch provides additional alternatives for users who would like to
persist the log files.

Strategies:
-----------
`remove`: delete log file on unmap/detach
`compress`: compress the log file to gzip on unmap/detach
`preserve`: preserve the log file in text format

Note that the default strategy will be remove on unmap, and these options
can be tweaked from the storage class

Compression size details example:

On Map: (with debug-rbd=20)
---------
$ ls -lh
-rw-r--r-- 1 root root 526K Sep  1 18:15
rbd-nbd-0001-0024-fed5480a-f00f-417a-a51d-31d8a8144c03-0000000000000003-d2e89c87-0b4d-11ec-8ea6-160f128e682d.log

On unmap:
---------
$ ls -lh
-rw-r--r-- 1 root root  33K Sep  1 18:15
rbd-nbd-0001-0024-fed5480a-f00f-417a-a51d-31d8a8144c03-0000000000000003-d2e89c87-0b4d-11ec-8ea6-160f128e682d.gz

Signed-off-by: Prasanna Kumar Kalever <prasanna.kalever@redhat.com>
2021-09-16 13:55:15 +00:00
..
block-pod-clone.yaml e2e: use official CentOS container location 2021-08-03 12:19:46 +00:00
exec-bash.sh Fix static check for .sh files 2019-02-07 12:19:14 +00:00
logs.sh Fix static check for .sh files 2019-02-07 12:19:14 +00:00
plugin-deploy.sh deploy: add vault creation to rbd driver deployment 2020-08-04 16:00:21 +00:00
plugin-teardown.sh deploy: remove vault along with driver 2020-08-04 16:00:21 +00:00
pod-clone.yaml e2e: use docker.io/library as prefix for official images 2020-11-26 13:51:02 +00:00
pod-restore.yaml e2e: use docker.io/library as prefix for official images 2020-11-26 13:51:02 +00:00
pod.yaml e2e: use docker.io/library as prefix for official images 2020-11-26 13:51:02 +00:00
pvc-block-clone.yaml e2e: add block mode PVC clone file 2020-10-15 15:37:14 +00:00
pvc-clone.yaml rbd: Add support for smart cloning 2020-07-10 14:02:12 +00:00
pvc-restore.yaml rbd supports ReadWriteMany for block mode 2019-06-18 04:41:01 +00:00
pvc.yaml Make deployment artifacts with a consistent name pattern. 2019-05-07 14:54:53 +00:00
raw-block-pod.yaml e2e: use official CentOS container location 2021-08-03 12:19:46 +00:00
raw-block-pvc.yaml Make deployment artifacts with a consistent name pattern. 2019-05-07 14:54:53 +00:00
secret.yaml Adds PVC encryption with LUKS 2019-12-16 08:12:44 +00:00
snapshot.yaml cleanup: fix beta apiVersion for csidriver 2021-07-22 09:12:44 +00:00
snapshotclass.yaml cleanup: fix beta apiVersion for csidriver 2021-07-22 09:12:44 +00:00
storageclass.yaml rbd: provide alternatives to preserve the ceph log files 2021-09-16 13:55:15 +00:00