]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-deploy.git/commitdiff
refuse to install with custom cluster names on sysvinit hosts 191/head
authorAlfredo Deza <alfredo.deza@inktank.com>
Wed, 21 May 2014 12:58:34 +0000 (08:58 -0400)
committerAlfredo Deza <alfredo.deza@inktank.com>
Wed, 21 May 2014 12:58:34 +0000 (08:58 -0400)
Signed-off-by: Alfredo Deza <alfredo.deza@inktank.com>
ceph_deploy/install.py

index 21dd5072a81a060073f8c498ef949ede9b30027c..2605568c256ac625dda93d8d99c3f3b51220f262 100644 (file)
@@ -41,6 +41,16 @@ def install(args):
             distro.release,
             distro.codename
         )
+
+        if distro.init == 'sysvinit' and args.cluster != 'ceph':
+            LOG.error('refusing to install on host: %s, with custom cluster name: %s' % (
+                    hostname,
+                    args.cluster,
+                )
+            )
+            LOG.error('custom cluster names are not supported on sysvinit hosts')
+            continue
+
         rlogger = logging.getLogger(hostname)
         rlogger.info('installing ceph on %s' % hostname)