]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
cephadm: throw error when trying to add some unsupported repos 41813/head
authorAdam King <adking@redhat.com>
Thu, 10 Jun 2021 19:49:05 +0000 (15:49 -0400)
committerAdam King <adking@redhat.com>
Thu, 10 Jun 2021 20:46:10 +0000 (16:46 -0400)
we son't have any repos available for fedora os always error there.

unlike octopus, el7 yum/dnf distros are not supported in pacific
so error there as well.

Signed-off-by: Adam King <adking@redhat.com>
src/cephadm/cephadm

index 0b63caecda5a82f3ed88196aea675c1e71f349e1..10a8c25657ae40b97c72a90158adf1ae4f649674 100755 (executable)
@@ -6016,6 +6016,13 @@ class YumDnf(Packager):
                                      self.distro_code)
 
     def add_repo(self):
+        if self.distro_code.startswith('fc'):
+            raise Error('Ceph team does not build Fedora specific packages and therefore cannot add repos for this distro')
+        if self.distro_code == 'el7':
+            if self.stable and self.stable >= 'pacific':
+                raise Error('Ceph does not support pacific or later for this version of this linux distro and therefore cannot add a repo for it')
+            if self.version and self.version.split('.')[0] >= '16':
+                raise Error('Ceph does not support 16.y.z or later for this version of this linux distro and therefore cannot add a repo for it')
         if self.stable or self.version:
             content = ''
             for n, t in {