RamenDR / ramen

Apache License 2.0
70 stars 51 forks source link

Improve log during restore PVs and PVS for VolRep to reflect the core error #1460

Open ELENAGER opened 2 weeks ago

ELENAGER commented 2 weeks ago

During restore PVs and PVCs for VolRep we are not reflecting the real errors, but printing more general ones. This PR is fixing the problem, now we are able to see, for example, if failure is due to error in restoring k8s resources or due to error in restoring PV/PVCs. Fixes: https://github.com/RamenDR/ramen/issues/1452

ELENAGER commented 2 weeks ago

@nirs the real problem is not in PV/PVC restore, but in underline failure (for example, Kube objects group recover error), but inside function restorePVsAndPVCsFromS3 we were suppressed the real error and printed general error. My fix is adding real error message to be propagated to the top