k3s/pkg
Kubernetes Submit Queue 6ce405c6ee Merge pull request #27778 from screeley44/k8-vol-executor
Automatic merge from submit-queue

Add Events for operation_executor to show status of mounts, failed/successful to show in describe events

Fixes #27590 
@saad-ali @pmorie @erinboyd

After talking with @pmorie last week about the above issue, I decided to poke around and see if I could remedy.  The refactoring broke my previous UXP merged PR's that correctly showed failed mount errors in the describe events.  However, Not sure I implemented correctly, but it tested out and seems to be working, let me know what I missed or if this is not the correct approach.

```
Events:
  FirstSeen	LastSeen	Count	From			SubobjectPath	Type		Reason		Message
  ---------	--------	-----	----			-------------	--------	------		-------
  2m		2m		1	{default-scheduler }			Normal		Scheduled	Successfully assigned nfs-bb-pod1 to 127.0.0.1
  44s		44s		1	{kubelet 127.0.0.1}			Warning		FailedMount	Unable to mount volumes for pod "nfs-bb-pod1_default(a94f64f1-37c9-11e6-9aa5-52540073d346)": timeout expired waiting for volumes to attach/mount for pod "nfs-bb-pod1"/"default". list of unattached/unmounted volumes=[nfsvol]
  44s		44s		1	{kubelet 127.0.0.1}			Warning		FailedSync	Error syncing pod, skipping: timeout expired waiting for volumes to attach/mount for pod "nfs-bb-pod1"/"default". list of unattached/unmounted volumes=[nfsvol]
  38s		38s		1	{kubelet }				Warning		FailedMount	Unable to mount volumes for pod "a94f64f1-37c9-11e6-9aa5-52540073d346": Mount failed: exit status 32
Mounting arguments: nfs1.rhs:/opt/data99 /var/lib/kubelet/pods/a94f64f1-37c9-11e6-9aa5-52540073d346/volumes/kubernetes.io~nfs/nfsvol nfs []
Output: mount.nfs: Connection timed out

Resolution hint: Check and make sure the NFS Server exists (ensure that correct IPAddress/Hostname was given) and is available/reachable.
Also make sure firewall ports are open on both client and NFS Server (2049 v4 and 2049, 20048 and 111 for v3).
Use commands telnet <nfs server> <port> and showmount <nfs server> to help test connectivity.
```
2016-08-19 08:27:48 -07:00
..
admission Fix usage of shared informer in namespace admission controllers 2016-08-01 13:40:34 -04:00
api Merge pull request #30386 from derekwaynecarr/fix-pvc-validation 2016-08-19 07:46:03 -07:00
apimachinery Merge pull request #28431 from brendandburns/thirdparty2 2016-07-22 09:41:58 -07:00
apis Merge pull request #26044 from smarterclayton/multiversion_encode 2016-08-18 21:10:55 -07:00
apiserver Introduce GroupVersioner for capturing desired target version 2016-08-18 14:45:00 -04:00
auth Convert() should accept the new conversion Context value 2016-08-18 14:45:20 -04:00
capabilities Use Go canonical import paths 2016-07-16 13:48:21 -04:00
client Introduce GroupVersioner for capturing desired target version 2016-08-18 14:45:00 -04:00
cloudprovider GCE changes for the new provisioning model 2016-08-18 10:36:50 +02:00
controller Merge pull request #27778 from screeley44/k8-vol-executor 2016-08-19 08:27:48 -07:00
conversion Introduce GroupVersioner for capturing desired target version 2016-08-18 14:45:00 -04:00
credentialprovider Merge pull request #28539 from derekwaynecarr/credential_provider_timeout 2016-07-22 18:01:41 -07:00
dns Use MarshalIndent instead of marshal and indent 2016-08-16 18:00:30 +09:00
fieldpath Fix default resource limits (node capacities) for downward api volumes 2016-08-16 14:41:17 -04:00
fields add RequiresExactMatch test for empty andterm 2016-08-12 11:51:52 -07:00
genericapiserver Merge pull request #30233 from mbohlool/swagger2 2016-08-19 04:21:48 -07:00
healthz fixes the wrong doc in package healthz 2016-07-18 22:46:09 +08:00
httplog Use Go canonical import paths 2016-07-16 13:48:21 -04:00
hyperkube Use Go canonical import paths 2016-07-16 13:48:21 -04:00
kubectl Merge pull request #30767 from mksalawa/kubectltop 2016-08-19 06:58:18 -07:00
kubelet Merge pull request #27778 from screeley44/k8-vol-executor 2016-08-19 08:27:48 -07:00
kubemark Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
labels Print/log pointers of structs with %#v instead of %+v 2016-08-01 22:27:56 +02:00
master Generates OpenAPI (aka Swagger 2.0) Spec on /swagger.json path 2016-08-18 15:32:04 -07:00
metrics Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
probe Merge pull request #27562 from 7ing/ipt 2016-08-02 08:02:32 -07:00
proxy change KUBE-XLB back to KUBE-FW 2016-08-18 10:19:59 -07:00
quota Quota admission errors if usage is negative 2016-08-11 11:26:59 -04:00
registry Convert() should accept the new conversion Context value 2016-08-18 14:45:20 -04:00
runtime Encoding nested objects must support unregistered runtime.Objects 2016-08-18 14:45:40 -04:00
security Initial Quobyte support 2016-08-18 17:13:50 +02:00
securitycontext Remove pod mutation for PVs with supplemental GIDs 2016-07-22 17:41:44 -04:00
serviceaccount Check for valid serviceaccount JWT token before inspecting claims 2016-07-06 14:25:15 -04:00
ssh Revert "Add a customized ssh dialer that will timeout" 2016-07-14 08:48:24 +02:00
storage Increase buffer size in etcd_watcher 2016-08-19 13:00:31 +02:00
types Use Go canonical import paths 2016-07-16 13:48:21 -04:00
ui Use Go canonical import paths 2016-07-16 13:48:21 -04:00
util fix memory leak in gc 2016-08-18 21:54:44 -07:00
version Use Go canonical import paths 2016-07-16 13:48:21 -04:00
volume Merge pull request #27778 from screeley44/k8-vol-executor 2016-08-19 08:27:48 -07:00
watch Update generated files due to dependency shift. 2016-08-09 10:41:09 -05:00
OWNERS Remove bgrant from pkg/OWNERS and pkg/kubectl/OWNERS since he has plenty to do. 2016-06-16 08:21:27 -07:00