ceph-csi/internal
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
..
cephfs cephfs: return internal server error 2021-06-07 07:38:48 +00:00
controller cleanup: various source code comment corrections 2021-04-16 10:22:35 +00:00
csi-common util: return actual error from IsMountPoint 2021-06-07 07:38:48 +00:00
journal rbd: store csi.storage.k8s.io/pvc/namespace metadata as Owner 2020-12-09 13:58:48 +00:00
liveness util: replace klog with util logger in liveness.go 2020-08-19 14:38:12 +00:00
rbd rbd: Update pool name in image chain 2021-06-10 21:46:53 +00:00
util util: returns actual error instead of ErrPoolNotFound 2021-06-14 14:41:32 +00:00