- Sort Score
- Result 10 results
- Languages All
Results 1 - 7 of 7 for IsOperationFinishedError (0.29 sec)
-
pkg/volume/util/types/types.go
func NewUncertainProgressError(msg string) *UncertainProgressError { return &UncertainProgressError{msg: msg} } // IsOperationFinishedError checks if given error is of type that indicates // operation is finished with a FINAL error. func IsOperationFinishedError(err error) bool { if _, ok := err.(*UncertainProgressError); ok { return false } if _, ok := err.(*TransientOperationFailure); ok {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jan 31 17:23:56 UTC 2024 - 5.2K bytes - Viewed (0) -
pkg/volume/util/operationexecutor/node_expander.go
klog.Errorf(msg.Error()) return false, err, testResponseData{} } } _, resizeErr := ne.volumePlugin.NodeExpand(ne.pluginResizeOpts) if resizeErr != nil { if volumetypes.IsOperationFinishedError(resizeErr) { var markFailedError error ne.pvc, markFailedError = util.MarkNodeExpansionFailed(ne.pvc, ne.kubeClient) if markFailedError != nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Jul 17 19:30:35 UTC 2023 - 5.9K bytes - Viewed (0) -
pkg/volume/csi/csi_mounter.go
defer func() { // Only if there was an error and volume operation was considered // finished, we should remove the directory. if err != nil && volumetypes.IsOperationFinishedError(err) { // attempt to cleanup volume mount dir if removeerr := removeMountDir(c.plugin, dir); removeerr != nil { klog.Error(log("mounter.SetUpAt failed to remove mount dir after error [%s]: %v", dir, removeerr))
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jan 30 10:47:59 UTC 2024 - 21K bytes - Viewed (0) -
pkg/volume/csi/csi_block.go
} // Call NodeStageVolume stagingPath, err := m.stageVolumeForBlock(ctx, csiClient, accessMode, csiSource, attachment) if err != nil { if volumetypes.IsOperationFinishedError(err) { cleanupErr := m.cleanupOrphanDeviceFiles() if cleanupErr != nil { // V(4) for not so serious error klog.V(4).Infof("Failed to clean up block volume directory %s", cleanupErr) } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Sep 11 06:07:40 UTC 2023 - 20.1K bytes - Viewed (0) -
pkg/volume/csi/csi_attacher.go
err = saveVolumeData(dataDir, volDataFileName, data) defer func() { // Only if there was an error and volume operation was considered // finished, we should remove the directory. if err != nil && volumetypes.IsOperationFinishedError(err) { // clean up metadata klog.Errorf(log("attacher.MountDevice failed: %v", err)) if err := removeMountDir(c.plugin, deviceMountPath); err != nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Oct 03 07:38:14 UTC 2023 - 25.9K bytes - Viewed (0) -
pkg/volume/csi/csi_plugin.go
defer func() { // Only if there was an error and volume operation was considered // finished, we should remove the directory. if err != nil && volumetypes.IsOperationFinishedError(err) { // attempt to cleanup volume mount dir. if err = removeMountDir(p, dataDir); err != nil { klog.Error(log("attacher.MountDevice failed to remove mount dir after error [%s]: %v", dataDir, err)) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 14 06:17:25 UTC 2024 - 29.2K bytes - Viewed (0) -
pkg/volume/util/operationexecutor/operation_generator.go
} } func (og *operationGenerator) markDeviceErrorState(volumeToMount VolumeToMount, devicePath, deviceMountPath string, mountError error, actualStateOfWorld ActualStateOfWorldMounterUpdater) { if volumetypes.IsOperationFinishedError(mountError) && actualStateOfWorld.GetDeviceMountState(volumeToMount.VolumeName) == DeviceMountUncertain { if actualStateOfWorld.IsVolumeDeviceReconstructed(volumeToMount.VolumeName) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 14 06:17:25 UTC 2024 - 101.4K bytes - Viewed (0)