Jan Safranek
45aa59946a
Refactor FindAttachablePluginBySpec out of CSI code path
...
reconstructVolume() is called when kubelet may not have connection to the
API server yet, therefore it cannot get CSIDriver instances to figure out
if a CSI volume is attachable or not.
Refactor reconstructVolume(), so it does not need
FindAttachablePluginBySpec for CSI volumes, because all of them are
deviceMountable (i.e. FindDeviceMountablePluginBySpec always returns the
CSI volume plugin).
2023-06-23 12:28:15 +02:00
Kubernetes Prow Robot
4893c66a48
Merge pull request #116134 from cvvz/fix-111933
...
fix: After a Node is down and take some time to get back to up again, the mount point of the evicted Pods cannot be cleaned up successfully.
2023-04-11 15:35:41 -07:00
Paco Xu
5134520a3b
add lock in volume manager reconciler to avoid data race
...
Signed-off-by: Paco Xu <paco.xu@daocloud.io >
2023-03-17 21:29:10 +08:00
Kubernetes Prow Robot
aa49f001bc
Merge pull request #114701 from goushicui/vlm
...
update comment
2023-03-14 09:38:53 -07:00
weizhichen
a6ffbb41f8
Squashed commit of the following:
...
commit 1b3ae27e7af577372d5aaaf28ea401eb33d1c4df
Author: weizhichen <weizhichen@microsoft.com >
Date: Thu Mar 9 08:39:04 2023 +0000
fix
commit 566e139308e3cec4c9d4765eb4ccc3a735346c2e
Author: weizhichen <weizhichen@microsoft.com >
Date: Thu Mar 9 08:36:32 2023 +0000
fix unit test
commit 13a58ebd25b824dcf854a132e9ac474c8296f0bf
Author: weizhichen <weizhichen@microsoft.com >
Date: Thu Mar 2 03:32:39 2023 +0000
add unit test
commit c984e36e37c41bbef8aec46fe3fe81ab1c6a2521
Author: weizhichen <weizhichen@microsoft.com >
Date: Tue Feb 28 15:25:56 2023 +0000
fix imports
commit 58ec617e0ff1fbd209ca0af3237017679c3c0ad7
Author: weizhichen <weizhichen@microsoft.com >
Date: Tue Feb 28 15:24:21 2023 +0000
delete CheckVolumeExistenceOperation
commit 0d8cf0caa78bdf1f1f84ce011c4cc0e0de0e8707
Author: weizhichen <weizhichen@microsoft.com >
Date: Tue Feb 28 14:29:37 2023 +0000
fix 111933
2023-03-09 09:53:38 +00:00
Jan Safranek
9ca548fcf0
Add metrics for force cleaned mounts after failed reconstruction
...
Count nr. of force cleaned mounts + their failures after a volume fails
reconstruction.
2023-03-06 17:48:59 +01:00
Jan Safranek
bd73aee9db
Add volume reconstruction metrics
...
Count nr. of volumes that kubelet tried to reconstruct + reconstruction
errors.
2023-02-22 13:01:26 +01:00
goushicui
6e0832a5aa
update comment
2022-12-27 00:09:59 +08:00
Kubernetes Prow Robot
a668924cb6
Merge pull request #113255 from claudiubelu/path-filepath-update-kubelet
...
Replaces path.Operation with filepath.Operation (kubelet)
2022-12-09 22:27:41 -08:00
Claudiu Belu
b9bf3e5c49
Replaces path.Operation with filepath.Operation (kubelet)
...
The path module has a few different functions:
Clean, Split, Join, Ext, Dir, Base, IsAbs. These functions do not
take into account the OS-specific path separator, meaning that they
won't behave as intended on Windows.
For example, Dir is supposed to return all but the last element of the
path. For the path "C:\some\dir\somewhere", it is supposed to return
"C:\some\dir\", however, it returns ".".
Instead of these functions, the ones in filepath should be used instead.
2022-11-08 16:05:48 +00:00
Jan Safranek
e575e60ea4
Reconstruct SELinux mount option
...
When reconstructing volumes from disk after kubelet restart, reconstruct
also context=XYZ mount option and add it to the ActualStateOfWorld.
2022-11-08 11:17:38 +01:00
Jan Safranek
3a79466ddd
Reshuffle functions between reconstruct and reconstruc_common
...
Move common functions to reconstruc_common.go and functions used only for
the current (old) reconstruction to reconstruct.go
2022-11-03 16:55:13 +01:00
Jan Safranek
fc245b339b
Refactor ConstructVolumeSpec
...
Return a struct from ConstructVolumeSpec to be able to add more fields to
it later.
2022-11-03 16:55:13 +01:00
Jan Safranek
989e391d08
Move all volume reconstruction code into separate files
...
There is no code change, just moving code around and preparing for the
subsequent commit.
2022-11-02 15:58:21 +01:00