rancher ceph 报错

事件报错:
MountVolume.WaitForAttach failed for volume "pvc-1df3bc18-f8db-11e9-ac36-fa163eb6abdf" : rbd: map failed exit status 2, rbd output: 2019-10-27 17:03:25.491844 7efde3f54100 -1 did not load config file, using default settings. 2019-10-27 17:03:25.494827 7efde3f54100 -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-957.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-957.el7.x86_64/modules.dep.bin' modprobe: FATAL: Module rbd not found in directory /lib/modules/3.10.0-957.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


我这边做过如下尝试:

rancher worker上:modinfo rbd得到

filename:       /lib/modules/3.10.0-957.el7.x86_64/kernel/drivers/block/rbd.ko.xz

license:        GPL

description:    RADOS Block Device (RBD) driver

author:         Jeff Garzik <jeff@garzik.org>

author:         Yehuda Sadeh <yehuda@hq.newdream.net>

author:         Sage Weil <sage@newdream.net>

author:         Alex Elder <elder@inktank.com>

retpoline:      Y

rhelversion:    7.6

srcversion:     5386BBBD00C262C66CB81F5

depends:        libceph

intree:         Y

vermagic:       3.10.0-957.el7.x86_64 SMP mod_unload modversions 

signer:         CentOS Linux kernel signing key

sig_key:        B7:0D:CF:0D:F2:D9:B7:F2:91:59:24:82:49:FD:6F:E8:7B:78:14:27

sig_hashalgo:   sha256

parm:           single_major:Use a single major number for all rbd devices (default: true) (bool)


rancher worker中使用

rbd create foo --size 4096 -m 10.0.0.8 -k /etc/ceph/ceph.client.admin.keyring

后,rbd ls 可以看到

foo

kubernetes-dynamic-pvc-1df5e286-f8db-11e9-9e7d-fa163eb6abdf


但在rancher数据卷配置后出现上述event,求解答,感谢。

rancher版本:2.2.8



已邀请:

嗨,我遇到了和楼主一样的问题,楼主你解决了吗?

要回复问题请先登录注册