On Wed, Nov 15, 2017 at 5:03 AM, Ragan, Tj (Dr.) <tj.ragan@xxxxxxxxxxxxxxx> wrote:
$ cat /etc/yum.repos.d/ceph.repo[Ceph]name=Ceph packages for $basearchenabled=1gpgcheck=1type=rpm-mdpriority=1
[Ceph-noarch]name=Ceph noarch packagesenabled=1gpgcheck=1type=rpm-mdpriority=1
[ceph-source]name=Ceph source packagesenabled=1gpgcheck=1type=rpm-mdpriority=1
############################################################ ############################## ############## It’s worth noting that if I change these to rpm-luminous then it breaks too:
$ sudo sed -i 's/jewel/luminous/' /etc/yum.repos.d/ceph.repo$ cat !$cat /etc/yum.repos.d/ceph.repo[Ceph]name=Ceph packages for $basearchenabled=1gpgcheck=1type=rpm-mdpriority=1
[Ceph-noarch]name=Ceph noarch packagesenabled=1gpgcheck=1type=rpm-mdpriority=1
[ceph-source]name=Ceph source packagesenabled=1gpgcheck=1type=rpm-mdpriority=1
$ ceph-deploy install --release luminous admin1[ceph_deploy.conf][DEBUG ] found configuration file at: /home/ceph-deploy/.cephdeploy.conf [ceph_deploy.cli][INFO ] Invoked (1.5.37): /bin/ceph-deploy install --release luminous admin1[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 0x17ac3f8> [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 0x17181b8>[ceph_deploy.cli][INFO ] install_all : False[ceph_deploy.cli][INFO ] repo : False[ceph_deploy.cli][INFO ] host : ['admin1'][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 ] nogpgcheck : False[ceph_deploy.cli][INFO ] local_mirror : None[ceph_deploy.cli][INFO ] release : luminous[ceph_deploy.cli][INFO ] install_mon : False[ceph_deploy.cli][INFO ] gpg_url : None[ceph_deploy.install][DEBUG ] Installing stable version luminous on cluster ceph hosts admin1[ceph_deploy.install][DEBUG ] Detecting platform for host admin1 ...[admin1][DEBUG ] connection detected need for sudo[admin1][DEBUG ] connected to host: admin1[admin1][DEBUG ] detect platform information from remote host[admin1][DEBUG ] detect machine type[ceph_deploy.install][INFO ] Distro info: CentOS Linux 7.4.1708 Core[admin1][INFO ] installing Ceph on admin1[admin1][INFO ] Running command: sudo yum clean all[admin1][DEBUG ] Loaded plugins: fastestmirror, langpacks, priorities[admin1][DEBUG ] Cleaning repos: Ceph Ceph-noarch base ceph-noarch ceph-source epel extras[admin1][DEBUG ] : updates[admin1][DEBUG ] Cleaning up everything[admin1][DEBUG ] Maybe you want: rm -rf /var/cache/yum, to also free up space taken by orphaned data from disabled or removed repos[admin1][DEBUG ] Cleaning up list of fastest mirrors[admin1][INFO ] Running command: sudo yum -y install epel-release[admin1][DEBUG ] Loaded plugins: fastestmirror, langpacks, priorities[admin1][DEBUG ] Determining fastest mirrors[admin1][DEBUG ] * base: mirror.netw.io[admin1][DEBUG ] * epel: anorien.csc.warwick.ac.uk[admin1][DEBUG ] * extras: anorien.csc.warwick.ac.uk[admin1][DEBUG ] * updates: mirrors.clouvider.net[admin1][DEBUG ] 21 packages excluded due to repository priority protections[admin1][DEBUG ] Package epel-release-7-11.noarch already installed and latest version[admin1][DEBUG ] Nothing to do[admin1][INFO ] Running command: sudo yum -y install yum-plugin-priorities[admin1][DEBUG ] Loaded plugins: fastestmirror, langpacks, priorities[admin1][DEBUG ] Loading mirror speeds from cached hostfile[admin1][DEBUG ] * base: mirror.netw.io[admin1][DEBUG ] * epel: anorien.csc.warwick.ac.uk[admin1][DEBUG ] * extras: anorien.csc.warwick.ac.uk[admin1][DEBUG ] * updates: mirrors.clouvider.net[admin1][DEBUG ] 21 packages excluded due to repository priority protections[admin1][DEBUG ] Package yum-plugin-priorities-1.1.31-42.el7.noarch already installed and latest version [admin1][DEBUG ] Nothing to do[admin1][DEBUG ] Configure Yum priorities to include obsoletes[admin1][WARNIN] check_obsoletes has been enabled for Yum priorities plugin[admin1][INFO ] Running command: sudo rpm --import https://download.ceph.com/keys/release.asc [admin1][INFO ] Running command: sudo rpm -Uvh --replacepkgs https://download.ceph.com/rpm-luminous/el7/noarch/ceph- release-1-0.el7.noarch.rpm [admin1][DEBUG ] Retrieving https://download.ceph.com/rpm-luminous/el7/noarch/ceph- release-1-0.el7.noarch.rpm [admin1][DEBUG ] Preparing... ######################################## [admin1][WARNIN] file /etc/yum.repos.d/ceph.repo from install of ceph-release-1-1.el7.noarch conflicts with file from package ceph-release-1-1.el7.noarch[admin1][ERROR ] RuntimeError: command returned non-zero exit status: 1[ceph_deploy][ERROR ] RuntimeError: Failed to execute command: rpm -Uvh --replacepkgs https://download.ceph.com/rpm-luminous/el7/noarch/ceph- release-1-0.el7.noarch.rpm
The problem is that you had previously installed ceph-release-1-1.el7.noarch as part of the process of installing jewel, and that file doesn't change for luminous, so you have a packaging
issue where the same package name has two different outcomes.
You need to "purge" all ceph pacakges from the server(s) you are trying to install, including ceph-release
############################################################ ############################## ############## And if I try to force luminous, I get:
$ ceph-deploy install admin1 --release luminous[ceph_deploy.conf][DEBUG ] found configuration file at: /home/ceph-deploy/.cephdeploy.conf [ceph_deploy.cli][INFO ] Invoked (1.5.37): /bin/ceph-deploy install admin1 --release luminous[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 0x1a48368> [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 0x19b21b8>[ceph_deploy.cli][INFO ] install_all : False[ceph_deploy.cli][INFO ] repo : False[ceph_deploy.cli][INFO ] host : ['admin1'][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 ] nogpgcheck : False[ceph_deploy.cli][INFO ] local_mirror : None[ceph_deploy.cli][INFO ] release : luminous[ceph_deploy.cli][INFO ] install_mon : False[ceph_deploy.cli][INFO ] gpg_url : None[ceph_deploy.install][DEBUG ] Installing stable version luminous on cluster ceph hosts admin1[ceph_deploy.install][DEBUG ] Detecting platform for host admin1 ...[admin1][DEBUG ] connection detected need for sudo[admin1][DEBUG ] connected to host: admin1[admin1][DEBUG ] detect platform information from remote host[admin1][DEBUG ] detect machine type[ceph_deploy.install][INFO ] Distro info: CentOS Linux 7.4.1708 Core[admin1][INFO ] installing Ceph on admin1[admin1][INFO ] Running command: sudo yum clean all[admin1][DEBUG ] Loaded plugins: fastestmirror, langpacks, priorities[admin1][DEBUG ] Cleaning repos: base ceph-noarch epel extras updates[admin1][DEBUG ] Cleaning up everything[admin1][DEBUG ] Maybe you want: rm -rf /var/cache/yum, to also free up space taken by orphaned data from disabled or removed repos[admin1][INFO ] Running command: sudo yum -y install epel-release[admin1][DEBUG ] Loaded plugins: fastestmirror, langpacks, priorities[admin1][DEBUG ] Determining fastest mirrors[admin1][DEBUG ] * base: mirror.netw.io[admin1][DEBUG ] * epel: anorien.csc.warwick.ac.uk[admin1][DEBUG ] * extras: anorien.csc.warwick.ac.uk[admin1][DEBUG ] * updates: mirror.sov.uk.goscomb.net[admin1][DEBUG ] Package epel-release-7-11.noarch already installed and latest version[admin1][DEBUG ] Nothing to do[admin1][INFO ] Running command: sudo yum -y install yum-plugin-priorities[admin1][DEBUG ] Loaded plugins: fastestmirror, langpacks, priorities[admin1][DEBUG ] Loading mirror speeds from cached hostfile[admin1][DEBUG ] * base: mirror.netw.io[admin1][DEBUG ] * epel: anorien.csc.warwick.ac.uk[admin1][DEBUG ] * extras: anorien.csc.warwick.ac.uk[admin1][DEBUG ] * updates: mirror.sov.uk.goscomb.net[admin1][DEBUG ] Package yum-plugin-priorities-1.1.31-42.el7.noarch already installed and latest version [admin1][DEBUG ] Nothing to do[admin1][DEBUG ] Configure Yum priorities to include obsoletes[admin1][WARNIN] check_obsoletes has been enabled for Yum priorities plugin[admin1][INFO ] Running command: sudo rpm --import https://download.ceph.com/keys/release.asc [admin1][INFO ] Running command: sudo rpm -Uvh --replacepkgs https://download.ceph.com/rpm-luminous/el7/noarch/ceph- release-1-0.el7.noarch.rpm [admin1][DEBUG ] Retrieving https://download.ceph.com/rpm-luminous/el7/noarch/ceph- release-1-0.el7.noarch.rpm [admin1][DEBUG ] Preparing... ######################################## [admin1][DEBUG ] Updating / installing...[admin1][DEBUG ] ceph-release-1-1.el7 ######################################## [admin1][WARNIN] ensuring that /etc/yum.repos.d/ceph.repo contains a high priority[admin1][WARNIN] altered ceph.repo priorities to contain: priority=1[admin1][INFO ] Running command: sudo yum -y install ceph ceph-radosgw[admin1][DEBUG ] Loaded plugins: fastestmirror, langpacks, priorities[admin1][WARNIN] Not using downloaded Ceph/repomd.xml because it is older than what we have:[admin1][WARNIN] Current : Thu Oct 5 18:41:59 2017[admin1][WARNIN] Downloaded: Wed Sep 27 15:56:09 2017[admin1][WARNIN] Not using downloaded Ceph-noarch/repomd.xml because it is older than what we have:[admin1][WARNIN] Current : Thu Oct 5 18:38:33 2017[admin1][WARNIN] Downloaded: Wed Sep 27 15:53:03 2017[admin1][WARNIN] Not using downloaded ceph-source/repomd.xml because it is older than what we have:[admin1][WARNIN] Current : Thu Oct 5 18:38:39 2017[admin1][WARNIN] Downloaded: Wed Sep 27 15:53:19 2017[admin1][DEBUG ] Loading mirror speeds from cached hostfile[admin1][DEBUG ] * base: mirror.netw.io[admin1][DEBUG ] * epel: anorien.csc.warwick.ac.uk[admin1][DEBUG ] * extras: anorien.csc.warwick.ac.uk[admin1][DEBUG ] * updates: mirror.sov.uk.goscomb.net[admin1][DEBUG ] 25 packages excluded due to repository priority protections[admin1][DEBUG ] Resolving Dependencies[admin1][WARNIN] There are unfinished transactions remaining. You might consider running yum-complete-transaction, or "yum-complete-transaction --cleanup-only" and "yum history redo last", first to finish them. If those don't work you'll have to try removing/installing packages by hand (maybe package-cleanup can help).[admin1][DEBUG ] --> Running transaction check[admin1][DEBUG ] ---> Package ceph.x86_64 1:10.2.10-0.el7 will be installed[admin1][DEBUG ] --> Processing Dependency: ceph-mon = 1:10.2.10-0.el7 for package: 1:ceph-10.2.10-0.el7.x86_64[admin1][DEBUG ] --> Processing Dependency: ceph-mds = 1:10.2.10-0.el7 for package: 1:ceph-10.2.10-0.el7.x86_64[admin1][DEBUG ] --> Processing Dependency: ceph-osd = 1:10.2.10-0.el7 for package: 1:ceph-10.2.10-0.el7.x86_64[admin1][DEBUG ] ---> Package ceph-radosgw.x86_64 1:10.2.10-0.el7 will be installed[admin1][DEBUG ] --> Processing Dependency: ceph-common = 1:10.2.10-0.el7 for package: 1:ceph-radosgw-10.2.10-0.el7.x86_64 [admin1][DEBUG ] --> Processing Dependency: ceph-selinux = 1:10.2.10-0.el7 for package: 1:ceph-radosgw-10.2.10-0.el7.x86_64 [admin1][DEBUG ] --> Processing Dependency: mailcap for package: 1:ceph-radosgw-10.2.10-0.el7.x86_64 [admin1][DEBUG ] --> Running transaction check[admin1][DEBUG ] ---> Package ceph-common.x86_64 1:10.2.10-0.el7 will be installed[admin1][DEBUG ] ---> Package ceph-mds.x86_64 1:10.2.10-0.el7 will be installed[admin1][DEBUG ] --> Processing Dependency: ceph-base = 1:10.2.10-0.el7 for package: 1:ceph-mds-10.2.10-0.el7.x86_64 [admin1][DEBUG ] ---> Package ceph-mon.x86_64 1:10.2.10-0.el7 will be installed[admin1][DEBUG ] ---> Package ceph-osd.x86_64 1:10.2.10-0.el7 will be installed[admin1][DEBUG ] ---> Package ceph-selinux.x86_64 1:10.2.10-0.el7 will be installed[admin1][DEBUG ] ---> Package mailcap.noarch 0:2.1.41-2.el7 will be installed[admin1][DEBUG ] --> Running transaction check[admin1][DEBUG ] ---> Package ceph-base.x86_64 1:10.2.10-0.el7 will be installed[admin1][DEBUG ] --> Finished Dependency Resolution[admin1][DEBUG ][admin1][DEBUG ] Dependencies Resolved[admin1][DEBUG ][admin1][DEBUG ] ============================================================ ==================== [admin1][DEBUG ] Package Arch Version Repository Size[admin1][DEBUG ] ============================================================ ==================== [admin1][DEBUG ] Installing:[admin1][DEBUG ] ceph x86_64 1:10.2.10-0.el7 Ceph 3.0 k[admin1][DEBUG ] ceph-radosgw x86_64 1:10.2.10-0.el7 Ceph 266 k[admin1][DEBUG ] Installing for dependencies:[admin1][DEBUG ] ceph-base x86_64 1:10.2.10-0.el7 Ceph 4.2 M[admin1][DEBUG ] ceph-common x86_64 1:10.2.10-0.el7 Ceph 17 M[admin1][DEBUG ] ceph-mds x86_64 1:10.2.10-0.el7 Ceph 2.8 M[admin1][DEBUG ] ceph-mon x86_64 1:10.2.10-0.el7 Ceph 2.8 M[admin1][DEBUG ] ceph-osd x86_64 1:10.2.10-0.el7 Ceph 9.1 M[admin1][DEBUG ] ceph-selinux x86_64 1:10.2.10-0.el7 Ceph 20 k[admin1][DEBUG ] mailcap noarch 2.1.41-2.el7 base 31 k[admin1][DEBUG ][admin1][DEBUG ] Transaction Summary[admin1][DEBUG ] ============================================================ ==================== [admin1][DEBUG ] Install 2 Packages (+7 Dependent packages)[admin1][DEBUG ][admin1][DEBUG ] Total download size: 36 M[admin1][DEBUG ] Installed size: 134 M[admin1][DEBUG ] Downloading packages:[admin1][WARNIN] http://download.ceph.com/rpm-luminous/el7/x86_64/ceph-10.2. [Errno 14] HTTP Error 404 - Not Found10-0.el7.x86_64.rpm: [admin1][WARNIN] Trying other mirror.[admin1][WARNIN] To address this issue please refer to the below knowledge base article[admin1][WARNIN][admin1][WARNIN] https://access.redhat.com/articles/1320623 [admin1][WARNIN][admin1][WARNIN] If above article doesn't help to resolve this issue please create a bug on https://bugs.centos.org/[admin1][WARNIN][admin1][WARNIN] http://download.ceph.com/rpm-luminous/el7/x86_64/ceph-base- [Errno 14] HTTP Error 404 - Not Found10.2.10-0.el7.x86_64.rpm: [admin1][WARNIN] Trying other mirror.[admin1][WARNIN] http://download.ceph.com/rpm-luminous/el7/x86_64/ceph- [Errno 14] HTTP Error 404 - Not Foundcommon-10.2.10-0.el7.x86_64. rpm: [admin1][WARNIN] Trying other mirror.[admin1][WARNIN] http://download.ceph.com/rpm-luminous/el7/x86_64/ceph-mds- [Errno 14] HTTP Error 404 - Not Found10.2.10-0.el7.x86_64.rpm: [admin1][WARNIN] Trying other mirror.[admin1][WARNIN] http://download.ceph.com/rpm-luminous/el7/x86_64/ceph-mon- [Errno 14] HTTP Error 404 - Not Found10.2.10-0.el7.x86_64.rpm: [admin1][WARNIN] Trying other mirror.[admin1][WARNIN] http://download.ceph.com/rpm-luminous/el7/x86_64/ceph-osd- [Errno 14] HTTP Error 404 - Not Found10.2.10-0.el7.x86_64.rpm: [admin1][WARNIN] Trying other mirror.[admin1][WARNIN] http://download.ceph.com/rpm-luminous/el7/x86_64/ceph- [Errno 14] HTTP Error 404 - Not Foundradosgw-10.2.10-0.el7.x86_64. rpm: [admin1][WARNIN] Trying other mirror.[admin1][WARNIN] http://download.ceph.com/rpm-luminous/el7/x86_64/ceph- [Errno 14] HTTP Error 404 - Not Foundselinux-10.2.10-0.el7.x86_64. rpm: [admin1][WARNIN] Trying other mirror.[admin1][WARNIN][admin1][WARNIN][admin1][WARNIN] Error downloading packages:[admin1][WARNIN] 1:ceph-selinux-10.2.10-0.el7.x86_64: [Errno 256] No more mirrors to try. [admin1][WARNIN] 1:ceph-10.2.10-0.el7.x86_64: [Errno 256] No more mirrors to try.[admin1][WARNIN] 1:ceph-mon-10.2.10-0.el7.x86_64: [Errno 256] No more mirrors to try. [admin1][WARNIN] 1:ceph-mds-10.2.10-0.el7.x86_64: [Errno 256] No more mirrors to try. [admin1][WARNIN] 1:ceph-radosgw-10.2.10-0.el7.x86_64: [Errno 256] No more mirrors to try. [admin1][WARNIN] 1:ceph-common-10.2.10-0.el7.x86_64: [Errno 256] No more mirrors to try. [admin1][WARNIN] 1:ceph-base-10.2.10-0.el7.x86_64: [Errno 256] No more mirrors to try. [admin1][WARNIN] 1:ceph-osd-10.2.10-0.el7.x86_64: [Errno 256] No more mirrors to try. [admin1][WARNIN][admin1][ERROR ] RuntimeError: command returned non-zero exit status: 1[ceph_deploy][ERROR ] RuntimeError: Failed to execute command: yum -y install ceph ceph-radosgw
Dr. T.J. Ragan
Research Computation Officer
Leicester Institute of Structural and Chemical Biology
University of Leicester, University Road, Leicester LE1 7RH, UK
t: +44 (0)116 223 1287
e: TJ.Ragan@xxxxxxxxxxxxxxx
w: www.le.ac.uk/liscb
On 15 Nov 2017, at 09:41, Hans van den Bogert <hansbogert@xxxxxxxxx> wrote:
/etc/yum.repos.d/ceph.repo
_______________________________________________
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