Alex,
It looks like you might have an old repo in there with priority=1 so it's not trying to install hammer. Try mv /etc/yum.repos.d/ceph.repo /etc/yum.repos.d/ceph.repo.old && mv /etc/yum.repos.d/ceph.repo.rpmnew /etc/yum.repos.d/ceph.repo then re-run ceph-deploy.
Bob
On Thu, Dec 10, 2015 at 1:42 PM, Leung, Alex (398C) <alex.leung@xxxxxxxxxxxx> wrote:
Hi,
I am trying to install ceph on a Centos 7 system and I get the following error, Thanks in advance for the help.
[ceph@hdmaster ~]$ ceph-deploy install mon0 osd0 osd1 osd2[ceph_deploy.conf][DEBUG ] found configuration file at: /home/ceph/.cephdeploy.conf[ceph_deploy.cli][INFO ] Invoked (1.5.28): /bin/ceph-deploy install mon0 osd0 osd1 osd2[ceph_deploy.cli][INFO ] ceph-deploy options:[ceph_deploy.cli][INFO ] verbose : False[ceph_deploy.cli][INFO ] testing : None[ceph_deploy.cli][INFO ] cd_conf : <ceph_deploy.conf.cephdeploy.Conf instance at 0x119a5a8>[ceph_deploy.cli][INFO ] cluster : ceph[ceph_deploy.cli][INFO ] dev_commit : None[ceph_deploy.cli][INFO ] install_mds : False[ceph_deploy.cli][INFO ] stable : None[ceph_deploy.cli][INFO ] default_release : False[ceph_deploy.cli][INFO ] username : None[ceph_deploy.cli][INFO ] adjust_repos : True[ceph_deploy.cli][INFO ] func : <function install at 0x10edd70>[ceph_deploy.cli][INFO ] install_all : False[ceph_deploy.cli][INFO ] repo : False[ceph_deploy.cli][INFO ] host : ['mon0', 'osd0', 'osd1', 'osd2'][ceph_deploy.cli][INFO ] install_rgw : False[ceph_deploy.cli][INFO ] install_tests : False[ceph_deploy.cli][INFO ] repo_url : None[ceph_deploy.cli][INFO ] ceph_conf : None[ceph_deploy.cli][INFO ] install_osd : False[ceph_deploy.cli][INFO ] version_kind : stable[ceph_deploy.cli][INFO ] install_common : False[ceph_deploy.cli][INFO ] overwrite_conf : False[ceph_deploy.cli][INFO ] quiet : False[ceph_deploy.cli][INFO ] dev : master[ceph_deploy.cli][INFO ] local_mirror : None[ceph_deploy.cli][INFO ] release : None[ceph_deploy.cli][INFO ] install_mon : False[ceph_deploy.cli][INFO ] gpg_url : None[ceph_deploy.install][DEBUG ] Installing stable version hammer on cluster ceph hosts mon0 osd0 osd1 osd2[ceph_deploy.install][DEBUG ] Detecting platform for host mon0 ...[mon0][DEBUG ] connection detected need for sudo[mon0][DEBUG ] connected to host: mon0[mon0][DEBUG ] detect platform information from remote host[mon0][DEBUG ] detect machine type[ceph_deploy.install][INFO ] Distro info: CentOS Linux 7.0.1406 Core[mon0][INFO ] installing Ceph on mon0[mon0][INFO ] Running command: sudo yum clean all[mon0][DEBUG ] Loaded plugins: fastestmirror, langpacks[mon0][DEBUG ] Cleaning repos: base ceph ceph-noarch epel extras updates[mon0][DEBUG ] Cleaning up everything[mon0][DEBUG ] Cleaning up list of fastest mirrors[mon0][INFO ] Running command: sudo yum -y install epel-release[mon0][DEBUG ] Loaded plugins: fastestmirror, langpacks[mon0][DEBUG ] Determining fastest mirrors[mon0][DEBUG ] * base: mirrors.kernel.org[mon0][DEBUG ] * epel: mirror.sfo12.us.leaseweb.net[mon0][DEBUG ] * extras: mirrors.xmission.com[mon0][DEBUG ] * updates: mirror.hmc.edu[mon0][DEBUG ] Package epel-release-7-5.noarch already installed and latest version[mon0][DEBUG ] Nothing to do[mon0][INFO ] Running command: sudo yum -y install yum-plugin-priorities[mon0][DEBUG ] Loaded plugins: fastestmirror, langpacks[mon0][DEBUG ] Loading mirror speeds from cached hostfile[mon0][DEBUG ] * base: mirrors.kernel.org[mon0][DEBUG ] * epel: mirror.sfo12.us.leaseweb.net[mon0][DEBUG ] * extras: mirrors.xmission.com[mon0][DEBUG ] * updates: mirror.hmc.edu[mon0][DEBUG ] Resolving Dependencies[mon0][DEBUG ] --> Running transaction check[mon0][DEBUG ] ---> Package yum-plugin-priorities.noarch 0:1.1.31-29.el7 will be installed[mon0][DEBUG ] --> Finished Dependency Resolution[mon0][DEBUG ][mon0][DEBUG ] Dependencies Resolved[mon0][DEBUG ][mon0][DEBUG ] ================================================================================[mon0][DEBUG ] Package Arch Version Repository Size[mon0][DEBUG ] ================================================================================[mon0][DEBUG ] Installing:[mon0][DEBUG ] yum-plugin-priorities noarch 1.1.31-29.el7 base 24 k[mon0][DEBUG ][mon0][DEBUG ] Transaction Summary[mon0][DEBUG ] ================================================================================[mon0][DEBUG ] Install 1 Package[mon0][DEBUG ][mon0][DEBUG ] Total download size: 24 k[mon0][DEBUG ] Installed size: 28 k[mon0][DEBUG ] Downloading packages:[mon0][DEBUG ] Running transaction check[mon0][DEBUG ] Running transaction test[mon0][DEBUG ] Transaction test succeeded[mon0][DEBUG ] Running transaction[mon0][DEBUG ] Installing : yum-plugin-priorities-1.1.31-29.el7.noarch 1/1[mon0][DEBUG ] Verifying : yum-plugin-priorities-1.1.31-29.el7.noarch 1/1[mon0][DEBUG ][mon0][DEBUG ] Installed:[mon0][DEBUG ] yum-plugin-priorities.noarch 0:1.1.31-29.el7[mon0][DEBUG ][mon0][DEBUG ] Complete![mon0][DEBUG ] Configure Yum priorities to include obsoletes[mon0][WARNIN] check_obsoletes has been enabled for Yum priorities plugin[mon0][INFO ] Running command: sudo rpm --import https://download.ceph.com/keys/release.asc[mon0][INFO ] Running command: sudo rpm -Uvh --replacepkgs https://download.ceph.com/rpm-hammer/el7/noarch/ceph-release-1-0.el7.noarch.rpm[mon0][DEBUG ] Retrieving https://download.ceph.com/rpm-hammer/el7/noarch/ceph-release-1-0.el7.noarch.rpm[mon0][DEBUG ] Preparing... ########################################[mon0][DEBUG ] Updating / installing...[mon0][DEBUG ] ceph-release-1-1.el7 ########################################[mon0][WARNIN] warning: /etc/yum.repos.d/ceph.repo created as /etc/yum.repos.d/ceph.repo.rpmnew[mon0][WARNIN] ensuring that /etc/yum.repos.d/ceph.repo contains a high priority[mon0][WARNIN] altered ceph.repo priorities to contain: priority=1[mon0][INFO ] Running command: sudo yum -y install ceph ceph-radosgw[mon0][DEBUG ] Loaded plugins: fastestmirror, langpacks, priorities[mon0][DEBUG ] Loading mirror speeds from cached hostfile[mon0][DEBUG ] * base: mirrors.kernel.org[mon0][DEBUG ] * epel: mirror.sfo12.us.leaseweb.net[mon0][DEBUG ] * extras: mirrors.xmission.com[mon0][DEBUG ] * updates: mirror.hmc.edu[mon0][DEBUG ] 26 packages excluded due to repository priority protections[mon0][DEBUG ] Package matching ceph-0.80.11-0.el7.x86_64 already installed. Checking for update.[mon0][DEBUG ] Resolving Dependencies[mon0][DEBUG ] --> Running transaction check[mon0][DEBUG ] ---> Package ceph-radosgw.x86_64 0:0.80.11-0.el7 will be installed[mon0][DEBUG ] --> Processing Dependency: librados2 = 0.80.11-0.el7 for package: ceph-radosgw-0.80.11-0.el7.x86_64[mon0][DEBUG ] --> Processing Dependency: ceph-common = 0.80.11-0.el7 for package: ceph-radosgw-0.80.11-0.el7.x86_64[mon0][DEBUG ] --> Processing Dependency: libfcgi.so.0()(64bit) for package: ceph-radosgw-0.80.11-0.el7.x86_64[mon0][DEBUG ] --> Running transaction check[mon0][DEBUG ] ---> Package ceph-radosgw.x86_64 0:0.80.11-0.el7 will be installed[mon0][DEBUG ] --> Processing Dependency: librados2 = 0.80.11-0.el7 for package: ceph-radosgw-0.80.11-0.el7.x86_64[mon0][DEBUG ] --> Processing Dependency: ceph-common = 0.80.11-0.el7 for package: ceph-radosgw-0.80.11-0.el7.x86_64[mon0][DEBUG ] ---> Package fcgi.x86_64 0:2.4.0-25.el7 will be installed[mon0][DEBUG ] --> Finished Dependency Resolution[mon0][WARNIN] Error: Package: ceph-radosgw-0.80.11-0.el7.x86_64 (ceph)[mon0][WARNIN] Requires: librados2 = 0.80.11-0.el7[mon0][DEBUG ] You could try using --skip-broken to work around the problem[mon0][WARNIN] Installed: 1:librados2-0.80.7-2.el7.x86_64 (@base)[mon0][WARNIN] librados2 = 1:0.80.7-2.el7[mon0][WARNIN] Available: librados2-0.80.6-0.el7.centos.x86_64 (ceph)[mon0][WARNIN] librados2 = 0.80.6-0.el7.centos[mon0][WARNIN] Available: librados2-0.80.7-0.el7.centos.x86_64 (ceph)[mon0][WARNIN] librados2 = 0.80.7-0.el7.centos[mon0][WARNIN] Available: librados2-0.80.8-0.el7.centos.x86_64 (ceph)[mon0][WARNIN] librados2 = 0.80.8-0.el7.centos[mon0][WARNIN] Available: librados2-0.80.9-0.el7.centos.x86_64 (ceph)[mon0][WARNIN] librados2 = 0.80.9-0.el7.centos[mon0][WARNIN] Available: librados2-0.80.10-0.el7.centos.x86_64 (ceph)[mon0][WARNIN] librados2 = 0.80.10-0.el7.centos[mon0][WARNIN] Available: librados2-0.80.11-0.el7.x86_64 (ceph)[mon0][WARNIN] librados2 = 0.80.11-0.el7[mon0][WARNIN] Error: Package: ceph-radosgw-0.80.11-0.el7.x86_64 (ceph)[mon0][WARNIN] Requires: ceph-common = 0.80.11-0.el7[mon0][WARNIN] Installed: 1:ceph-common-0.80.7-2.el7.x86_64 (@base)[mon0][WARNIN] ceph-common = 1:0.80.7-2.el7[mon0][WARNIN] Available: ceph-common-0.80.6-0.el7.centos.x86_64 (ceph)[mon0][WARNIN] ceph-common = 0.80.6-0.el7.centos[mon0][WARNIN] Available: ceph-common-0.80.7-0.el7.centos.x86_64 (ceph)[mon0][WARNIN] ceph-common = 0.80.7-0.el7.centos[mon0][WARNIN] Available: ceph-common-0.80.8-0.el7.centos.x86_64 (ceph)[mon0][WARNIN] ceph-common = 0.80.8-0.el7.centos[mon0][WARNIN] Available: ceph-common-0.80.9-0.el7.centos.x86_64 (ceph)[mon0][WARNIN] ceph-common = 0.80.9-0.el7.centos[mon0][WARNIN] Available: ceph-common-0.80.10-0.el7.centos.x86_64 (ceph)[mon0][WARNIN] ceph-common = 0.80.10-0.el7.centos[mon0][WARNIN] Available: ceph-common-0.80.11-0.el7.x86_64 (ceph)[mon0][WARNIN] ceph-common = 0.80.11-0.el7[mon0][DEBUG ] You could try running: rpm -Va --nofiles --nodigest[mon0][ERROR ] RuntimeError: command returned non-zero exit status: 1[ceph_deploy][ERROR ] RuntimeError: Failed to execute command: yum -y install ceph ceph-radosgw
[ceph@hdmaster ~]$
_______________________________________________
ceph-users mailing list
ceph-users@xxxxxxxxxxxxxx
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
_______________________________________________ ceph-users mailing list ceph-users@xxxxxxxxxxxxxx http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com