Project

General

Profile

Bug #46773

Updated by Sebastian Wagner almost 4 years ago

How I hit this -  
 Wanted to test pacific cephadm  

 <pre> 
  
 >> curl --silent --remote-name --location https://raw.githubusercontent.com/ceph/ceph/pacific/src/cephadm/cephadm 
 </pre> 

 As pacific rpms were not available at https://download.ceph.com/ add-repo failed saying  

 <pre> 
  
 # ./cephadm add-repo --release pacific 
 INFO:root:Writing repo to /etc/yum.repos.d/ceph.repo... 
 INFO:cephadm:Enabling EPEL... 
 INFO:cephadm:Non-zero exit code 1 from yum install -y epel-release 
 INFO:cephadm:yum:stdout Updating Subscription Management repositories. 
 INFO:cephadm:yum:stdout Ceph x86_64                                       373    B/s | 162    B       00:00     
 INFO:cephadm:yum:stderr Errors during downloading metadata for repository 'Ceph': 
 INFO:cephadm:yum:stderr     - Status code: 404 for https://download.ceph.com/rpm-pacific/el8/x86_64/repodata/repomd.xml (IP: 158.69.68.124) 
 INFO:cephadm:yum:stderr Error: Failed to download metadata for repo 'Ceph': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried 
 Traceback (most recent call last): 
   File "./cephadm", line 4634, in <module> 
     r = args.func() 
   File "./cephadm", line 4140, in command_add_repo 
     pkg.add_repo() 
   File "./cephadm", line 3993, in add_repo 
     call_throws([self.tool, 'install', '-y', 'epel-release']) 
   File "./cephadm", line 837, in call_throws 
     raise RuntimeError('Failed command: %s' % ' '.join(command)) 
 RuntimeError: Failed command: yum install -y epel-release 
 </pre> 

 


 Later tried adding 'abcd', ceph adm was looking for rpm-abcd in download.ceph.com 
 It would be nice if we can restrict adding new repos if the repo name is invalid

Back