diff --git a/pkg/server/cstorvolumeconfig/restore_endpoint.go b/pkg/server/cstorvolumeconfig/restore_endpoint.go index d2974f02..8ede5c18 100644 --- a/pkg/server/cstorvolumeconfig/restore_endpoint.go +++ b/pkg/server/cstorvolumeconfig/restore_endpoint.go @@ -533,7 +533,7 @@ func (rOps *restoreAPIOps) getCStorRestoreStatus( rstStatus = restore.Status if restore.Status != cstorapis.RSTCStorStatusDone && restore.Status != cstorapis.RSTCStorStatusFailed { - poolName := restore.Labels[cstortypes.CStorPoolInstanceLabelKey] + poolName := restore.Labels[cstortypes.CStorPoolInstanceNameLabelKey] isPoolDown := isPoolManagerDown(rOps.k8sclientset, poolName, namespace) if isPoolDown { rstStatus = cstorapis.RSTCStorStatusFailed diff --git a/pkg/server/cstorvolumeconfig/v1alpha1_restore.go b/pkg/server/cstorvolumeconfig/v1alpha1_restore.go index 9570126f..39990406 100644 --- a/pkg/server/cstorvolumeconfig/v1alpha1_restore.go +++ b/pkg/server/cstorvolumeconfig/v1alpha1_restore.go @@ -30,7 +30,7 @@ func (rOps *restoreAPIOps) getV1Alpha1CStorRestoreStatus( rstStatus = restore.Status if restore.Status != openebsapis.RSTCStorStatusDone && restore.Status != openebsapis.RSTCStorStatusFailed { - poolName := restore.Labels[cstortypes.CStorPoolInstanceLabelKey] + poolName := restore.Labels[cstortypes.CStorPoolInstanceNameLabelKey] isPoolDown := isPoolManagerDown(rOps.k8sclientset, poolName, namespace) if isPoolDown { rstStatus = openebsapis.RSTCStorStatusFailed