ceph-csi/internal/util
Yati Padia 095a82f37d util: returns actual error instead of ErrPoolNotFound
This commit returns actual error returned by the go-ceph API
to the function GetPoolName(..) instead of just returning
ErrPoolNotFound everytime there is error getting the pool id.
There is a issue reported in which the snapshot creation
takes much more time to reach True state
(i.e., between 2-7 mins) and keeps trying to create with
below error though pool is present:
rpc error: code = NotFound desc = pool not found: pool ID (21)
not found in Ceph cluster.

Since we cannot interpret the actual error for the delay in
snapshot creation, it is required to return the actual error
as well so that we can uderstand the reason.

Signed-off-by: Yati Padia <ypadia@redhat.com>
2021-06-14 14:41:32 +00:00
..
aws_metadata_test.go util: add AmazonMetadata KMS provider 2021-04-06 07:33:54 +00:00
aws_metadata.go cleanup: fix codespell error in internal/utils package 2021-06-11 08:04:07 +00:00
cephcmds.go util: returns actual error instead of ErrPoolNotFound 2021-06-14 14:41:32 +00:00
cephconf.go cephfs: enable ceph-fuse big_writes by default 2021-04-19 07:08:57 +00:00
conn_pool_test.go cleanup: address ifshort linter issues 2021-05-26 07:04:32 +00:00
conn_pool.go cleanup: address ifshort linter issues 2021-05-26 07:04:32 +00:00
connection.go util: use ClusterConnection.Copy() for re-using connections 2021-03-17 07:50:09 +00:00
credentials.go cleanup: return error type in util.storeKey() 2020-12-09 08:35:35 +00:00
crypto_test.go util: move GetID() from EncryptionKMS to VolumeEncryption 2021-03-24 12:09:04 +00:00
crypto.go util: add VolumeEncryption.StoreCryptoPassphrase() 2021-04-14 03:59:28 +00:00
cryptsetup.go rbd: make sure csi rbd pv encryption defaulting to luks2 version 2020-10-13 05:11:25 +00:00
csiconfig_test.go cleanup: address gosec warnings 2020-07-21 08:36:24 +00:00
csiconfig.go cleanup: standardize error format in util.readClusterInfo() 2020-12-09 08:35:35 +00:00
errors_test.go cleanup: address ifshort linter issues 2021-05-26 07:04:32 +00:00
errors.go cleanup: fix mispell words 2020-11-29 12:47:46 +05:30
httpserver.go util: enable golang profiling 2021-05-25 10:41:22 +00:00
idlocker_test.go journal: Add additional operation based locking 2020-07-21 13:25:19 +00:00
idlocker.go util: rename ErrorLog to ErrorLogMsg to parity 2020-08-13 09:44:12 +00:00
k8s.go util: rename FatalLog to FatalLogMsg for parity 2020-08-13 09:44:12 +00:00
kms_test.go util: rewrite GetKMS() to use KMS provider plugin API 2021-03-24 12:09:04 +00:00
kms.go cleanup: various source code comment corrections 2021-04-16 10:22:35 +00:00
log.go util: remove unwanted import string from module dependencies 2021-03-24 15:12:13 +00:00
pidlimit_test.go cleanup: address godot warnings 2020-07-21 08:36:24 +00:00
pidlimit.go cleanup: address godot warnings 2020-07-21 08:36:24 +00:00
secretskms_test.go util: move GetID() from EncryptionKMS to VolumeEncryption 2021-03-24 12:09:04 +00:00
secretskms.go cleanup: various source code comment corrections 2021-04-16 10:22:35 +00:00
stripsecrets.go cleanup: move pkg/ to internal/ 2020-04-23 11:00:59 +00:00
topology_test.go cleanup: address godot warnings 2020-07-21 08:36:24 +00:00
topology.go cleanup: standardize error format in util.GetTopologyFromDomainLabels() 2020-12-09 08:35:35 +00:00
util_test.go util: update unit testing for deep flatten 2020-07-08 05:48:42 +00:00
util.go util: return actual error from IsMountPoint 2021-06-07 07:38:48 +00:00
validate.go cleanup: fix mispell words 2020-11-29 12:47:46 +05:30
vault_test.go util: rewrite GetKMS() to use KMS provider plugin API 2021-03-24 12:09:04 +00:00
vault_tokens_test.go util: move GetID() from EncryptionKMS to VolumeEncryption 2021-03-24 12:09:04 +00:00
vault_tokens.go cleanup: address ifshort linter issues 2021-05-26 07:04:32 +00:00
vault.go cleanup: address wasted assign issues 2021-06-03 09:51:14 +00:00
volid_test.go cleanup: address godot warnings 2020-07-21 08:36:24 +00:00
volid.go cleanup: fix mispell words 2020-11-29 12:47:46 +05:30