k3s/pkg/volume
Kubernetes Submit Queue 26bb28b046 Merge pull request #52691 from mtanino/issue/52690
Automatic merge from submit-queue (batch tested with PRs 52675, 52691). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>..

FC plugin: Return target wwn + lun at GetVolumeName()

**What this PR does / why we need it**:

At volume attach/detach controller, GetVolumeName() is
expected to return unique volume identifier, but FC
plugin didn't return unique identifier if user specified
FC volume using target wwn and lun.

In order to return unique identifier, GetVolumeName()
should use combination of target wwn and lun.

**Which issue this PR fixes** : fixes #52690

**Special notes for your reviewer**:

Should we use same format of unique volume identifier between v1.7 and v1.8 `for the purpose of backward compatibility?`

- At v1.7(before introducing attach/detach function), unique ID was pod's uuid + volume name
```
I0918 22:47:13.113481   44661 reconciler.go:257] operationExecutor.MountVolume started for volume "pv0001" (UniqueName: "kubernetes.io/fc/d6c66980-9ce4-11e7-8bb7-f8bc12550954-pv0001") pod "nginx-pod1" (UID: "d6c66980-9ce4-11e7-8bb7-f8bc12550954")  
I0918 22:47:15.116584   44661 operation_generator.go:476] MountVolume.SetUp succeeded for volume "pv0001" (UniqueName: "kubernetes.io/fc/d6c66980-9ce4-11e7-8bb7-f8bc12550954-pv0001") pod "nginx-pod1" (UID: "d6c66980-9ce4-11e7-8bb7-f8bc12550954")  
```

- At latest master, unique ID is targetWWNs.(if a user specifies a volume using target wwn + lun)
```
I0918 22:23:48.389339    1016 reconciler.go:212] operationExecutor.VerifyControllerAttachedVolume started for volume "pv0001" (UniqueName: "kubernetes.io/fc/[78060e801049abcd]") pod "nginx-pod3" (UID: "8f76b894-9ce1-11e7-b8f4-f8bc12550954")  
```

/cc @jsafrane @rootfs @msau42 @jingxu97 

**Release note**:

```
NONE
```
2017-09-20 10:01:42 -07:00
..
aws_ebs Merge pull request #51387 from alrs/fix-storageos-swallowed-err 2017-09-13 11:10:24 -07:00
azure_dd Merge pull request #52260 from andyzhangx/azuremounter-issue 2017-09-15 02:00:03 -07:00
azure_file enable azure disk mount on windows node 2017-09-12 01:52:48 +00:00
cephfs
cinder Add storageClass.mountOptions and use it in all applicable plugins 2017-08-29 11:37:36 -04:00
configmap
downwardapi
empty_dir Fix pagesize mount option name 2017-09-12 14:34:39 +02:00
fc Merge pull request #52691 from mtanino/issue/52690 2017-09-20 10:01:42 -07:00
flexvolume Merge pull request #51474 from verult/ProberTest 2017-09-03 11:10:05 -07:00
flocker Merge branch 'fix-aws-ebs-swallowed-errors' into fix-storageos-swallowed-err 2017-08-26 14:45:45 -07:00
gce_pd Merge pull request #51387 from alrs/fix-storageos-swallowed-err 2017-09-13 11:10:24 -07:00
git_repo
glusterfs Fix glusterfs creating volumes in GiB 2017-09-11 16:25:28 -04:00
host_path Merge branch 'fix-host-path-swallowed-error' into fix-storageos-swallowed-err 2017-08-26 14:51:53 -07:00
iscsi Merge pull request #51628 from jsafrane/fix-iscsi-attach 2017-09-01 00:11:12 -07:00
local Fix local storage code to follow go style 2017-08-31 22:09:41 +08:00
nfs
photon_pd Add storageClass.mountOptions and use it in all applicable plugins 2017-08-29 11:37:36 -04:00
portworx Merge branch 'fix-portworx-swallowed-errors' into fix-storageos-swallowed-err 2017-08-26 14:47:14 -07:00
projected
quobyte Add storageClass.mountOptions and use it in all applicable plugins 2017-08-29 11:37:36 -04:00
rbd Merge pull request #51869 from cofyc/fix_persistent_rbd 2017-09-20 07:50:41 -07:00
scaleio ScaleIO - Specify SDC GUID value via node label 2017-09-07 16:44:32 -04:00
secret
storageos Merge branch 'fix-aws-ebs-swallowed-errors' into fix-storageos-swallowed-err 2017-08-26 14:45:45 -07:00
testing WaitForAttach refactoring for iSCSI attacher/detacher 2017-08-26 17:21:34 -04:00
util Merge pull request #51387 from alrs/fix-storageos-swallowed-err 2017-09-13 11:10:24 -07:00
validation
vsphere_volume Add storageClass.mountOptions and use it in all applicable plugins 2017-08-29 11:37:36 -04:00
BUILD
OWNERS
doc.go
metrics_cached.go
metrics_du.go
metrics_du_test.go
metrics_errors.go
metrics_nil.go
metrics_nil_test.go
metrics_statfs.go
metrics_statfs_test.go
plugins.go Implement controller for resizing volumes 2017-09-04 09:02:34 +02:00
plugins_test.go
util.go Modify VolumeZonePredicate to handle multi-zone PV 2017-09-04 20:13:32 -07:00
util_test.go Modify VolumeZonePredicate to handle multi-zone PV 2017-09-04 20:13:32 -07:00
volume.go WaitForAttach refactoring for iSCSI attacher/detacher 2017-08-26 17:21:34 -04:00
volume_linux.go Fixes cross platform build failure 2017-08-26 09:58:51 -04:00
volume_unsupported.go Fixes cross platform build failure 2017-08-26 09:58:51 -04:00