From eeb3a3fa65a3dc26e48842b192197d93ccf3745c Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Tue, 22 Sep 2020 14:33:58 -0400 Subject: [PATCH] Have a clause for redfish not yet ready We need redfish, but redfish is slow to boot on TSM.. --- confluent_server/confluent/discovery/handlers/tsm.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/confluent_server/confluent/discovery/handlers/tsm.py b/confluent_server/confluent/discovery/handlers/tsm.py index 69e103f4..7f9f80e7 100644 --- a/confluent_server/confluent/discovery/handlers/tsm.py +++ b/confluent_server/confluent/discovery/handlers/tsm.py @@ -102,6 +102,8 @@ class NodeHandler(generic.NodeHandler): if status >= 200 and status < 300: authdata['password'] = self.targpass eventlet.sleep(10) + else: + raise Exception("Redfish may not have been ready yet") else: rsp, status = wc.grab_json_response_with_status('/api/reset-pass', urlencode(passchange)) authdata['password'] = self.targpass