]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-deploy.git/commitdiff
[BZ-1218962] log as error that we can't deploy MDS in RHEL yet
authorAlfredo Deza <adeza@redhat.com>
Thu, 14 May 2015 20:26:39 +0000 (16:26 -0400)
committerAlfredo Deza <adeza@redhat.com>
Mon, 18 May 2015 14:39:44 +0000 (10:39 -0400)
Signed-off-by: Alfredo Deza <adeza@redhat.com>
ceph_deploy/mds.py

index 07621d24c281366f3adcd641387e10c2e4d46638..f0cdcb72524ab095e10bee099aab957a015b146a 100644 (file)
@@ -128,6 +128,8 @@ def mds_create(args):
 
     bootstrapped = set()
     errors = 0
+    failed_on_rhel = False
+
     for hostname, name in args.mds:
         try:
             distro = hosts.get(hostname, username=args.username)
@@ -138,6 +140,7 @@ def mds_create(args):
                 distro.release,
                 distro.codename
             )
+
             LOG.debug('remote host will use %s', distro.init)
 
             if hostname not in bootstrapped:
@@ -162,10 +165,19 @@ def mds_create(args):
             create_mds(distro, name, args.cluster, distro.init)
             distro.conn.exit()
         except RuntimeError as e:
+            if distro.normalized_name == 'redhat':
+                LOG.error('this feature may not yet available for %s %s' % (distro.name, distro.release))
+                failed_on_rhel = True
             LOG.error(e)
             errors += 1
 
     if errors:
+        if failed_on_rhel:
+            # because users only read the last few lines :(
+            LOG.error(
+                'RHEL RHCS systems do not have the ability to deploy MDS yet'
+            )
+
         raise exc.GenericError('Failed to create %d MDSs' % errors)