Commit Graph

2385 Commits

Author SHA1 Message Date
Kubernetes Prow Robot
64a0441c2b Merge pull request #76573 from andyzhangx/disk-backoff-refactor
fix detach azure disk back off issue which has too big lock in failure retry condition
2019-04-18 23:39:54 -07:00
Kubernetes Prow Robot
10fc2a11a0 Merge pull request #76089 from vladimirvivien/csi-device-mount-skip
CSI - Skips deviceMounter.MountDevice for ephemeral volumes
2019-04-18 19:36:09 -07:00
Kubernetes Prow Robot
fc545587e4 Merge pull request #76540 from ialidzhikov/glusterfs-uneffectual-assignment
Remove ineffectual assignment
2019-04-18 17:17:55 -07:00
Vladimir Vivien
d564d2e74d CSI - Prevents unsupported device mount with CanMountDevice(spec) check 2019-04-18 19:54:28 -04:00
Kubernetes Prow Robot
7e02769736 Merge pull request #75926 from cwdsuzhou/operation_generator_add_attach_detach
Add operation name for other volume operations
2019-04-18 00:26:08 -07:00
Kubernetes Prow Robot
32a49828fe Merge pull request #76456 from codenrhoden/mv-exec-mounter
Move ExecMount to pkg/volume/util/exec
2019-04-17 12:16:20 -07:00
andyzhangx
6c70ca61be move disk lock process to azure cloud provider
fix comments

fix import keymux check error

add unit test for attach/detach disk funcs
2019-04-16 05:31:18 +00:00
Kubernetes Prow Robot
d424bedc9b Merge pull request #76341 from harsh-px/fix-concurrent-access-master
Fix concurrent map write access in Portworx create volume call
2019-04-15 11:46:24 -07:00
ialidzhikov
98c976ae4f Clean ineffectual assignment
Signed-off-by: ialidzhikov <i.alidjikov@gmail.com>
2019-04-13 16:23:07 +03:00
andyzhangx
39c239c308 refactor detach azure disk retry operation 2019-04-13 12:45:32 +00:00
Vladimir Vivien
b138e6d1e2 CSI - Surfaces klog flags; common tests aggregation 2019-04-12 15:38:06 -04:00
caiweidong
7c9e567008 add operation name for other volume operations 2019-04-12 11:09:13 +08:00
Travis Rhoden
96476fd054 Fix linting issues for exec mounter 2019-04-11 13:22:14 -06:00
Travis Rhoden
f38d4938be Move ExecMount to pkg/volume/util/exec
This patch moves the ExecMounter found in pkg/util/mount to
pkg/volume/util/exec. This is done in preparation for pkg/util/mount to
move out of tree. This specific implemention of mount.Interface is only
used internally to K8s and does not need to move out of tree.
2019-04-11 12:19:55 -06:00
Kubernetes Prow Robot
a2c200a57a Merge pull request #76326 from andyzhangx/azuredisk-typo
fix typo in azure disk logging
2019-04-09 19:58:12 -07:00
Harsh Desai
17dd5989df Fix concurrent map access in Portworx create volume call
Fixes #76340

Signed-off-by: Harsh Desai <harsh@portworx.com>
2019-04-09 12:13:19 -07:00
Kubernetes Prow Robot
454666bca8 Merge pull request #76184 from humblec/pvc
Use pvc uid in endpoint/service label
2019-04-09 11:21:14 -07:00
Kubernetes Prow Robot
c62cd6e3a4 Merge pull request #76047 from codenrhoden/mv-nsenter-mount
Move nsenter mounter to pkg/volume/util/nsenter
2019-04-09 09:55:59 -07:00
andyzhangx
8d1578370a fix typo in azure disk logging 2019-04-09 09:01:52 +00:00
Vladimir Vivien
cfafde983b Volume AttachablePlugin.CanAttach() now returns both bool and error 2019-04-08 16:53:22 -04:00
Travis Rhoden
2253807760 Fix pkg/volume/util/nsenter linting errors 2019-04-08 10:43:54 -06:00
Travis Rhoden
1c045a09db Move nsenter mounter to pkg/volume/util/nsenter
As part of moving pkg/util/mount out of tree, the NSEnter implementation
of mount.Interface needs to be relocated out of pkg/util/mount, as it is
K8s specific. This patch relocates that mounter implementation to
pkg/volume/util/nsenter.

Since the NSEnter mounter shares a lot of its logic with the Linux
mounter implementation, many of the previously private methods of the
Linux mounter are now made public to maintain that shared code.

Additionaly, it was observed that *all* mount.Interface implemenations
were using the same common method for IsNotMountPoint, so this patch
removes that method from the mount.Interface definition and just exports
the common implementation instead.
2019-04-08 09:53:46 -06:00
Xing Yang
000ab86788 Move CSIDriver Lister to the controller 2019-04-05 12:20:11 -07:00
Humble Chirammal
6eae6bbac5 Use pvc uid in endpoint/service label
If the pvc name is more than 63 chars, the endpoint creation
will fail due to the validation of objectmeta length of fields ie 63 chars at max.
This patch introduce an enhancement where if the pvc name is >=63 the pvc uid
is recorded at label instead of name. To preserve backward compatibility, the pvcname
has been kept in endpoint metadata label if length of pvc name is <63chars.

Signed-off-by: Humble Chirammal <hchiramm@redhat.com>
2019-04-05 20:30:57 +05:30
Michelle Au
33bf81f22a Improve volume operation metrics 2019-04-03 11:59:21 -07:00
Kubernetes Prow Robot
60638c71bd Merge pull request #75481 from mucahitkurt/refactor/nodeinfomanager-tests
Add expectedCSINode for csiNodeEnabled test cases on nodeinfomanager tests
2019-03-29 17:33:08 -07:00
Kubernetes Prow Robot
7a478a4609 Merge pull request #75844 from vladimirvivien/volume-skip-device-mount
Volume DeviceMountablePlugin.CanDeviceMount check when retrieving plugins
2019-03-29 13:02:13 -07:00
Mucahit Kurt
6113cd57bc add expectedCSINode and expectedNode for test cases to compare CSINode and Node object instead of field based comparisons
Signed-off-by: Mucahit Kurt <mucahitkurt@gmail.com>
2019-03-29 23:01:26 +03:00
Kubernetes Prow Robot
861f1fcb2e Merge pull request #75799 from msau42/csi-empty-devicepath
return empty devicepath for csi attach
2019-03-29 06:08:13 -07:00
Kubernetes Prow Robot
b1829dff0b Merge pull request #74844 from leakingtapan/migration-raw-block
Implement CSI migration logic for block volume
2019-03-28 18:12:14 -07:00
Vladimir Vivien
3777514f83 Adds DeviceMountablePlugin.CanDeviceMount check when retrieving plugins 2019-03-28 10:39:32 -04:00
Michelle Au
ab6a2530fb return empty devicepath for csi attach 2019-03-27 17:28:21 -07:00
Cheng Pan
f7050a04ce Implement CSI migration logic for block volume 2019-03-26 22:22:03 +00:00
Kubernetes Prow Robot
055061637a Merge pull request #75062 from Fedosin/openstack_config_from_secrets
Allow to read OpenStack config from the secret
2019-03-25 09:01:20 -07:00
Kubernetes Prow Robot
8da0c4af29 Merge pull request #75213 from gnufied/allow-different-operation-names-storage
Allow different operation names
2019-03-20 07:41:07 -07:00
Kubernetes Prow Robot
4bd421502e Merge pull request #75211 from wongma7/csi-attacher-test-flake
Fix unit test volumeattachments watch not working
2019-03-20 00:55:14 -07:00
Hemant Kumar
97ec61561a Allow different operation names 2019-03-13 14:20:45 -04:00
Kubernetes Prow Robot
517922f31a Merge pull request #75308 from msau42/csi-beta-e2e
ignore kubeclient nil in csi plugin init
2019-03-13 05:49:46 -07:00
Michelle Au
398777f261 ignore kubeclient nil in csi plugin init 2019-03-12 16:29:08 -07:00
Kubernetes Prow Robot
8477c486a8 Merge pull request #74652 from cofyc/fix72500
Delay CSI client initialization
2019-03-11 09:39:27 -07:00
Kubernetes Prow Robot
cd9e590178 Merge pull request #74520 from casusbelli/fix-qb-usermapping
Adds missing user mapping option for Quobyte mounts
2019-03-11 02:45:26 -07:00
Yecheng Fu
fa926ed6e0 Delay CSI client initialization 2019-03-09 13:45:03 +08:00
Matthew Wong
cfea406c1c Fix unit test volumeattachments watch not working 2019-03-08 15:20:31 -05:00
Vladimir Vivien
923ad369c8 CSI Inline Volume - Kubelet/Driver code impl 2019-03-08 12:40:09 -05:00
Hemant Kumar
a8f318779b Add CSI volume resizing tests
Add some tests for checking node expansion
Add new tests for expander
2019-03-08 09:23:18 -05:00
Hemant Kumar
529cd7119b Move resize function parameters to a new ResizeOptions type
This enables us to pass CSI volume phase
2019-03-08 09:21:44 -05:00
Hemant Kumar
63eb25eb4b Introduce feature gate for volume expansion
Update CSI library version
2019-03-08 09:21:44 -05:00
Hemant Kumar
89d1de9eb9 Rename ExandFS to NodeExpand
Handle resize error in online resizing
Use NodeExpandable plugin to mark volumes that require node expansion
2019-03-08 09:21:44 -05:00
David Zhu
41b3579345 Address review comments 2019-03-07 17:17:09 -08:00
David Zhu
7d2f4e97b8 Add ADC Fallback if Node doesn't have driver installed 2019-03-07 14:47:38 -08:00