]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-deploy.git/commitdiff
raise if platform is not supported
authorAlfredo Deza <alfredo.deza@inktank.com>
Tue, 1 Apr 2014 19:03:11 +0000 (15:03 -0400)
committerAlfredo Deza <alfredo.deza@inktank.com>
Tue, 1 Apr 2014 19:03:11 +0000 (15:03 -0400)
Signed-off-by: Alfredo Deza <alfredo.deza@inktank.com>
ceph_deploy/calamari.py

index 8db935cb72c2545e3d818151dc56968d4fde7713..53f882a66f5f70c7400b8a83874a089220477876 100644 (file)
@@ -1,5 +1,5 @@
 import logging
-from ceph_deploy import hosts
+from ceph_deploy import hosts, exc
 from ceph_deploy.lib.remoto import process
 
 
@@ -36,6 +36,13 @@ def connect(args):
 
     for hostname in args.hosts:
         distro = hosts.get(hostname, username=args.username)
+        if not distro_is_supported(distro.normalized_name):
+            raise exc.UnsupportedPlatform(
+                distro.distro_name,
+                distro.codename,
+                distro.release
+            )
+
         LOG.info(
             'Distro info: %s %s %s',
             distro.name,
@@ -63,6 +70,7 @@ def connect(args):
 
         distro.pkg.install(distro, 'salt-minion')
 
+        # redhat/centos need to get the service started
         if distro.normalized_name in ['redhat', 'centos']:
             process.run(
                 distro.conn,