k3s/pkg
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
..
api Merge pull request #51601 from caesarxuchao/minor-test-fix 2017-09-13 09:30:01 -07:00
apimachinery/tests
apis Merge pull request #52533 from soltysh/cronjob_beta_defaults 2017-09-19 20:38:37 -07:00
auth generated 2017-09-01 19:11:19 +08:00
bootstrap/api
capabilities
client Disable default paging in list watches 2017-09-06 23:10:59 -04:00
cloudprovider Merge pull request #39620 from svanharmelen/f-cloudstack-instances 2017-09-19 23:36:17 -07:00
controller Merge pull request #52285 from shyamjvs/cidr-allocation-swag 2017-09-19 18:27:47 -07:00
credentialprovider
features Merge pull request #51943 from CaoShuFeng/feature_gate 2017-09-06 06:54:30 -07:00
fieldpath
generated Update generated files 2017-09-20 08:36:09 +02:00
hyperkube
kubeapiserver plumb the proxyTransport to the webhook admission plugin; 2017-09-14 15:35:12 -07:00
kubectl Workaround go-junit-report bug for TestApps 2017-09-13 07:28:36 -07:00
kubelet Merge pull request #52635 from Random-Liu/fix-cri-stats 2017-09-19 17:31:11 -07:00
kubemark Use separate client for node status loop 2017-09-14 15:56:22 -04:00
master Enable autoscaling/v2beta1 by default 2017-09-15 11:28:35 -04:00
printers Move consumers of autoscaling/v2alpha1 to v2beta1 2017-09-05 17:49:30 -04:00
probe
proxy Merge pull request #51682 from m1093782566/ipvs-rsync-iptables 2017-09-03 15:48:31 -07:00
quota Merge pull request #52452 from gnufied/fix-quota-on-update 2017-09-15 01:59:56 -07:00
registry Say the valid IP range in IP errors 2017-09-19 08:35:59 -07:00
routes
security Update autogenerated files. 2017-09-06 12:18:09 +02:00
securitycontext
serviceaccount
ssh update cadvisor, docker, and runc godeps 2017-09-05 12:38:57 -07:00
util Use separate client for node status loop 2017-09-14 15:56:22 -04:00
version
volume Merge pull request #52691 from mtanino/issue/52690 2017-09-20 10:01:42 -07:00
watch
BUILD
OWNERS