From fcde113e08fffbf1c19ae3ef51eb493126a792a6 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Wed, 8 Feb 2023 14:45:16 -0500 Subject: [PATCH] Add a check of dns.domain to selfcheck for node --- confluent_server/bin/confluent_selfcheck | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/confluent_server/bin/confluent_selfcheck b/confluent_server/bin/confluent_selfcheck index e22d47b1..845bb107 100755 --- a/confluent_server/bin/confluent_selfcheck +++ b/confluent_server/bin/confluent_selfcheck @@ -242,6 +242,11 @@ if __name__ == '__main__': emprint(f'There is no node named "{args.node}"') allok = False uuidok = True # not really, but suppress the spurious error + dnsdomain = rsp.get('dns.domain', {}).get('value', '') + if ',' in dnsdomain or ' ' in dnsdomain: + allok = False + emprint(f'{args.node} has a dns.domain that appears to be a search instead of singular domain') + uuidok = True # not really, but suppress the spurious error uuid = rsp.get('id.uuid', {}).get('value', None) if uuid: uuidok = True