From b1951b3d8613660559ffd970fc21c0d81b99e862 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Tue, 16 Jan 2018 09:18:30 -0500 Subject: [PATCH] Add error on older XCC firmware When we do hit a problem with the chained configuration and older XCC, log a message to show why discovery will forever fail. --- confluent_server/confluent/discovery/core.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/confluent_server/confluent/discovery/core.py b/confluent_server/confluent/discovery/core.py index 4c2aa0f4..608258fb 100644 --- a/confluent_server/confluent/discovery/core.py +++ b/confluent_server/confluent/discovery/core.py @@ -870,6 +870,13 @@ def eval_node(cfg, handler, info, nodename, manual=False): # to continue nl = list(cfg.filter_node_attributes( 'enclosure.manager=' + enl[0])) + else: + errorstr = 'Chained SMM configuration with older XCC, ' \ + 'unable to perform zero power discovery' + if manual: + raise exc.InvalidArgumentException(errorstr) + log.log({'error': errorstr}) + return # search for nodes fitting our description using filters # lead with the most specific to have a small second pass nl = list(cfg.filter_node_attributes(