使用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
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(12)
已经解决。。。有个空格没注意。。。
我也遇到了此类问题~请问如何解决??
我也遇到这个问题了,其中一台机器是这个问题装不上,其他几台都装上了。好奇怪的问题,谁知道怎么解决的吗?我是ubuntu14.04用的giant 0.87.1
很奇怪啊,是官方源有问题吗?配置上都是按照官方文档来的
回复
执行 su -c 'rpm -Uvhhttp://ceph.com/rpm-firefly/el6/noarch/ceph-release-1-0.el6.noarch.rpm',还是error:
回复
skipping http://ceph.com/rpm-giant/el6/noarch/ceph-release-1-0.el6.noarch.rpm - transfer failed ,而且他安装的是giant的,su -c 时把firely换成giant也报错
回复
还有遗漏吗?还是不行呢
回复
呃,那只能把原来得集群清理干净再重新按照官方文档试试了,再不行我也没折了,我都是在ubuntu下操作得,redhat没试过
安装时他默认RuntimeError: Failed to execute command: rpm -Uvh --replacepkgs http://ceph.com/rpm-giant/el6/noarch/ceph-release-1-0.el6.noarch.rpm这个链接http后的这个地址确实404,把giant换成firefly地址就存在,难道deploy指定的地址就是错误的?
还有 ceph-deploy install 之前要指定一下源,http://ceph.com/docs/master/install/get-packages/
deploy节点可以ssh其他节点,且不用密码
使用ceph-deploy 需要你的集群内是ssh互通的,这个确保了吗?