From f467cfe7c47c7454484174b09f2d8c5c1eabafb9 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Thu, 30 Jun 2022 13:28:26 -0400 Subject: [PATCH] Add log message for mac interrogation of switch Clarify when things go wrong due to certificate. --- confluent_server/confluent/networking/macmap.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/confluent_server/confluent/networking/macmap.py b/confluent_server/confluent/networking/macmap.py index 16edffca..f44e8c93 100644 --- a/confluent_server/confluent/networking/macmap.py +++ b/confluent_server/confluent/networking/macmap.py @@ -260,6 +260,11 @@ def _map_switch_backend(args): if switch not in noaffluent: try: return _affluent_map_switch(args) + except exc.PubkeyInvalid: + log.log({'error': 'While trying to gather ethernet mac addresses ' + 'from {0}, the TLS certificate failed validation. ' + 'Clear pubkeys.tls_hardwaremanager if this was ' + 'expected due to reinstall or new certificate'.format(switch)}) except Exception: pass mactobridge, ifnamemap, bridgetoifmap = _offload_map_switch(