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:
@@ -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
|
||||
|
Reference in New Issue
Block a user