2

我是 ceph 新手,使用 rook 在 k8s 集群中安装 ceph。我看到 pod rook-ceph-osd-prepare 永远处于运行状态并停留在以下行:

2020-06-15 20:09:02.260379 D | exec: Running command: ceph auth get-or-create-key 
client.bootstrap-osd mon allow profile bootstrap-osd --connect-timeout=15 --cluster=rook-ceph 
--conf=/var/lib/rook/rook-ceph/rook-ceph.config 
--name=client.admin --keyring=/var/lib/rook/rook-ceph/client.admin.keyring 
--format json --out-file /tmp/180401029

当我登录到容器并运行相同的命令时,我看到它也卡住了,在按下 ^C 后它显示了这个:

Traceback (most recent call last):
  File "/usr/bin/ceph", line 1266, in <module>
    retval = main()
  File "/usr/bin/ceph", line 1197, in main
    verbose)
  File "/usr/bin/ceph", line 622, in new_style_command
    ret, outbuf, outs = do_command(parsed_args, target, cmdargs, sigdict, inbuf, verbose)
  File "/usr/bin/ceph", line 596, in do_command
    return ret, '', ''

以下是我所有的豆荚:

rook-ceph              csi-cephfsplugin-9k9z2                                3/3     Running            0          9h
rook-ceph              csi-cephfsplugin-mjsbk                                3/3     Running            0          9h
rook-ceph              csi-cephfsplugin-mrqz5                                3/3     Running            0          9h
rook-ceph              csi-cephfsplugin-provisioner-5ffbdf7856-59cf7         5/5     Running            0          9h
rook-ceph              csi-cephfsplugin-provisioner-5ffbdf7856-m4bhr         5/5     Running            0          9h
rook-ceph              csi-cephfsplugin-xgvz4                                3/3     Running            0          9h
rook-ceph              csi-rbdplugin-6k4dk                                   3/3     Running            0          9h
rook-ceph              csi-rbdplugin-klrwp                                   3/3     Running            0          9h
rook-ceph              csi-rbdplugin-provisioner-68d449986d-2z9gr            6/6     Running            0          9h
rook-ceph              csi-rbdplugin-provisioner-68d449986d-mzh9d            6/6     Running            0          9h
rook-ceph              csi-rbdplugin-qcmrj                                   3/3     Running            0          9h
rook-ceph              csi-rbdplugin-zdg8z                                   3/3     Running            0          9h
rook-ceph              rook-ceph-crashcollector-k8snode001-76ffd57d58-slg5q   1/1    Running            0          9h
rook-ceph              rook-ceph-crashcollector-k8snode002-85b6d9d699-s8m8z   1/1    Running            0          9h
rook-ceph              rook-ceph-crashcollector-k8snode004-847bdb4fc5-kk6bd   1/1    Running            0          9h
rook-ceph              rook-ceph-mgr-a-5497fcbb7d-lq6tf                      1/1     Running            0          9h
rook-ceph              rook-ceph-mon-a-6966d857d9-s4wch                      1/1     Running            0          9h
rook-ceph              rook-ceph-mon-b-649c6845f4-z46br                      1/1     Running            0          9h
rook-ceph              rook-ceph-mon-c-67869b76c7-4v6zn                      1/1     Running            0          9h
rook-ceph              rook-ceph-operator-5968d8f7b9-hsfld                   1/1     Running            0          9h
rook-ceph              rook-ceph-osd-prepare-k8snode001-j25xv                 1/1    Running            0          7h48m
rook-ceph              rook-ceph-osd-prepare-k8snode002-6fvlx                 0/1    Completed          0          9h
rook-ceph              rook-ceph-osd-prepare-k8snode003-cqc4g                 0/1    Completed          0          9h
rook-ceph              rook-ceph-osd-prepare-k8snode004-jxxtl                 0/1    Completed          0          9h
rook-ceph              rook-discover-28xj4                                   1/1     Running            0          9h
rook-ceph              rook-discover-4ss66                                   1/1     Running            0          9h
rook-ceph              rook-discover-bt8rd                                   1/1     Running            0          9h
rook-ceph              rook-discover-q8f4x                                   1/1     Running            0          9h

请让我知道是否有人有任何提示来解决此问题或解决此问题?

4

2 回答 2

1

就我而言,我的一个节点系统时钟与硬件不同步,因此节点之间存在时间间隔。

也许你应该检查 timedatectl 命令的输出。

于 2021-05-26T21:07:12.287 回答
1

就我而言,问题是我的 Kubernetes 主机不在同一个内核版本中。
一旦我升级内核版本以匹配所有其他节点,这个问题就解决了。

于 2020-09-15T16:53:17.393 回答