Skip to content

Commit

Permalink
fix(upgrade): Reverting back to old way of checking the volume status
Browse files Browse the repository at this point in the history
few customers are using old version of the driver where
Status field is not present. So mount will fail after the
upgrade to the 0.9 or later version.

Reverting back to the checking if finalizer is set to check if
volume is ready to be mounted.

Signed-off-by: Pawan <pawan@mayadata.io>
  • Loading branch information
pawanpraka1 committed Aug 26, 2020
1 parent b0bb8aa commit aff2af0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelogs/unreleased/196-pawanpraka1
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Reverting back to old way of checking the volume status
2 changes: 1 addition & 1 deletion pkg/zfs/mount.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ func verifyMountRequest(vol *apis.ZFSVolume, mountpath string) error {
vol.Spec.OwnerNodeID != NodeID {
return status.Error(codes.Internal, "verifyMount: volume is owned by different node")
}
if vol.Status.State != ZFSStatusReady {
if vol.Finalizers == nil {
return status.Error(codes.Internal, "verifyMount: volume is not ready to be mounted")
}

Expand Down

0 comments on commit aff2af0

Please sign in to comment.