Add uncertain map state to block volumes

Volume mount should be marked as uncertain after NodeStage / NodePublish
timeout or similar error, when the driver can continue with the operation in
background.
This commit is contained in:
Jan Safranek
2020-03-02 12:54:02 +01:00
parent 39ed64ec4c
commit 86a5bd98b6
2 changed files with 25 additions and 14 deletions

View File

@@ -189,7 +189,7 @@ func (m *csiBlockMapper) stageVolumeForBlock(
nil /* MountOptions */)
if err != nil {
return "", errors.New(log("blockMapper.stageVolumeForBlock failed: %v", err))
return "", err
}
klog.V(4).Infof(log("blockMapper.stageVolumeForBlock successfully requested NodeStageVolume [%s]", stagingPath))
@@ -249,7 +249,7 @@ func (m *csiBlockMapper) publishVolumeForBlock(
)
if err != nil {
return "", errors.New(log("blockMapper.publishVolumeForBlock failed: %v", err))
return "", err
}
return publishPath, nil