Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 87 for unmounted (0.18 sec)

  1. pkg/kubelet/volumemanager/volume_manager.go

    	// pod and blocks until they are all attached and mounted (reflected in
    	// actual state of the world).
    	// An error is returned if all volumes are not attached and mounted within
    	// the duration defined in podAttachAndMountTimeout.
    	WaitForAttachAndMount(ctx context.Context, pod *v1.Pod) error
    
    	// WaitForUnmount processes the volumes referenced in the specified
    	// pod and blocks until they are all unmounted (reflected in the actual
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 21.5K bytes
    - Viewed (0)
  2. pkg/kubelet/volumemanager/reconciler/reconciler_common.go

    }
    
    func (rc *reconciler) unmountVolumes() {
    	// Ensure volumes that should be unmounted are unmounted.
    	for _, mountedVolume := range rc.actualStateOfWorld.GetAllMountedVolumes() {
    		if !rc.desiredStateOfWorld.PodExistsInVolume(mountedVolume.PodName, mountedVolume.VolumeName, mountedVolume.SELinuxMountContext) {
    			// Volume is mounted, unmount it
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 21 10:23:12 UTC 2024
    - 14.8K bytes
    - Viewed (0)
  3. pkg/kubelet/volumemanager/reconciler/reconstruct_test.go

    				t.Errorf("Error waiting for volumes to get unmounted: %s: %s", err, lastErr)
    			}
    		})
    	}
    }
    
    func verifyTearDownCalls(plugin *volumetesting.FakeVolumePlugin, expected int) error {
    	unmounters := plugin.GetUnmounters()
    	if len(unmounters) == 0 && (expected == 0) {
    		return nil
    	}
    	actualCallCount := 0
    	for _, unmounter := range unmounters {
    		actualCallCount = unmounter.GetTearDownCallCount()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 14.8K bytes
    - Viewed (0)
  4. pkg/kubelet/volumemanager/cache/desired_state_of_world.go

    		// Handling two volumes with the same name and different SELinux context
    		// as two *different* volumes here. Because if a volume is mounted with
    		// an old SELinux context, it must be unmounted first and then mounted again
    		// with the new context.
    		//
    		// This will happen when a pod A with context alpha_t runs and is being
    		// terminated by kubelet and its volumes are being torn down, while a
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 27.1K bytes
    - Viewed (0)
  5. pkg/volume/util/operationexecutor/operation_executor.go

    // state of the world cache after successful mount/unmount.
    type ActualStateOfWorldMounterUpdater interface {
    	// Marks the specified volume as mounted to the specified pod
    	MarkVolumeAsMounted(markVolumeOpts MarkVolumeOpts) error
    
    	// Marks the specified volume as unmounted from the specified pod
    	MarkVolumeAsUnmounted(podName volumetypes.UniquePodName, volumeName v1.UniqueVolumeName) error
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 06:17:25 UTC 2024
    - 42.6K bytes
    - Viewed (0)
  6. pkg/volume/volume.go

    	// This function is called after SetUp()/SetUpAt().
    	GetAttributes() Attributes
    }
    
    // Unmounter interface provides methods to cleanup/unmount the volumes.
    type Unmounter interface {
    	Volume
    	// TearDown unmounts the volume from a self-determined directory and
    	// removes traces of the SetUp procedure.
    	TearDown() error
    	// TearDown unmounts the volume from the specified directory and
    	// removes traces of the SetUp procedure.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 06:17:25 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  7. pkg/kubelet/kubelet_volumes.go

    // pods for the specified volume are mounted or are uncertain.
    func (kl *Kubelet) podVolumesExist(podUID types.UID) bool {
    	if mountedVolumes :=
    		kl.volumeManager.GetPossiblyMountedVolumesForPod(
    			volumetypes.UniquePodName(podUID)); len(mountedVolumes) > 0 {
    		return true
    	}
    	// TODO: This checks pod volume paths and whether they are mounted. If checking returns error, podVolumesExist will return true
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  8. pkg/volume/fc/fc.go

    		// The volume must have been mounted in MountDevice with -o context.
    		b.mountedWithSELinuxContext = mounterArgs.SELinuxLabel != ""
    	}
    	return err
    }
    
    type fcDiskUnmounter struct {
    	*fcDisk
    	mounter    mount.Interface
    	deviceUtil util.DeviceUtil
    	exec       utilexec.Interface
    }
    
    var _ volume.Unmounter = &fcDiskUnmounter{}
    
    // Unmounts the bind mount, and detaches the disk only if the disk
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 06:17:25 UTC 2024
    - 17.4K bytes
    - Viewed (0)
  9. pkg/volume/iscsi/iscsi.go

    	// leave the global mount still mounted, while marking the volume as unused.
    	// The volume can then be mounted on several nodes, resulting in volume
    	// corruption.
    	paths, err := ioutil.GetReliableMountRefs(mounter, mountPath)
    	if io.IsInconsistentReadError(err) {
    		klog.Errorf("Failed to read mount refs from /proc/mounts for %s: %s", mountPath, err)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 06:17:25 UTC 2024
    - 23.4K bytes
    - Viewed (0)
  10. pkg/controller/volume/attachdetach/attach_detach_controller.go

    	// between successive executions
    	ReconcilerLoopPeriod time.Duration
    
    	// ReconcilerMaxWaitForUnmountDuration is the maximum amount of time the
    	// attach detach controller will wait for a volume to be safely unmounted
    	// from its node. Once this time has expired, the controller will assume the
    	// node or kubelet are unresponsive and will detach the volume anyway.
    	ReconcilerMaxWaitForUnmountDuration time.Duration
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 32.6K bytes
    - Viewed (0)
Back to top