k3s/pkg/volume/util
Kubernetes Submit Queue 803369b9cc Merge pull request #42006 from screeley44/error-events3
Automatic merge from submit-queue (batch tested with PRs 42522, 42545, 42556, 42006, 42631)

Fixes MountVolume.NewMounter errors not displayed to users via describe events

Fixes #42004 

This fixes the problem of mount errors being eaten and not displayed to users again.  Specifically erros caught in MountVolume.NewMounter (like missing endpoints, etc...)

Current behavior for any mount failure:

```
Events:
  FirstSeen    LastSeen    Count    From            SubObjectPath    Type        Reason        Message
  ---------    --------    -----    ----            -------------    --------    ------        -------
  12m        12m        1    default-scheduler            Normal        Scheduled    Successfully assigned glusterfs-bb-pod1 to 127.0.0.1
  10m        1m        5    kubelet, 127.0.0.1            Warning        FailedMount    Unable to mount volumes for pod "glusterfs-bb-pod1_default(67c9dfa7-f9f5-11e6-aee2-5254003a59cf)": timeout expired waiting for volumes to attach/mount for pod "default"/"glusterfs-bb-pod1". list of unattached/unmounted volumes=[glusterfsvol]
  10m        1m        5    kubelet, 127.0.0.1            Warning        FailedSync    Error syncing pod, skipping: timeout expired waiting for volumes to attach/mount for pod "default"/"glusterfs-bb-pod1". list of unattached/unmounted volumes=[glusterfsvol]
```

New Behavior:

For example on glusterfs - deliberately didn't create endpoints, now correct message is displayed:
```
Events:
  FirstSeen	LastSeen	Count	From			SubObjectPath	Type		Reason		Message
  ---------	--------	-----	----			-------------	--------	------		-------
  2m		2m		1	default-scheduler			Normal		Scheduled	Successfully assigned glusterfs-bb-pod1 to 127.0.0.1
  54s		54s		1	kubelet, 127.0.0.1			Warning		FailedMount	Unable to mount volumes for pod "glusterfs-bb-pod1_default(8edd2c25-fa09-11e6-92ae-5254003a59cf)": timeout expired waiting for volumes to attach/mount for pod "default"/"glusterfs-bb-pod1". With error timed out waiting for the condition. list of unattached/unmounted volumes=[glusterfsvol]
  54s		54s		1	kubelet, 127.0.0.1			Warning		FailedSync	Error syncing pod, skipping: timeout expired waiting for volumes to attach/mount for pod "default"/"glusterfs-bb-pod1". With error timed out waiting for the condition. list of unattached/unmounted volumes=[glusterfsvol]
  2m		6s		814	kubelet, 127.0.0.1			Warning		FailedMount	MountVolume.NewMounter failed for volume "kubernetes.io/glusterfs/8edd2c25-fa09-11e6-92ae-5254003a59cf-glusterfsvol" (spec.Name: "glusterfsvol") pod "8edd2c25-fa09-11e6-92ae-5254003a59cf" (UID: "8edd2c25-fa09-11e6-92ae-5254003a59cf") with: endpoints "glusterfs-cluster" not found
```
2017-03-24 15:10:33 -07:00
..
nestedpendingoperations Mark detached only if no pending operations 2017-02-13 11:51:44 +00:00
operationexecutor Merge pull request #42006 from screeley44/error-events3 2017-03-24 15:10:33 -07:00
types start the apimachinery repo 2017-01-11 09:09:48 -05:00
volumehelper Enable auto-generating sources rules 2017-01-05 14:14:13 -08:00
BUILD Revert "Merge pull request #40088 from jsafrane/storage-ga-v1" 2017-02-25 22:35:15 -05:00
OWNERS Update OWNERS for pkg/volume/util/ 2016-11-13 18:02:15 -08:00
atomic_writer.go start the apimachinery repo 2017-01-11 09:09:48 -05:00
atomic_writer_test.go move authoritative client-go utils out of pkg 2017-01-24 08:59:18 -05:00
device_util.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
device_util_linux.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
device_util_linux_test.go fix go vet errors 2016-08-10 16:45:41 -07:00
device_util_unsupported.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
doc.go Use Go canonical import paths 2016-07-16 13:48:21 -04:00
fs.go pkg/api/resource: move to apimachinery 2017-01-29 21:41:44 +01:00
fs_unsupported.go pkg/api/resource: move to apimachinery 2017-01-29 21:41:44 +01:00
io_util.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
util.go Explicitly use storage.k8s.io/v1beta1 everywhere. 2017-03-02 08:56:26 +01:00