开发者社区> 问答> 正文

使用ceph-deploy安装时出错?报错

@oscfox 你好,想跟你请教个问题:我现在使用deploy部署执行ceph-deploy new agent4时报错,但是生成ceph.conf文件了,执行ceph-deploy install agent4 agent2 agent1时,又报错,错误如下,这个错误是因为我/etc/yum.repos.d/ceph.repo配置错误吗?如果是应该怎么配啊

ceph@agent3 my-cluster]$ ceph-deploy new agent4
[ceph_deploy.conf][DEBUG ] found configuration file at: /home/ceph/.cephdeploy.conf
[ceph_deploy.cli][INFO  ] Invoked (1.5.21): /usr/bin/ceph-deploy new agent4
[ceph_deploy.new][DEBUG ] Creating new cluster named ceph
[ceph_deploy.new][INFO  ] making sure passwordless SSH succeeds
[agent4][DEBUG ] connected to host: agent3
[agent4][INFO  ] Running command: ssh -CT -o BatchMode=yes agent4
[agent4][DEBUG ] connection detected need for sudo
[agent4][DEBUG ] connected to host: agent4
[agent4][DEBUG ] detect platform information from remote host
[agent4][DEBUG ] detect machine type
[agent4][DEBUG ] find the location of an executable
[agent4][INFO  ] Running command: sudo /sbin/ip link show
[agent4][INFO  ] Running command: sudo /sbin/ip addr show
[agent4][DEBUG ] IP addresses found: ['172.16.12.4']
[ceph_deploy.new][DEBUG ] Resolving host agent4
[ceph_deploy.new][DEBUG ] Monitor agent4 at 172.16.12.4
[ceph_deploy.new][DEBUG ] Monitor initial members are ['agent4']
[ceph_deploy.new][DEBUG ] Monitor addrs are ['172.16.12.4']
[ceph_deploy.new][DEBUG ] Creating a random mon key...
[ceph_deploy.new][DEBUG ] Writing monitor keyring to ceph.mon.keyring...
[ceph_deploy.new][DEBUG ] Writing initial config to ceph.conf...
Error in sys.exitfunc:

[ceph@agent3 my-cluster]$ ceph-deploy install agent4 agent2 agent1

[agent4][INFO  ] Running command: sudo rpm --import https://ceph.com/git/?p=ceph.git;a=blob_plain;f=keys/release.asc
[agent4][INFO  ] Running command: sudo rpm -Uvh --replacepkgs http://ceph.com/rpm-giant/el6/noarch/ceph-release-1-0.el6.noarch.rpm
[agent4][WARNIN] curl: (22) The requested URL returned error: 404 Not Found
[agent4][WARNIN] error: skipping http://ceph.com/rpm-giant/el6/noarch/ceph-release-1-0.el6.noarch.rpm - transfer failed
[agent4][DEBUG ] Retrieving http://ceph.com/rpm-giant/el6/noarch/ceph-release-1-0.el6.noarch.rpm
[agent4][ERROR ] RuntimeError: command returned non-zero exit status: 1
[ceph_deploy][ERROR ] RuntimeError: Failed to execute command: rpm -Uvh --replacepkgs http://ceph.com/rpm-giant/el6/noarch/ceph-release-1-0.el6.noarch.rpm

 

展开
收起
爱吃鱼的程序员 2020-06-14 18:43:57 1453 0
1 条回答
写回答
取消 提交回答
  • https://developer.aliyun.com/profile/5yerqm5bn5yqg?spm=a2c6h.12873639.0.0.6eae304abcjaIB

    使用ceph-deploy需要你的集群内是ssh互通的,这个确保了吗?

    deploy节点可以ssh其他节点,且不用密码

    还有ceph-deployinstall之前要指定一下源,http://ceph.com/docs/master/install/get-packages/

    安装时他默认RuntimeError:Failedtoexecutecommand:rpm-Uvh--replacepkgshttp://ceph.com/rpm-giant/el6/noarch/ceph-release-1-0.el6.noarch.rpm这个链接http后的这个地址确实404,把giant换成firefly地址就存在,难道deploy指定的地址就是错误的?回复 @风之子668:呃,那只能把原来得集群清理干净再重新按照官方文档试试了,再不行我也没折了,我都是在ubuntu下操作得,redhat没试过回复 @oscfox:还有遗漏吗?还是不行呢回复 @oscfox:skippinghttp://ceph.com/rpm-giant/el6/noarch/ceph-release-1-0.el6.noarch.rpm-transferfailed,而且他安装的是giant的,su-c时把firely换成giant也报错回复 @oscfox:执行su-c'rpm-Uvhhttp://ceph.com/rpm-firefly/el6/noarch/ceph-release-1-0.el6.noarch.rpm',还是error:这个源 http://ceph.com/rpm-giant/el6/noarch/ceph-release-1-0.el6.noarch.rpm是错误的,我查看了下地址,不对,是这个地址 http://ceph.com/rpm-giant/el6/ceph-release-1-0.el6.noarch.rpm,但使用ceph-deploy来部署时不知道在哪里修改它的配置文件,重新指向正确源,有大神告知吗?很奇怪啊,是官方源有问题吗?配置上都是按照官方文档来的

    我也遇到这个问题了,其中一台机器是这个问题装不上,其他几台都装上了。好奇怪的问题,谁知道怎么解决的吗?我是ubuntu14.04用的giant0.87.1

    已经解决。。。有个空格没注意。。。

    我也遇到了此类问题~请问如何解决??
    2020-06-14 18:44:14
    赞同 展开评论 打赏
问答分类:
问答地址:
问答排行榜
最热
最新

相关电子书

更多
Future of CI_CD with Tekton and kubernetes 立即下载
基于Kubernetes实现弹性的CI/CD系统 立即下载
Open Source Docker 立即下载