分享

大神们 说说ceph安装报错这是怎么回事

lz19851224 发表于 2016-7-4 18:00:52 [显示全部楼层] 回帖奖励 阅读模式 关闭右栏 3 24890
1Centos7中:
yum install -y yum-utils
yum-config-manager --add-repo https://dl.fedoraproject.org/pub/epel/7/x86_64/  不执行yum install --nogpgcheck -y epel-release
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
rm  -f /etc/yum.repos.d/dl.fedoraproject.org*
  • 配置yum仓库:                                          
    vim /etc/yum.repos.d/ceph.repo
    [ceph-noarch]
    name=Ceph noarch packages
    baseurl=http://download.ceph.com/rpm-{ceph-release}/{distro}/noarch      
    enabled=1
    gpgcheck=1
    type=rpm-md
    gpgkey=https://download.ceph.com/keys/release.asc
  • 更新仓库及安装ceph-deploy
       yum -y update 会报错执行:                                 
            yum-config-manager --disable ceph-noarch
            yum-config-manager --save --setopt=ceph-noarch.skip_if_unavailable=true
       yum install ceph-deploy -y
  • ceph-deploy new node1 这里也不报错,会产生三个文件, 修改 ceph.conf 添加 osd pool default size = 2
  • ceph-deploy install admin-node node1 node2 node3就报错
  • Running command: yum -y install epel-release
    [admin-node][DEBUG ] 已加载插件:fastestmirror, priorities
    [admin-node][WARNIN] http://ceph.com/rpm-hammer/rhel7/noarch/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found
    [admin-node][WARNIN] 正在尝试其它镜像。
    [admin-node][WARNIN] To address this issue please refer to the below knowledge base article
    [admin-node][WARNIN]
    [admin-node][WARNIN] https://access.redhat.com/articles/1320623
    [admin-node][WARNIN]
    [admin-node][WARNIN] If above article doesn't help to resolve this issue please create a bug on https://bugs.centos.org/
    [admin-node][WARNIN]
    [admin-node][WARNIN]
    [admin-node][WARNIN]
    [admin-node][WARNIN]  One of the configured repositories failed (Ceph noarch packages),
    [admin-node][WARNIN]  and yum doesn't have enough cached data to continue. At this point the only
    [admin-node][WARNIN]  safe thing yum can do is fail. There are a few ways to work "fix" this:
    [admin-node][WARNIN]
    [admin-node][WARNIN]      1. Contact the upstream for the repository and get them to fix the problem.
    [admin-node][WARNIN]
    [admin-node][WARNIN]      2. Reconfigure the baseurl/etc. for the repository, to point to a working
    [admin-node][WARNIN]         upstream. This is most often useful if you are using a newer
    [admin-node][WARNIN]         distribution release than is supported by the repository (and the
    [admin-node][WARNIN]         packages for the previous distribution release still work).
    [admin-node][WARNIN]
    [admin-node][WARNIN]      3. Disable the repository, so yum won't use it by default. Yum will then
    [admin-node][WARNIN]         just ignore the repository until you permanently enable it again or use
    [admin-node][WARNIN]         --enablerepo for temporary usage:
    [admin-node][WARNIN]
    [admin-node][WARNIN]             yum-config-manager --disable Ceph-noarch
    [admin-node][WARNIN]
    [admin-node][WARNIN]      4. Configure the failing repository to be skipped, if it is unavailable.
    [admin-node][WARNIN]         Note that yum will try to contact the repo. when it runs most commands,
    [admin-node][WARNIN]         so will have to try and fail each time (and thus. yum will be be much
    [admin-node][WARNIN]         slower). If it is a very temporary problem though, this is often a nice
    [admin-node][WARNIN]         compromise:
    [admin-node][WARNIN]
    [admin-node][WARNIN]             yum-config-manager --save --setopt=Ceph-noarch.skip_if_unavailable=true
    [admin-node][WARNIN]
    [admin-node][WARNIN] failure: repodata/repomd.xml from Ceph-noarch: [Errno 256] No more mirrors to try.
    [admin-node][WARNIN] http://ceph.com/rpm-hammer/rhel7/noarch/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found
    [admin-node][ERROR ] RuntimeError: command returned non-zero exit status: 1
    [ceph_deploy][ERROR ] RuntimeError: Failed to execute command: yum -y install epel-release
  • 执行者两条命令
   yum-config-manager --disable Ceph-noarch
   yum-config-manager --save --setopt=Ceph-noarch.skip_if_unavailable=true
   还是一样
只好在各个节点手动安装 epel-release 和ceph 但收集密钥的时候会少一个
ceph.bootstrap-rgw.keyring这样的文件






已有(3)人评论

跳转到指定楼层
starrycheng 发表于 2016-7-4 18:40:14
ceph-deploy install admin-node node1 node2 node3就报错
第一个节点已经安装,是否重复了,还要注意权限,路径,环境等因素

Running command: yum -y install epel-release
这个命令我尝试了,是可以执行的。所以楼主检测下自己的环境

回复

使用道具 举报

lz19851224 发表于 2016-7-5 11:26:26
yum -y install epel-release这个命令我单独执行的时候不报错,就是在ceph-deploy install admin-node node1 node2 node3就报错
回复

使用道具 举报

lz19851224 发表于 2016-7-5 14:59:04
就是yum源的问题,后来更换yum的路径就解决了,baseurl=http://download.ceph.com/rpm-hammer/el7/noarch/
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

推荐上一条 /2 下一条