有人使用过rancher 1.6.11部署的k8s,连接ceph吗?


我测试了一下。。创建ceph-rbd类型的storageclass,然后创建相关pvc。
但是pvc创建失败。提示:
Warning ProvisioningFailed 46m persistentvolume-controller Failed to provision volume with StorageClass "testceph": failed to create rbd image: exit status 2, command output: 2017-11-28 09:27:08.138458 7feff3094100 -1 did not load config file, using default settings.
2017-11-28 09:27:08.154500 7feff3094100 -1 auth: unable to find a keyring on /etc/ceph/ceph.client.admin.keyring,/etc/ceph/ceph.keyring,/etc/ceph/keyring,/etc/ceph/keyring.bin: (2) No such file or directory
rbd: error opening pool kube: (2) No such file or directory
于是我手动把ceph的配置文件和keyring复制到了 r-kubernetes-controller-manager容器中。。
pvc可以创建了。

当把这个pvc分配给容器的时候,容器创建失败。提示:
Warning FailedMount 1s kubelet, compute1 MountVolume.SetUp failed for volume "pvc-d17b2cbd-d424-11e7-a342-0249611cf0a6" : rbd: map failed exit status 2 2017-11-28 10:22:35.934670 7fd48e44a100 -1 did not load config file, using default settings.
2017-11-28 10:22:35.943338 7fd48e44a100 -1 auth: unable to find a keyring on /etc/ceph/ceph.client.admin.keyring,/etc/ceph/ceph.keyring,/etc/ceph/keyring,/etc/ceph/keyring.bin: (2) No such file or directory
libkmod: ERROR ../libkmod/libkmod.c:586 kmod_search_moddep: could not open moddep file '/lib/modules/3.10.0-693.2.2.el7.x86_64/modules.dep.bin'
modinfo: ERROR: Module alias rbd not found.
modprobe: ERROR: ../libkmod/libkmod.c:586 kmod_search_moddep() could not open moddep file '/lib/modules/3.10.0-693.2.2.el7.x86_64/modules.dep.bin'
modprobe: FATAL: Module rbd not found in directory /lib/modules/3.10.0-693.2.2.el7.x86_64
rbd: failed to load rbd kernel module (1)
rbd: sysfs write failed
In some cases useful info is found in syslog - try "dmesg | tail" or so.
rbd: map failed: (2) No such file or directory
我还是手动把ceph的配置文件和keyring复制到 r-kubernetes-kubelet容器中。。。但是复制不进去。。。

有人知道正确操作不?。。。。
已邀请:

要回复问题请先登录注册