Skip to content

Commit

Permalink
Revert "fix: throw error if volume is down state and with pending sta…
Browse files Browse the repository at this point in the history
…tus, it ..."

This reverts commit beecab6.

Signed-off-by: Neelesh Thakur <[email protected]>
  • Loading branch information
pureneelesh committed Jan 9, 2024
1 parent 8e1460c commit f7de7e3
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions api/server/sdk/volume_ops.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
})
Expand Down

0 comments on commit f7de7e3

Please sign in to comment.