From 8084f5780dd6ca730f86a319dac8227af338ce44 Mon Sep 17 00:00:00 2001 From: Alfredo Deza Date: Wed, 21 May 2014 08:58:34 -0400 Subject: [PATCH] refuse to install with custom cluster names on sysvinit hosts Signed-off-by: Alfredo Deza --- ceph_deploy/install.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/ceph_deploy/install.py b/ceph_deploy/install.py index 21dd507..2605568 100644 --- a/ceph_deploy/install.py +++ b/ceph_deploy/install.py @@ -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) -- 2.47.3