Fix mountoption issue in rbd

use mountoptions when mounting rbd to stagingpath
in stagevolume request, add E2E for mount options

fixes: #846
updates: #757

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
(cherry picked from commit b4e6504e9b)
This commit is contained in:
Madhu Rajanna
2020-03-02 14:01:44 +05:30
committed by Madhu Rajanna
parent 8e870fd858
commit 90f62308f2
3 changed files with 46 additions and 0 deletions

View File

@ -332,6 +332,7 @@ func (ns *NodeServer) mountVolumeToStagePath(ctx context.Context, req *csi.NodeS
}
opt := []string{"_netdev"}
opt = csicommon.ConstructMountOptions(opt, req.GetVolumeCapability())
isBlock := req.GetVolumeCapability().GetBlock() != nil
if isBlock {