Closed fatduo closed 8 years ago
kubectl describe pod postgres-torus-1780752826-1jnmu
Events:
FirstSeen LastSeen Count From SubobjectPath Type Reason Message
--------- -------- ----- ---- ------------- -------- ------ -------
8m 8m 1 {default-scheduler } Normal Scheduled Successfully assigned postgres-torus-1780752826-1jnmu to 10.58.9.201
5m 1m 3 {kubelet 10.58.9.201} Warning FailedMount Unable to mount volumes for pod "postgres-torus-1780752826-1jnmu_default(6f015b5b-4ff7-11e6-8d89-005056923a7e)": timeout expired waiting for volumes to attach/mount for pod "postgres-torus-1780752826-1jnmu"/"default". list of unattached/unmounted volumes=[data]
5m 1m 3 {kubelet 10.58.9.201} Warning FailedSync Error syncing pod, skipping: timeout expired waiting for volumes to attach/mount for pod "postgres-torus-1780752826-1jnmu"/"default". list of unattached/unmounted volumes=[data]
tail /var/log/upstart/kubelet.log
I0722 18:44:40.102983 1725 reconciler.go:253] MountVolume operation started for volume "kubernetes.io/secret/default-token-ko0qm" (spec.Name: "default-token-ko0qm") to pod "ddd9ab3d-4ff1-11e6-8d89-005056923a7e" (UID: "ddd9ab3d-4ff1-11e6-8d89-005056923a7e"). Volume is already mounted to pod, but remount was requested.
I0722 18:44:40.107344 1725 operation_executor.go:720] MountVolume.SetUp succeeded for volume "kubernetes.io/secret/default-token-ko0qm" (spec.Name: "default-token-ko0qm") pod "ddd9ab3d-4ff1-11e6-8d89-005056923a7e" (UID: "ddd9ab3d-4ff1-11e6-8d89-005056923a7e").
I0722 18:46:10.067323 1725 reconciler.go:253] MountVolume operation started for volume "kubernetes.io/secret/default-token-ko0qm" (spec.Name: "default-token-ko0qm") to pod "ddd9ab3d-4ff1-11e6-8d89-005056923a7e" (UID: "ddd9ab3d-4ff1-11e6-8d89-005056923a7e"). Volume is already mounted to pod, but remount was requested.
I0722 18:46:10.072171 1725 operation_executor.go:720] MountVolume.SetUp succeeded for volume "kubernetes.io/secret/default-token-ko0qm" (spec.Name: "default-token-ko0qm") pod "ddd9ab3d-4ff1-11e6-8d89-005056923a7e" (UID: "ddd9ab3d-4ff1-11e6-8d89-005056923a7e").
Could you help me to solve the problem, or give me some suggestion? Thanks a lot!
Ah, I bet I know why. Ubuntu 14.04 used Upstart, and right now the volume mount plugin uses systemd to manage its lifecycle. Should add that notification to the guide.
@barakmich Thanks a lot. I will change my OS to coreos.
Hi, When I run the torus on k8s in ubuntu 14.04 by reference to Run Torus on Kubernetes
I cannot start the Postgres(test the torus flexVolume) pod.