ceph-csi/internal/util
Robert Vasek 80dda7cc30 cephfs: detect corrupt ceph-fuse mounts and try to remount
Mounts managed by ceph-fuse may get corrupted by e.g. the ceph-fuse process
exiting abruptly, or its parent container being terminated, taking down its
child processes with it.

This commit adds checks to NodeStageVolume and NodePublishVolume procedures
to detect whether a mountpoint in staging_target_path and/or target_path is
corrupted, and remount is performed if corruption is detected.

Signed-off-by: Robert Vasek <robert.vasek@cern.ch>
2022-03-10 06:05:52 +00:00
..
k8s util: NewK8sClient() should not panic on non-Kubernetes clusters 2021-09-02 11:22:14 +00:00
log cleanup: use os.ReadFile to read file 2022-01-24 05:25:11 +00:00
cephcmds_test.go util: add helper ExecCommandWithTimeout function 2021-12-23 13:36:21 +00:00
cephcmds.go util: add helper ExecCommandWithTimeout function 2021-12-23 13:36:21 +00:00
cephconf.go cleanup: remove ceph.conf WA options which are already fixed 2022-02-04 15:42:32 +00:00
cluster_mapping_test.go cleanup: use os.WriteFile to write files 2022-01-24 05:25:11 +00:00
cluster_mapping.go cleanup: use os.ReadFile to read file 2022-01-24 05:25:11 +00:00
conn_pool_test.go cleanup: use os.WriteFile to write files 2022-01-24 05:25:11 +00:00
conn_pool.go cleanup: use os.ReadFile to read file 2022-01-24 05:25:11 +00:00
connection.go cleanup: remove thick provisioning code 2022-01-28 11:17:15 +00:00
credentials_test.go rbd: add migration secret support to controllerserver functions 2021-12-20 07:34:43 +00:00
credentials.go cleanup: use WriteString instead of Write 2022-01-24 05:25:11 +00:00
crypto_test.go cleanup: move KMS functionality into its own package 2021-08-30 16:31:40 +00:00
crypto.go rbd: log stdError for cryptosetup command 2021-11-18 02:17:15 +00:00
cryptsetup.go rbd: log stdError for cryptosetup command 2021-11-18 02:17:15 +00:00
csiconfig_test.go cleanup: use os.WriteFile to write files 2022-01-24 05:25:11 +00:00
csiconfig.go cleanup: use os.ReadFile to read file 2022-01-24 05:25:11 +00:00
errors_test.go cleanup: addresses paralleltest linter 2021-06-25 11:55:12 +00:00
errors.go cleanup: rename errorPair to pairError 2022-01-24 05:25:11 +00:00
httpserver.go cleanup: move log functions to new internal/util/log package 2021-08-26 09:34:05 +00:00
idlocker_test.go util: remove deleteLock test as it is enforced by the controller 2021-07-22 15:07:49 +00:00
idlocker.go cleanup: move log functions to new internal/util/log package 2021-08-26 09:34:05 +00:00
pidlimit_test.go cleanup: resolves gofumpt issues of internal codes 2021-07-14 19:50:56 +00:00
pidlimit.go util: getCgroupPidsFile produces striped path when extra : present 2021-08-03 06:03:10 +00:00
stripsecrets.go cleanup: resolve nlreturn linter issues 2021-07-22 06:05:01 +00:00
topology_test.go cleanup: resolve nlreturn linter issues 2021-07-22 06:05:01 +00:00
topology.go util: NewK8sClient() should not panic on non-Kubernetes clusters 2021-09-02 11:22:14 +00:00
util_test.go cleanup: use %s instead of %w for t.Errorf 2022-01-24 05:25:11 +00:00
util.go cephfs: detect corrupt ceph-fuse mounts and try to remount 2022-03-10 06:05:52 +00:00
validate.go cleanup: resolve nlreturn linter issues 2021-07-22 06:05:01 +00:00
volid_test.go cleanup: addresses paralleltest linter 2021-06-25 11:55:12 +00:00
volid.go cleanup: resolves gofumpt issues of internal codes 2021-07-14 19:50:56 +00:00