使用Ceph-Deploy的Ceph安装失败

时间:2019-02-20 12:16:09

标签: cluster-computing centos7 ceph

因此请按照RHEL手册中的说明设置ceph。我创建了集群 sudo ceph-deploy --username新的mon1。之后,我编辑ceph.conf并添加ms_bind_ipv6 = false和public network =。之后,我执行了sudo ceph-deploy --username install --release发光的node1 node2 node3 node4 mon1 mon2 mds1 mds2。节点1-4可以正常工作,但是当脚本到达节点1并尝试自行安装时,几乎所有软件包都会收到此错误代码。

示例:

[mon1][WARNIN]             Verfügbar: 2:python-rgw-12.2.3-0.el7.x86_64 (Ceph)
[mon1][WARNIN]                 python-rgw = 2:12.2.3-0.el7
[mon1][WARNIN]             Verfügbar: 2:python-rgw-12.2.4-0.el7.x86_64 (Ceph)
[mon1][WARNIN]                 python-rgw = 2:12.2.4-0.el7
[mon1][WARNIN]             Verfügbar: 2:python-rgw-12.2.5-0.el7.x86_64 (Ceph)
[mon1][WARNIN]                 python-rgw = 2:12.2.5-0.el7
[mon1][WARNIN]             Verfügbar: 2:python-rgw-12.2.6-0.el7.x86_64 (Ceph)
[mon1][WARNIN]                 python-rgw = [mon1][WARNIN]             Verfügbar: 2:python-rgw-12.2.3-0.el7.x86_64 (Ceph)
[mon1][WARNIN]                 python-rgw = 2:12.2.3-0.el7
[mon1][WARNIN]             Verfügbar: 2:python-rgw-12.2.4-0.el7.x86_64 (Ceph)
[mon1][WARNIN]                 python-rgw = 2:12.2.4-0.el7
[mon1][WARNIN]             Verfügbar: 2:python-rgw-12.2.5-0.el7.x86_64 (Ceph)
[mon1][WARNIN]                 python-rgw = 2:12.2.5-0.el7
[mon1][WARNIN]             Verfügbar: 2:python-rgw-12.2.6-0.el7.x86_64 (Ceph)
[mon1][WARNIN]                 python-rgw = 2:12.2.6-0.el7
[mon1][WARNIN]             Verfügbar: 2:python-rgw-12.2.7-0.el7.x86_64 (Ceph)
[mon1][WARNIN]                 python-rgw = 2:12.2.7-0.el7
[mon1][WARNIN]             Verfügbar: 2:python-rgw-12.2.8-0.el7.x86_64 (Ceph)
[mon1][WARNIN]                 python-rgw = 2:12.2.8-0.el7
[mon1][WARNIN]             Verfügbar: 2:python-rgw-12.2.9-0.el7.x86_64 (Ceph)
[mon1][WARNIN]                 python-rgw = 2:12.2.9-0.el7
[mon1][WARNIN]             Verfügbar: 2:python-rgw-12.2.10-0.el7.x86_64 (Ceph)
[mon1][WARNIN]                 python-rgw = 2:12.2.10-0.el7
[mon1][WARNIN]             Verfügbar: 2:python-rgw-12.2.11-0.el7.x86_64 (Ceph)
2:12.2.6-0.el7
[mon1][WARNIN]             Verfügbar: 2:python-rgw-12.2.7-0.el7.x86_64 (Ceph)
[mon1][WARNIN]                 python-rgw = 2:12.2.7-0.el7
[mon1][WARNIN]             Verfügbar: 2:python-rgw-12.2.8-0.el7.x86_64 (Ceph)
[mon1][WARNIN]                 python-rgw = 2:12.2.8-0.el7
[mon1][WARNIN]             Verfügbar: 2:python-rgw-12.2.9-0.el7.x86_64 (Ceph)
[mon1][WARNIN]                 python-rgw = 2:12.2.9-0.el7
[mon1][WARNIN]             Verfügbar: 2:python-rgw-12.2.10-0.el7.x86_64 (Ceph)
[mon1][WARNIN]                 python-rgw = 2:12.2.10-0.el7
[mon1][WARNIN]             Verfügbar: 2:python-rgw-12.2.11-0.el7.x86_64 (Ceph)

3 个答案:

答案 0 :(得分:1)

我发现ceph-deploy有时无法在/etc/yum.repos.d/ceph.repo上设置ceph存储库。

我要解决的问题是从要安装的版本上载到所有目标服务器ceph.repo文件,如果要安装发光版本,请使用类似的东西:

cat >ceph.repo<< EOF

[Ceph]
name=Ceph packages for
baseurl=http://download.ceph.com/rpm-luminous/el7/\$basearch
enabled=1
gpgcheck=1
type=rpm-md
gpgkey=https://download.ceph.com/keys/release.asc
priority=1

[Ceph-noarch]
name=Ceph noarch packages
baseurl=http://download.ceph.com/rpm-luminous/el7/noarch
enabled=1
gpgcheck=1
type=rpm-md
gpgkey=https://download.ceph.com/keys/release.asc
priority=1

[ceph-source]
name=Ceph source packages
baseurl=http://download.ceph.com/rpm-luminous/el7/SRPMS
enabled=1
gpgcheck=1
type=rpm-md
gpgkey=https://download.ceph.com/keys/release.asc
priority=1
EOF

要编写有效的存储库文件(应与用于部署其余服务器的“ admin”节点的存储库文件相同),请将其发送到目标服务器:

scp ceph.repo dst-server:/etc/yum.repos.d/

然后再次运行ceph-deploy。

答案 1 :(得分:0)

在安装ceph 14.2软件包之前,我对debian(ubuntu)上的2个环境变量没问题

export CEPH_DEPLOY_REPO_URL=https://mirror
export CEPH_DEPLOY_GPG_URL=https://mirror_key

答案 2 :(得分:0)

下面的命令安装ceph mimic版本13.2

ceph-deploy install  cephmon02 cephmon03  --repo-url=http://mirrors.aliyun.com/ceph/rpm-mimic/el7/

将模拟更改为另一个版本。