Skip to content

Commit

Permalink
not check mount ready in stageVolume (#1390)
Browse files Browse the repository at this point in the history
Signed-off-by: zwwhdls <zww@hdls.me>
  • Loading branch information
zwwhdls authored Jan 18, 2022
1 parent d3d3875 commit 67ed8c2
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions pkg/csi/fuse/nodeserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -283,15 +283,6 @@ func (ns *nodeServer) NodeStageVolume(ctx context.Context, req *csi.NodeStageVol
glog.Info("NodeStageVolume: label already exists on node", "label", fuseLabelKey, "node", node)
}

fluidPath := req.GetVolumeContext()["fluid_path"]
mountType := req.GetVolumeContext()["mount_type"]

// checkMountReady checks the fuse mount path every 3 second for 30 seconds in total.
err = utils.CheckMountReady(fluidPath, mountType)
if err != nil {
return nil, errors.Errorf("fuse pod on node %s is not ready", ns.nodeId)
}

return &csi.NodeStageVolumeResponse{}, nil
}

Expand Down

0 comments on commit 67ed8c2

Please sign in to comment.