From: Sebastian Wagner Date: Thu, 26 Mar 2020 11:21:31 +0000 (+0100) Subject: cephadm: check hostnames case insensitive X-Git-Tag: v17.0.0~2750^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=8194d4972fe3e58c801e4f0554fdff98ed7dfaa4;p=ceph.git cephadm: check hostnames case insensitive Salt converts minion names to lowercase. Signed-off-by: Sebastian Wagner --- diff --git a/src/cephadm/cephadm b/src/cephadm/cephadm index 94bf18f62c511..4f6944c8e711b 100755 --- a/src/cephadm/cephadm +++ b/src/cephadm/cephadm @@ -3333,7 +3333,7 @@ def command_check_host(): errors.append('No time synchronization is active') if 'expect_hostname' in args and args.expect_hostname: - if get_hostname() != args.expect_hostname: + if get_hostname().lower() != args.expect_hostname.lower(): errors.append('hostname "%s" does not match expected hostname "%s"' % ( get_hostname(), args.expect_hostname)) logger.info('Hostname "%s" matches what is expected.',