ceph-csi/internal/util
Prasanna Kumar Kalever b6a88dd728 rbd: add volume healer
Problem:
-------
For rbd nbd userspace mounter backends, after a restart of the nodeplugin
all the mounts will start seeing IO errors. This is because, for rbd-nbd
backends there will be a userspace mount daemon running per volume, post
restart of the nodeplugin pod, there is no way to restore the daemons
back to life.

Solution:
--------
The volume healer is a one-time activity that is triggered at the startup
time of the rbd nodeplugin. It navigates through the list of volume
attachments on the node and acts accordingly.

For now, it is limited to nbd type storage only, but it is flexible and
can be extended in the future for other backend types as needed.

From a few feets above:
This solves a severe problem for nbd backed csi volumes. The healer while
going through the list of volume attachments on the node, if finds the
volume is in attached state and is of type nbd, then it will attempt to
fix the rbd-nbd volumes by sending a NodeStageVolume request with the
required volume attributes like secrets, device name, image attributes,
and etc.. which will finally help start the required rbd-nbd daemons in
the nodeplugin csi-rbdplugin container. This will allow reattaching the
backend images with the right nbd device, thus allowing the applications
to perform IO without any interruptions even after a nodeplugin restart.

Signed-off-by: Prasanna Kumar Kalever <prasanna.kalever@redhat.com>
2021-07-16 16:30:58 +00:00
..
aws_metadata_test.go cleanup: addresses paralleltest linter 2021-06-25 11:55:12 +00:00
aws_metadata.go cleanup: resolve godot linter 2021-07-13 06:50:03 +00:00
cephcmds.go util: returns actual error instead of ErrPoolNotFound 2021-06-14 14:41:32 +00:00
cephconf.go cleanup: resolves gofumpt issues of internal codes 2021-07-14 19:50:56 +00:00
conn_pool_test.go cleanup: resolves gofumpt issues of internal codes 2021-07-14 19:50:56 +00:00
conn_pool.go cleanup: address ifshort linter issues 2021-05-26 07:04:32 +00:00
connection.go cleanup: resolve godot linter 2021-07-13 06:50:03 +00:00
credentials.go cleanup: return error type in util.storeKey() 2020-12-09 08:35:35 +00:00
crypto_test.go cleanup: addresses paralleltest linter 2021-06-25 11:55:12 +00:00
crypto.go cleanup: resolves gofumpt issues of internal codes 2021-07-14 19:50:56 +00:00
cryptsetup.go internal: reformat long lines in internal/util package to 120 chars 2021-06-28 14:43:49 +00:00
csiconfig_test.go cleanup: resolves gofumpt issues of internal codes 2021-07-14 19:50:56 +00:00
csiconfig.go cleanup: resolve godot linter 2021-07-13 06:50:03 +00:00
errors_test.go cleanup: addresses paralleltest linter 2021-06-25 11:55:12 +00:00
errors.go cleanup: fix mispell words 2020-11-29 12:47:46 +05:30
httpserver.go cleanup: resolves gofumpt issues of internal codes 2021-07-14 19:50:56 +00:00
idlocker_test.go cleanup: resolves gofumpt issues of internal codes 2021-07-14 19:50:56 +00:00
idlocker.go util: remove deleteLock while we acquire clone operation lock 2021-07-16 12:32:28 +00:00
k8s.go util: rename FatalLog to FatalLogMsg for parity 2020-08-13 09:44:12 +00:00
kms_test.go cleanup: addresses paralleltest linter 2021-06-25 11:55:12 +00:00
kms.go cleanup: resolve godot linter 2021-07-13 06:50:03 +00:00
log.go util: remove unwanted import string from module dependencies 2021-03-24 15:12:13 +00:00
pidlimit_test.go cleanup: resolves gofumpt issues of internal codes 2021-07-14 19:50:56 +00:00
pidlimit.go cleanup: address godot warnings 2020-07-21 08:36:24 +00:00
secretskms_test.go cleanup: addresses paralleltest linter 2021-06-25 11:55:12 +00:00
secretskms.go cleanup: resolve godot linter 2021-07-13 06:50:03 +00:00
stripsecrets.go cleanup: move pkg/ to internal/ 2020-04-23 11:00:59 +00:00
topology_test.go cleanup: resolves gofumpt issues of internal codes 2021-07-14 19:50:56 +00:00
topology.go cleanup: resolves gofumpt issues of internal codes 2021-07-14 19:50:56 +00:00
util_test.go cleanup: resolves gofumpt issues of internal codes 2021-07-14 19:50:56 +00:00
util.go rbd: add volume healer 2021-07-16 16:30:58 +00:00
validate.go internal: reformat long lines in internal/util package to 120 chars 2021-06-28 14:43:49 +00:00
vault_sa_test.go util: VaultTenantSA KMS implementation 2021-07-13 17:16:35 +00:00
vault_sa.go util: make parseTenantConfig() usable for modular KMSs 2021-07-13 17:16:35 +00:00
vault_test.go cleanup: addresses paralleltest linter 2021-06-25 11:55:12 +00:00
vault_tokens_test.go util: split vaultTenantConnection from VaultTokensKMS 2021-07-13 17:16:35 +00:00
vault_tokens.go util: make parseTenantConfig() usable for modular KMSs 2021-07-13 17:16:35 +00:00
vault.go cleanup: resolve godot linter 2021-07-13 06:50:03 +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