From: Alfredo Deza Date: Thu, 14 May 2015 20:26:39 +0000 (-0400) Subject: [BZ-1218962] log as error that we can't deploy MDS in RHEL yet X-Git-Tag: v1.5.24~3^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=5c01ba76d831477fc39411c39bc8516eb628d519;p=ceph-deploy.git [BZ-1218962] log as error that we can't deploy MDS in RHEL yet Signed-off-by: Alfredo Deza --- diff --git a/ceph_deploy/mds.py b/ceph_deploy/mds.py index 07621d2..f0cdcb7 100644 --- a/ceph_deploy/mds.py +++ b/ceph_deploy/mds.py @@ -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)