Actions
Bug #16916
closedHammer ceph-release Package Uses Obsolete URL
% Done:
0%
Source:
other
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):
Description
When installing the repo using this rpm: http://download.ceph.com/rpm-hammer/el7/noarch/ceph-release-1-0.el7.noarch.rpm the old/broken baseurl "baseurl=http://ceph.com/rpm-hammer/rhel7/$basearch" is used. The new url "baseurl=http://downloads.ceph.com/rpm-hammer/el7/$basearch" fixes the issue.
For reference here is output demonstrating the problem:
[root@pistoremon2-cc38-h01 yum.repos.d]# yum -y install http://download.ceph.com/rpm-hammer/el7/noarch/ceph-release-1-0.el7.noarch.rpm ... ... Installed: ceph-release.noarch 0:1-1.el7 ... ...
yum clean all
[root@pistoremon2-cc38-h01 yum.repos.d]# yum search ceph-mon Loaded plugins: fastestmirror, priorities http://ceph.com/rpm-hammer/rhel7/x86_64/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found Trying other mirror. To address this issue please refer to the below knowledge base article https://access.redhat.com/articles/1320623 If above article doesn't help to resolve this issue please create a bug on https://bugs.centos.org/ One of the configured repositories failed (Ceph packages for x86_64), and yum doesn't have enough cached data to continue. At this point the only safe thing yum can do is fail. There are a few ways to work "fix" this: 1. Contact the upstream for the repository and get them to fix the problem. 2. Reconfigure the baseurl/etc. for the repository, to point to a working upstream. This is most often useful if you are using a newer distribution release than is supported by the repository (and the packages for the previous distribution release still work). 3. Disable the repository, so yum won't use it by default. Yum will then just ignore the repository until you permanently enable it again or use --enablerepo for temporary usage: yum-config-manager --disable Ceph 4. Configure the failing repository to be skipped, if it is unavailable. Note that yum will try to contact the repo. when it runs most commands, so will have to try and fail each time (and thus. yum will be be much slower). If it is a very temporary problem though, this is often a nice compromise: yum-config-manager --save --setopt=Ceph.skip_if_unavailable=true failure: repodata/repomd.xml from Ceph: [Errno 256] No more mirrors to try. http://ceph.com/rpm-hammer/rhel7/x86_64/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found
Updated by Alfredo Deza over 7 years ago
- Status changed from New to In Progress
- Assignee set to Alfredo Deza
Updated by Alfredo Deza over 7 years ago
Required a change in the Binary/Repo API to include newer ceph-release packages: https://github.com/ceph/chacra/pull/168
Updated by Alfredo Deza over 7 years ago
New ceph-release is built, it just needs to get included in the new repo, signed, and published
Updated by Alfredo Deza over 7 years ago
- Status changed from In Progress to Resolved
[ceph_deploy.install][DEBUG ] Installing stable version hammer on cluster ceph hosts 9.node.a [ceph_deploy.install][DEBUG ] Detecting platform for host 9.node.a ... [9.node.a][DEBUG ] connection detected need for sudo [9.node.a][DEBUG ] connected to host: 9.node.a [9.node.a][DEBUG ] detect platform information from remote host [9.node.a][DEBUG ] detect machine type [ceph_deploy.install][INFO ] Distro info: CentOS Linux 7.0.1406 Core [9.node.a][INFO ] installing Ceph on 9.node.a [9.node.a][INFO ] Running command: sudo yum clean all [9.node.a][DEBUG ] Loaded plugins: fastestmirror, priorities [9.node.a][DEBUG ] Cleaning repos: base epel extras updates [9.node.a][DEBUG ] Cleaning up everything [9.node.a][DEBUG ] Cleaning up list of fastest mirrors [9.node.a][INFO ] Running command: sudo yum -y install epel-release [9.node.a][DEBUG ] Loaded plugins: fastestmirror, priorities [9.node.a][DEBUG ] Determining fastest mirrors [9.node.a][DEBUG ] * base: mirror.teklinks.com [9.node.a][DEBUG ] * epel: reflector.westga.edu [9.node.a][DEBUG ] * extras: mirror.beyondhosting.net [9.node.a][DEBUG ] * updates: mirrors.advancedhosters.com [9.node.a][DEBUG ] Package epel-release-7-7.noarch already installed and latest version [9.node.a][DEBUG ] Nothing to do [9.node.a][INFO ] Running command: sudo yum -y install yum-plugin-priorities [9.node.a][DEBUG ] Loaded plugins: fastestmirror, priorities [9.node.a][DEBUG ] Loading mirror speeds from cached hostfile [9.node.a][DEBUG ] * base: mirror.teklinks.com [9.node.a][DEBUG ] * epel: reflector.westga.edu [9.node.a][DEBUG ] * extras: mirror.beyondhosting.net [9.node.a][DEBUG ] * updates: mirrors.advancedhosters.com [9.node.a][DEBUG ] Package yum-plugin-priorities-1.1.31-34.el7.noarch already installed and latest version [9.node.a][DEBUG ] Nothing to do [9.node.a][DEBUG ] Configure Yum priorities to include obsoletes [9.node.a][WARNIN] check_obsoletes has been enabled for Yum priorities plugin [9.node.a][INFO ] Running command: sudo rpm --import https://download.ceph.com/keys/release.asc [9.node.a][INFO ] Running command: sudo rpm -Uvh --replacepkgs https://download.ceph.com/rpm-hammer/el7/noarch/ceph-release-1-0.el7.noarch.rpm [9.node.a][DEBUG ] Retrieving https://download.ceph.com/rpm-hammer/el7/noarch/ceph-release-1-0.el7.noarch.rpm [9.node.a][DEBUG ] Preparing... ######################################## [9.node.a][DEBUG ] Updating / installing... [9.node.a][DEBUG ] ceph-release-1-1.el7 ######################################## [9.node.a][WARNIN] ensuring that /etc/yum.repos.d/ceph.repo contains a high priority [9.node.a][WARNIN] altered ceph.repo priorities to contain: priority=1 [9.node.a][INFO ] Running command: sudo yum -y install ceph ceph-radosgw [9.node.a][DEBUG ] Loaded plugins: fastestmirror, priorities [9.node.a][DEBUG ] Loading mirror speeds from cached hostfile [9.node.a][DEBUG ] * base: mirror.teklinks.com [9.node.a][DEBUG ] * epel: reflector.westga.edu [9.node.a][DEBUG ] * extras: mirror.beyondhosting.net [9.node.a][DEBUG ] * updates: mirrors.advancedhosters.com [9.node.a][DEBUG ] 26 packages excluded due to repository priority protections [9.node.a][DEBUG ] Resolving Dependencies [9.node.a][DEBUG ] --> Running transaction check [9.node.a][DEBUG ] ---> Package ceph.x86_64 1:0.94.7-0.el7 will be installed
Updated by James Saint-Rossy over 7 years ago
Confirmed that the issue is resolved. Thanks Alfredo!
[root@pistorergw1-cc38-h01 yum.repos.d]# yum -y install http://download.ceph.com/rpm-hammer/el7/noarch/ceph-release-1-0.el7.noarch.rpm Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register. ceph-release-1-0.el7.noarch.rpm | 2.9 kB 00:00:00 Examining /var/tmp/yum-root-Gs1ySo/ceph-release-1-0.el7.noarch.rpm: ceph-release-1-1.el7.noarch Marking /var/tmp/yum-root-Gs1ySo/ceph-release-1-0.el7.noarch.rpm to be installed Resolving Dependencies --> Running transaction check ---> Package ceph-release.noarch 0:1-1.el7 will be installed --> Finished Dependency Resolution Dependencies Resolved ================================================================================================================================================================================================================================================================================ Package Arch Version Repository Size ================================================================================================================================================================================================================================================================================ Installing: ceph-release noarch 1-1.el7 /ceph-release-1-0.el7.noarch 538 Transaction Summary ================================================================================================================================================================================================================================================================================ Install 1 Package Total size: 538 Installed size: 538 Downloading packages: Running transaction check Running transaction test Transaction test succeeded Running transaction Installing : ceph-release-1-1.el7.noarch 1/1 Verifying : ceph-release-1-1.el7.noarch 1/1 Installed: ceph-release.noarch 0:1-1.el7 Complete! [root@pistorergw1-cc38-h01 yum.repos.d]# cat ceph.repo [Ceph] name=Ceph packages for $basearch baseurl=http://download.ceph.com/rpm-hammer/el7/$basearch enabled=1 gpgcheck=1 type=rpm-md gpgkey=https://download.ceph.com/keys/release.asc [Ceph-noarch] name=Ceph noarch packages baseurl=http://download.ceph.com/rpm-hammer/el7/noarch enabled=1 gpgcheck=1 type=rpm-md gpgkey=https://download.ceph.com/keys/release.asc [ceph-source] name=Ceph source packages baseurl=http://download.ceph.com/rpm-hammer/el7/SRPMS enabled=1 gpgcheck=1 type=rpm-md gpgkey=https://download.ceph.com/keys/release.asc [root@pistorergw1-cc38-h01 yum.repos.d]#
Actions