我正在使用RBD客户端与kubernetes通信ceph。我创建了PVC'myclaim',它很长一段时间处于待处理状态。我收到以下异常。 我猜可能是由于它可能试图尝试从ceph珠宝映射rbd图像或可能没有获得钥匙圈而发生的。 请查看以下例外情况并提供适当的建议。 并且,如果有人想到“如何通过外部供应商“ ceph.com/rbd”或手动创建持久卷控制器”,请分享您的观点。
例外:
Normal Provisioning 39m (x3 over 162m) ceph.com/rbd_rbd-provisioner-98b88f5d6-q98tf_faed28f5-d621-11e9-9f60-c63a8677257e External provisioner is provisioning volume for claim "default/myclaim"
Warning ProvisioningFailed 39m ceph.com/rbd_rbd-provisioner-98b88f5d6-q98tf_faed28f5-d621-11e9-9f60-c63a8677257e failed to provision volume with StorageClass "fast-rbd": failed to create rbd image: exit status 110, command output: did not load config file, using default settings.
2019-09-13 13:41:50.588 7fc5c40f6900 -1 Errors while parsing config file!
2019-09-13 13:41:50.588 7fc5c40f6900 -1 parse_file: cannot open /etc/ceph/ceph.conf: (2) No such file or directory
2019-09-13 13:41:50.588 7fc5c40f6900 -1 parse_file: cannot open /root/.ceph/ceph.conf: (2) No such file or directory
2019-09-13 13:41:50.588 7fc5c40f6900 -1 parse_file: cannot open ceph.conf: (2) No such file or directory
2019-09-13 13:41:50.588 7fc5c40f6900 -1 Errors while parsing config file!
2019-09-13 13:41:50.588 7fc5c40f6900 -1 parse_file: cannot open /etc/ceph/ceph.conf: (2) No such file or directory
2019-09-13 13:41:50.588 7fc5c40f6900 -1 parse_file: cannot open /root/.ceph/ceph.conf: (2) No such file or directory
2019-09-13 13:41:50.588 7fc5c40f6900 -1 parse_file: cannot open ceph.conf: (2) No such file or directory
2019-09-13 13:41:50.620 7fc5c40f6900 -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
2019-09-13 13:46:50.621 7fc5c40f6900 0 monclient(hunting): authenticate timed out after 300
2019-09-13 13:46:50.621 7fc5c40f6900 -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
2019-09-13 13:51:50.620 7fc5c40f6900 0 monclient(hunting): authenticate timed out after 300
2019-09-13 13:51:50.620 7fc5c40f6900 -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
2019-09-13 13:56:50.622 7fc5c40f6900 0 monclient(hunting): authenticate timed out after 300
2019-09-13 13:56:50.622 7fc5c40f6900 -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
2019-09-13 14:01:50.624 7fc5c40f6900 0 monclient(hunting): authenticate timed out after 300
2019-09-13 14:01:50.624 7fc5c40f6900 -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
2019-09-13 14:06:50.625 7fc5c40f6900 0 monclient(hunting): authenticate timed out after 300
2019-09-13 14:06:50.625 7fc5c40f6900 -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
2019-09-13 14:11:50.627 7fc5c40f6900 0 monclient(hunting): authenticate timed out after 300
2019-09-13 14:11:50.627 7fc5c40f6900 -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
2019-09-13 14:16:50.628 7fc5c40f6900 0 monclient(hunting): authenticate timed out after 300
2019-09-13 14:16:50.628 7fc5c40f6900 -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
2019-09-13 14:21:50.627 7fc5c40f6900 0 monclient(hunting): authenticate timed out after 300
2019-09-13 14:21:50.627 7fc5c40f6900 -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
2019-09-13 14:26:50.629 7fc5c40f6900 0 monclient(hunting): authenticate timed out after 300
2019-09-13 14:26:50.629 7fc5c40f6900 -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
2019-09-13 14:31:50.631 7fc5c40f6900 0 monclient(hunting): authenticate timed out after 300
rbd: couldn't connect to the cluster!
Normal ExternalProvisioning 52s (x1881 over 7h50m) persistentvolume-controller waiting for a volume to be created, either by external provisioner "ceph.com/rbd" or manually created by system administrator.
答案 0 :(得分:0)
发布OP的评论作为答案(社区Wiki):
我遇到了与“持续批量声明”相关的问题,我只是 更改yml文件中的“名称”,即在yml文件中分配了名称 与数据一些xyz(您要指定的容器名称),因此 确保所有名称都相同,然后删除存储类。 问题解决了!