Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for UnmountVolume (0.19 sec)

  1. pkg/kubelet/volumemanager/reconciler/reconciler_common.go

    			klog.V(5).InfoS(mountedVolume.GenerateMsgDetailed("Starting operationExecutor.UnmountVolume", ""))
    			err := rc.operationExecutor.UnmountVolume(
    				mountedVolume.MountedVolume, rc.actualStateOfWorld, rc.kubeletPodsDir)
    			if err != nil && !isExpectedError(err) {
    				klog.ErrorS(err, mountedVolume.GenerateErrorDetailed(fmt.Sprintf("operationExecutor.UnmountVolume failed (controllerAttachDetachEnabled %v)", rc.controllerAttachDetachEnabled), err).Error())
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 21 10:23:12 UTC 2024
    - 14.8K bytes
    - Viewed (0)
  2. pkg/kubelet/volumemanager/reconciler/reconstruct_common.go

    	}
    	metrics.ForceCleanedFailedVolumeOperationsTotal.Inc()
    	// TODO: Currently cleanupMounts only includes UnmountVolume operation. In the next PR, we will add
    	// to unmount both volume and device in the same routine.
    	err := rc.operationExecutor.UnmountVolume(mountedVolume, rc.actualStateOfWorld, rc.kubeletPodsDir)
    	if err != nil {
    		metrics.ForceCleanedFailedVolumeOperationsErrorsTotal.Inc()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 09 07:34:33 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  3. pkg/volume/portworx/portworx.go

    	// Detach a volume
    	DetachVolume(unmounter *portworxVolumeUnmounter) error
    	// Mount a volume
    	MountVolume(mounter *portworxVolumeMounter, mountDir string) error
    	// Unmount a volume
    	UnmountVolume(unmounter *portworxVolumeUnmounter, mountDir string) error
    	// Resize a volume
    	ResizeVolume(spec *volume.Spec, newSize resource.Quantity, host volume.VolumeHost) error
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 06:17:25 UTC 2024
    - 13.6K bytes
    - Viewed (0)
  4. pkg/volume/portworx/portworx_util.go

    	if err != nil {
    		klog.Errorf("Error mounting Portworx Volume (%v) on Path (%v): %v", m.volName, mountPath, err)
    		return err
    	}
    	return nil
    }
    
    // UnmountVolume unmounts a Portworx Volume
    func (util *portworxVolumeUtil) UnmountVolume(u *portworxVolumeUnmounter, mountPath string) error {
    	driver, err := util.getLocalPortworxDriver(u.plugin.host)
    	if err != nil || driver == nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Sep 16 11:12:06 UTC 2022
    - 12.2K bytes
    - Viewed (0)
  5. pkg/volume/util/operationexecutor/operation_generator.go

    				// There is nothing else we can do. Hope that UnmountVolume will be re-tried shortly.
    				klog.Errorf(volumeToUnmount.GenerateErrorDetailed("UnmountVolume.MarkVolumeMountAsUncertain failed", markMountUncertainErr).Error())
    			}
    
    			// On failure, return error. Caller will log and retry.
    			eventErr, detailedErr := volumeToUnmount.GenerateError("UnmountVolume.TearDown failed", unmountErr)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 06:17:25 UTC 2024
    - 101.4K bytes
    - Viewed (0)
  6. pkg/volume/portworx/portworx_test.go

    	return nil
    }
    
    func (fake *fakePortworxManager) MountVolume(b *portworxVolumeMounter, mountPath string) error {
    	fake.mountCalled = true
    	return nil
    }
    
    func (fake *fakePortworxManager) UnmountVolume(c *portworxVolumeUnmounter, mountPath string) error {
    	return nil
    }
    
    func (fake *fakePortworxManager) CreateVolume(c *portworxVolumeProvisioner) (volumeID string, volumeSizeGB int64, labels map[string]string, err error) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 21 02:17:04 UTC 2021
    - 7.4K bytes
    - Viewed (0)
  7. pkg/volume/util/operationexecutor/operation_executor_test.go

    			volumesToUnmount[i] = MountedVolume{
    				PodName:    volumetypes.UniquePodName(podName),
    				VolumeName: v1.UniqueVolumeName(pdName),
    				PodUID:     pod.UID,
    			}
    		}
    		oe.UnmountVolume(volumesToUnmount[i], nil /* actualStateOfWorldMounterUpdater */, "" /*podsDir*/)
    	}
    
    	// Assert
    	if !isOperationRunConcurrently(ch, quit, numNonAttachableVolumesToUnmount+numAttachableVolumesToUnmount) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 06:17:25 UTC 2024
    - 26.9K bytes
    - Viewed (0)
  8. pkg/volume/util/operationexecutor/operation_executor.go

    	MountVolume(waitForAttachTimeout time.Duration, volumeToMount VolumeToMount, actualStateOfWorld ActualStateOfWorldMounterUpdater, isRemount bool) error
    
    	// If a volume has 'Filesystem' volumeMode, UnmountVolume unmounts the
    	// volume from the pod specified in volumeToUnmount and updates the actual
    	// state of the world to reflect that.
    	//
    	// For 'Block' volumeMode, this method unmaps symbolic link to the volume
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 06:17:25 UTC 2024
    - 42.6K bytes
    - Viewed (0)
  9. pkg/volume/csi/csi_block.go

         - NodeStageVolume
       - ASW.MarkDeviceAsMounted
       - csi.GetPodDeviceMapPath
       - csi.MapPodDevice
         - NodePublishVolume
       - util.MapBlockVolume
       - ASW.MarkVolumeAsMounted
    
     - operation_executor.UnmountVolume
       - csi.GetPodDeviceMapPath
       - util.UnmapBlockVolume
       - csi.UnmapPodDevice
         - NodeUnpublishVolume
       - ASW.MarkVolumeAsUnmounted
    
     - operation_executor.UnmountDevice
       - csi.TearDownDevice
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Sep 11 06:07:40 UTC 2023
    - 20.1K bytes
    - Viewed (0)
  10. pkg/kubelet/volumemanager/reconciler/reconciler_test.go

    			volumeToUnmount := operationexecutor.MountedVolume{
    				PluginName: "fake-file-plugin",
    				VolumeSpec: tmpSpec}
    			err := oex.UnmountVolume(volumeToUnmount, asw, "" /* podsDir */)
    			// Assert
    			if assert.Error(t, err) {
    				assert.Contains(t, err.Error(), tc.expectedErrMsg)
    			}
    		})
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 09 07:34:33 UTC 2024
    - 75.4K bytes
    - Viewed (0)
Back to top