mirror of
https://github.com/TECHNOFAB11/zfs-localpv.git
synced 2025-12-12 14:30:12 +01:00
fix(upgrade): Reverting back to old way of checking the volume status
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>
This commit is contained in:
parent
b0bb8aa059
commit
9ef7d35d81
2 changed files with 2 additions and 1 deletions
|
|
@ -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")
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue