开发者社区> 问答> 正文

ceph-deploy安装报错? 400 报错

ceph-deploy安装报错? 400 报错

使用ceph-deploy部署mon时出错,

出错的命令:

ceph-deploy mon create ceph0


报错如下:

[ceph0][INFO  ] Running command: ceph-mon --cluster ceph --mkfs -i ceph0 --keyring /var/lib/ceph/tmp/ceph-ceph0.mon.keyring
cmd: ['ceph-mon', '--cluster', 'ceph', '--mkfs', '-i', 'ceph0', '--keyring', '/var/lib/ceph/tmp/ceph-ceph0.mon.keyring']
[ceph0][ERROR ] Traceback (most recent call last):
[ceph0][ERROR ]   File "/usr/local/lib64/python2.6/site-packages/ceph_deploy-1.4.0-py2.6.egg/ceph_deploy/lib/remoto/process.py", line 70, in run
[ceph0][ERROR ]     reporting(conn, result, timeout)
[ceph0][ERROR ]   File "/usr/local/lib64/python2.6/site-packages/ceph_deploy-1.4.0-py2.6.egg/ceph_deploy/lib/remoto/log.py", line 13, in reporting
[ceph0][ERROR ]     received = result.receive(timeout)
[ceph0][ERROR ]   File "/usr/local/lib64/python2.6/site-packages/ceph_deploy-1.4.0-py2.6.egg/ceph_deploy/lib/remoto/lib/execnet/gateway_base.py", line 701, in receive
[ceph0][ERROR ]     raise self._getremoteerror() or EOFError()
[ceph0][ERROR ] RemoteError: Traceback (most recent call last):
[ceph0][ERROR ]   File "/usr/local/lib64/python2.6/site-packages/ceph_deploy-1.4.0-py2.6.egg/ceph_deploy/lib/remoto/lib/execnet/gateway_base.py", line 1044, in executetask
[ceph0][ERROR ]     function(channel, **kwargs)
[ceph0][ERROR ]   File "<remote exec>", line 12, in _remote_run
[ceph0][ERROR ]   File "/usr/lib64/python2.6/subprocess.py", line 623, in __init__
[ceph0][ERROR ]     errread, errwrite)
[ceph0][ERROR ]   File "/usr/lib64/python2.6/subprocess.py", line 1142, in _execute_child
[ceph0][ERROR ]     raise child_exception
[ceph0][ERROR ] OSError: [Errno 2] No such file or directory
[ceph0][ERROR ] 
[ceph0][ERROR ] 
[ceph_deploy.mon][ERROR ] Failed to execute command: ceph-mon --cluster ceph --mkfs -i ceph0 --keyring /var/lib/ceph/tmp/ceph-ceph0.mon.keyring
[ceph_deploy][ERROR ] GenericError: Failed to create 1 monitors


我把cmd打印出来了,

然后手动执行ceph-mon --cluster ceph --mkfs -i ceph0 --keyring /var/lib/ceph/tmp/ceph-ceph0.mon.keyring

一切正常,同时,各个节点无密码ssh连接也配置了。

/usr/lib64/python2.6/subprocess.py文件存在,环境变量也配置了。

python版本是2.6.9,系统是suse 11 sp4,ceph版本是ceph version 0.87.2 (87a7cec9ab11c677de2ab23a7668a77d2f5b955e).



展开
收起
优选2 2020-06-09 10:54:11 614 0
1 条回答
写回答
取消 提交回答
  • 没有人遇到过吗?######这个文件解决了没有######qq870150258######suse的问题,已经解决了######你好你的问题是怎么解决的?qq595790538能否告知谢谢

    2020-06-09 10:54:27
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
Future of CI_CD with Tekton and kubernetes 立即下载
阿里云Elasticsearch2.0发布 立即下载
基于Kubernetes实现弹性的CI/CD系统 立即下载