Commit Graph

3211 Commits

Author SHA1 Message Date
mengjiao.liu
d9138069fe fix VolumeMount permissions with subpaths only apply the right permissions to the last directory 2021-02-03 16:25:47 +08:00
Jiawei Wang
e76f60d2b8 Update gce-pd volume topology label to GA 2021-02-02 19:13:57 -08:00
Kubernetes Prow Robot
ee2b7a5049 Merge pull request #98049 from pacoxu/enhancements/redir-links
fix all keps links 404 for kep folder migration
2021-02-01 21:48:28 -08:00
Mike Dame
ba72411aa2 Move GetPersistentVolumeClaimClass to component-helpers
The goal of this move is related to issue 89930, to break the dependence
of scheduling plugins on internal helpers. This function can easily move to
component-helpers where it will be used by other components as well.
2021-02-01 10:48:38 -05:00
pacoxu
a10bdfed09 fix all keps links 404 for kep folder migration
Signed-off-by: pacoxu <paco.xu@daocloud.io>
2021-02-01 19:41:59 +08:00
Jiaxin Shan
e01a21469b Fix ALPHA stability level reference link 2021-01-31 15:39:04 -08:00
Kubernetes Prow Robot
c04058418f Merge pull request #98243 from Jiawei0227/unregister-plugin
Disable in-tree plugin without enabling CSI migration
2021-01-29 12:59:48 -08:00
Kubernetes Prow Robot
125a5f10a6 Merge pull request #96599 from tanjing2020/master
fix staticcheck:pkg/volume/testing
2021-01-28 18:43:40 -08:00
jornshen
c88cb14777 combine volumn latency and error metrics 2021-01-23 16:19:26 +08:00
Jiawei Wang
bda557b4bc Disable in-tree plugin without enabling CSI migration
This commit replaces the CSIMigrationXXXComplete flag
with InTreePluginXXUnregister flag. This new flag will
be a superset of the CSIMigrationXXXComplete. But this
decouple the plugin unregister from CSI migration. So
if a K8s distribution want to go directly with CSI and
do not support in-tree, they can use this flag directly.

Testing:
1. Enable the InTreePluginXXUnregister and not CSIMigrationXXX,
verify that the PVC using old plugin name will have error
saying cannot find the plugin
2. Enable both the InTreePluginXXUnregister and CSIMigrationXXX
verify that the PVC using old plugin name will start to use
the migrated CSI plugin
2021-01-22 16:58:51 -08:00
Kubernetes Prow Robot
a64c7ed1dc Merge pull request #97930 from JieJhih/golint/fs
fix golint in volume fs
2021-01-19 13:14:00 -08:00
Christian Huffman
15da65d9ae Include unit test 2021-01-19 16:10:51 -05:00
Christian Huffman
df3119e815 Adjust defer to correctly call 2021-01-19 16:08:25 -05:00
fankangbest
b9afd2d34a do not remove volume dir when saveVolumeData fails 2021-01-19 15:53:10 -05:00
xiongzhongliang
99e1df8367 Remove duplicate package import in empty_dir_test.go 2021-01-20 00:51:35 +08:00
Jing Xu
cd05922449 Add logs in GCE PD attach and mount
Add a log during verifyDevicePath call so that we can differentiate the
operation hanging case with the path not exist case.

Change-Id: I37b5166859bb99f4695a2ff188682c06f82dc13a
2021-01-12 14:11:18 -08:00
JieJhih Jhang
f1829a7744 fix golint in volume fs 2021-01-12 06:35:52 +08:00
Jordan Liggitt
25ba5c5480 Use gluster client filter 2021-01-11 11:55:38 -05:00
Chris Henzie
736b7e15b7 Remove duplicate test CSI plugin constructor logic 2021-01-06 16:32:41 -08:00
Chris Henzie
359b9e3383 Ensure CSI test plugin informers are synced before returning
This way of syncing informers ensures all informers generated from these
factories are synced. Informers are lazy loaded, and only created once a
user calls .Informer() (which was why the .PollImmediate() worked).
Asserting the number of synced types to ensure everything is set up
correctly.
2021-01-06 16:11:50 -08:00
Chris Henzie
257704b30d Remove setupInformer argument from test CSI plugin constructor 2021-01-06 16:11:50 -08:00
Chris Henzie
70eddfefec Ensure goroutines exit in CSI attacher tests
The reason for adding an expectedVolumeHost field is to prevent a
channel read from hanging when a test fails prior to creating the
VolumeAttachment watch.
2021-01-06 16:11:50 -08:00
Chris Henzie
f098ada9d1 Extract watch reactor out of test CSI plugin constructor 2021-01-06 16:11:50 -08:00
Chris Henzie
195a5af23b Make volume attachment watch timeout configurable for csiAttacher 2021-01-06 16:11:39 -08:00
Chris Henzie
b4e3f272b9 Remove unused waitSleepTime field in csiAttacher 2021-01-06 15:45:56 -08:00
Kubernetes Prow Robot
39483aa095 Merge pull request #96889 from jsafrane/fix-kubelet-symlink
Fix loopback device lookup
2021-01-05 20:57:51 -08:00
Kubernetes Prow Robot
8b24d1f2f9 Merge pull request #96806 from CKchen0726/master
remove input parameter that is invalid before
2021-01-05 13:27:53 -08:00
Kubernetes Prow Robot
72ede75d9c Merge pull request #97587 from heqg/typo-expected-01
Fix typo in pkg/volume/rbd/rbd_test.go
2021-01-05 11:46:54 -08:00
Kubernetes Prow Robot
07bd985724 Merge pull request #96561 from ialidzhikov/cleanup/csi-node-info
Remove CSINodeInfo feature gate
2021-01-05 11:46:00 -08:00
he.qingguo
3e4e50a3b9 Fix typo in pkg/volume/rbd/rbd_test.go
Signed-off-by: he.qingguo <he.qingguo@zte.com.cn>
2020-12-30 13:58:41 +08:00
Kubernetes Prow Robot
0f7c2dc314 Merge pull request #97082 from andyzhangx/azurefile-actimeo
fix: azure file latency issue for metadata-heavy workloads
2020-12-21 19:12:25 -08:00
andyzhangx
8d43976b74 fix azure file secret not found issue 2020-12-21 11:17:40 +00:00
Kubernetes Prow Robot
b538d23066 Merge pull request #96844 from gnufied/use-force-unmount
Use force umount for nfs volumes
2020-12-18 12:32:25 -08:00
Chris Henzie
9d8f994d4e Separate test Kubelet and AttachDetach VolumeHost types
fakeVolumeHost previously implemented both the KubeletVolumeHost and
AttachDetachVolumeHost interfaces. This design makes it difficult to test the
CSIAttacher since it behaves differently depending on what type of
VolumeHost is supplied.
2020-12-17 15:17:04 -08:00
Chris Henzie
53cae84aea Move fakeVolumeHost logic into a separate file 2020-12-17 15:17:04 -08:00
Jan Safranek
357a8c3f55 Fix loopback device lookup
In case /var/lib/kubelet is a symlink, "losetup -j <device in
/var/lib/kubelet>" will show the device paths with symlinks fully
evaluated.

Fix the parsing routine and expand symlinks in the path that we want to
find in "losetup -j" output.
2020-12-16 09:33:51 +01:00
Hemant Kumar
379daa6aff Use force umount for nfs volumes 2020-12-15 11:50:57 -05:00
ialidzhikov
bc432124a2 Remove CSINodeInfo feature gate
Signed-off-by: ialidzhikov <i.alidjikov@gmail.com>
2020-12-10 09:58:22 +02:00
Chris Henzie
80bd46ce46 Prevent data race in volume plugin manager 2020-12-09 14:32:49 -08:00
Kubernetes Prow Robot
f8db0d91de Merge pull request #97013 from jsafrane/fc-fixcorrupted-fs
Fix FibreChannel volume plugin corrupting filesystem on detach
2020-12-08 21:06:33 -08:00
Kubernetes Prow Robot
d5430313bf Merge pull request #96751 from jsafrane/deprecation-log
Lower the frequency of volume plugin deprecation warning
2020-12-08 20:02:32 -08:00
Kubernetes Prow Robot
984bc043d5 Merge pull request #96593 from pandaamanda/typo_fix
fix typo and format for klog
2020-12-08 17:29:43 -08:00
Kubernetes Prow Robot
4a4bdb0169 Merge pull request #96581 from qingsenLi/201114-unmount
Fix typo unmount for klog
2020-12-08 17:29:27 -08:00
Kubernetes Prow Robot
ce7ac8442e Merge pull request #94599 from verult/adc-op-asw-race
Fixes Attach Detach Controller reconciler race reading ActualStateOfWorld and operation pending states
2020-12-08 16:28:53 -08:00
andyzhangx
ff110654e9 fix: azure file latency issue for metadata-heavy workload 2020-12-05 12:42:56 +00:00
Jan Safranek
8f186f9172 Flush FibreChannel devices before deleting
If a FibreChannel device is used as a block volume, we should flush its I/O
before deleting its device. It is not strictly necessary when it's used as
a filesystem (mount), but it won't hurt either.
2020-12-03 09:54:22 +01:00
Jan Safranek
6f8bdb7cc1 Fix FibreChannel volume plugin corrupting filesystem on detach
FibreChannel volume plugin misses one important step when removing a
device: "multipath -f". It flushes all multipath buffers to its individual
paths. Without it, a filesystem on the device may get corrupted.
2020-12-02 14:39:00 +01:00
CKchen0726
a3fdab491a use input parameter that is invalid before 2020-11-26 17:04:55 +08:00
Jan Safranek
62ecc68183 Lower the frequency of volume plugin deprecation warning
The warning is always logged (klog.Warningf), so make sure it's logged only
once per process. We've seen clusters where the deprecation warning was
about 20% of total logs.
2020-11-20 14:22:28 +01:00
Kubernetes Prow Robot
160c33a6a1 Merge pull request #96533 from gnufied/reduce-vsphere-volume-name
Reduce volume name length for vsphere
2020-11-17 17:34:05 -08:00