操作系统信息,鲲鹏云主机,centos7

Kubernetes版本信息,v1.18.8 多集群

KubeSphere版本信息,v3.0.0。已有K8S部署安装

问题 使用cephfs创建pvc失败,pvc处于pending状态

rook-ceph-mgr的log


File "/usr/share/ceph/mgr/volumes/fs/operations/volume.py", line 165, in get_fs_handle

conn.connect()

File "/usr/share/ceph/mgr/volumes/fs/operations/volume.py", line 88, in connect

self.fs.mount(filesystem_name=self.fs_name.encode('utf-8'))

File "cephfs.pyx", line 739, in cephfs.LibCephFS.mount

cephfs.Error: error calling ceph_mount: Connection timed out [Errno 110]

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

File "/usr/share/ceph/mgr/mgr_module.py", line 1177, in _handle_command

return self.handle_command(inbuf, cmd)

File "/usr/share/ceph/mgr/volumes/module.py", line 426, in handle_command

return handler(inbuf, cmd)

File "/usr/share/ceph/mgr/volumes/module.py", line 34, in wrap

return f(self, inbuf, cmd)

File "/usr/share/ceph/mgr/volumes/module.py", line 452, in _cmd_fs_subvolumegroup_create

uid=cmd.get('uid', None), gid=cmd.get('gid', None))

File "/usr/share/ceph/mgr/volumes/fs/volume.py", line 480, in create_subvolume_group

with open_volume(self, volname) as fs_handle:

File "/lib64/python3.6/contextlib.py", line 81, in __enter__

return next(self.gen)

File "/usr/share/ceph/mgr/volumes/fs/operations/volume.py", line 316, in open_volume

fs_handle = vc.connection_pool.get_fs_handle(volname)

File "/usr/share/ceph/mgr/volumes/fs/operations/volume.py", line 171, in get_fs_handle

raise VolumeException(-e.args[0], e.args[1])

TypeError: bad operand type for unary -: 'str'

    yyt6200 请根据https://rook.io/docs/rook/v1.5/ceph-common-issues.html 自行debug。这不是kubesphere的问题。