kubernetes/pkg/controller/volume/attachdetach
Kubernetes Submit Queue 7de1a8e0f5
Merge pull request #56288 from jsafrane/multiattach-pods
Automatic merge from submit-queue. 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>.

Add list of pods that use a volume to multiattach events

So users knows what pods are blocking a volume and can realize their error.

**Release note**:

```release-note
NONE
```

UX:
* User can get one of following events, depending what other pod(s) are already using a volume and in which namespace they are:
```
Multi-Attach error for volume"volume-name" Volume is already exclusively attached to one node and can't be attached to another
Multi-Attach error for volume "volume-name" Volume is already used by pod(s) pod3 and 1 pod(s) in different namespaces
```

* controller-manager gets always full logs:
  * When the node where is the volume attached is known:
        ```
        Multi-Attach error for volume "volume-name" (UniqueName: "fake-plugin/volume-name") from node "node1" Volume is already used by pods ns2/pod2, ns1/pod3 on node node2, node3
        ```

  * When the node where is the volume attached is not known:
        ```
        Multi-Attach error for volume "volume-name" (UniqueName: "fake-plugin/volume-name") from node "node1" Volume is already exclusively attached to node node2 and can't be attached to another
        ```

/kind bug
/sig storage
/assign @gnufied
2018-01-25 05:31:34 -08:00
..
cache Merge pull request #56288 from jsafrane/multiattach-pods 2018-01-25 05:31:34 -08:00
populator Autogenerate BUILD files 2017-12-23 13:12:11 -08:00
reconciler Merge pull request #56288 from jsafrane/multiattach-pods 2018-01-25 05:31:34 -08:00
statusupdater refactor method to pkg/util/node 2017-11-06 09:51:09 +08:00
testing update BUILD files 2017-10-15 18:18:13 -07:00
util update BUILD files 2017-10-15 18:18:13 -07:00
attach_detach_controller.go fix populateDesiredStateOfWorld bug for attach/detach controller 2018-01-07 17:45:42 +08:00
attach_detach_controller_test.go use core client with explicit version globally 2017-10-27 15:48:32 +08:00
BUILD Autogenerate BUILD files 2017-12-23 13:12:11 -08:00
OWNERS Update OWNERS approvers and reviewers: pkg/controller 2016-11-02 16:19:18 -07:00