我正在沿着k8s 1.4.5运行flocker 1.15.0,在centos 7上运行docker 1.10.3。我设置了一个flocker音量,当我尝试基本样本时here k8s吊舱没有正确使用。
# flockerctl list
DATASET SIZE METADATA STATUS SERVER
e06ac9f2-34da-4cc2-b5ed-ea6aef22d707 1.00G name=my-flocker-vol detached faae089e (10.1.1.214)
K8S:
$ kubectl create -f https://raw.githubusercontent.com/kubernetes/kubernetes/master/examples/volumes/flocker/flocker-pod.yml
$ kubectl describe pod flocker-web
...
...
23m 23m 1 {default-scheduler } Normal Scheduled Successfully assigned flocker-web to kube-minion-1
21m 3m 9 {kubelet kube-minion-1} Warning FailedMount MountVolume.SetUp failed for volume "kubernetes.io/flocker/89c4fc2a-bf2b-11e6-8353-0050568e8b79-www-root" (spec.Name: "www-root") pod "89c4fc2a-bf2b-11e6-8353-0050568e8b79" (UID: "89c4fc2a-bf2b-11e6-8353-0050568e8b79") with: Timed out waiting for the dataset_id: 'e06ac9f2-34da-4cc2-b5ed-ea6aef22d707' to be moved to the primary: 'faae089e-cf3a-4c22-9496-ce3ae2bfc6fc'
<nil>
21m 1m 10 {kubelet kube-minion-1} Warning FailedMount Unable to mount volumes for pod "flocker-web_default(89c4fc2a-bf2b-11e6-8353-0050568e8b79)": timeout expired waiting for volumes to attach/mount for pod "flocker-web"/"default". list of unattached/unmounted volumes=[www-root]
21m 1m 10 {kubelet kube-minion-1} Warning FailedSync Error syncing pod, skipping: timeout expired waiting for volumes to attach/mount for pod "flocker-web"/"default". list of unattached/unmounted volumes=[www-root]
来自/ var / log / messages的:
Dec 10 17:55:59 kube-minion-1 kubelet: E1210 17:55:59.738342 2604 kubelet.go:1813] Unable to mount volumes for pod "flocker-web_default(89c4fc2a-bf2b-11e6-8353-0050568e8b79)": timeout expired waiting for volumes to attach/mount for pod "flocker-web"/"default". list of unattached/unmounted volumes=[www-root]; skipping pod
Dec 10 17:55:59 kube-minion-1 kubelet: E1210 17:55:59.738437 2604 pod_workers.go:184] Error syncing pod 89c4fc2a-bf2b-11e6-8353-0050568e8b79, skipping: timeout expired waiting for volumes to attach/mount for pod "flocker-web"/"default". list of unattached/unmounted volumes=[www-root]
Dec 10 17:56:00 kube-minion-1 kubelet: E1210 17:56:00.218853 2604 nestedpendingoperations.go:253] Operation for "\"kubernetes.io/flocker/89c4fc2a-bf2b-11e6-8353-0050568e8b79-www-root\" (\"89c4fc2a-bf2b-11e6-8353-0050568e8b79\")" failed. No retries permitted until 2016-12-10 17:56:00.718802626 -0500 EST (durationBeforeRetry 500ms). Error: MountVolume.SetUp failed for volume "kubernetes.io/flocker/89c4fc2a-bf2b-11e6-8353-0050568e8b79-www-root" (spec.Name: "www-root") pod "89c4fc2a-bf2b-11e6-8353-0050568e8b79" (UID: "89c4fc2a-bf2b-11e6-8353-0050568e8b79") with: Timed out waiting for the dataset_id: 'e06ac9f2-34da-4cc2-b5ed-ea6aef22d707' to be moved to the primary: 'faae089e-cf3a-4c22-9496-ce3ae2bfc6fc'
关于如何进一步调试这个的想法?
答案 0 :(得分:0)
我看到了问题,我使用了环回后端。此模式不支持Flocker移动功能。