From f7de7e369e3317a590911470b736e13499f435b7 Mon Sep 17 00:00:00 2001 From: Neelesh Thakur Date: Tue, 9 Jan 2024 14:04:03 -0700 Subject: [PATCH] Revert "fix: throw error if volume is down state and with pending status, it ..." This reverts commit beecab6880881f0a0c07ab3e07f13c9140524d90. Signed-off-by: Neelesh Thakur --- api/server/sdk/volume_ops.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/api/server/sdk/volume_ops.go b/api/server/sdk/volume_ops.go index a1a1cdf93..828c3d52a 100644 --- a/api/server/sdk/volume_ops.go +++ b/api/server/sdk/volume_ops.go @@ -63,11 +63,6 @@ func (s *VolumeServer) waitForVolumeReady(ctx context.Context, id string) (*api. return false, nil } - // The volume has entered a state of that might not recover from hence the status might be down and will be in pending state forever. - if v.GetStatus() == api.VolumeStatus_VOLUME_STATUS_DOWN && v.GetState() != api.VolumeState_VOLUME_STATE_PENDING { - return false, status.Errorf(codes.Internal, "Volume id %s got created but due to Internal issues is in Down State. The Volume creation needs to be retried.", v.GetId()) - } - // Continue waiting return true, nil })