From 5832b7f1d301e41b2324255c1348be2af9ce18f2 Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Tue, 5 Jul 2022 21:41:29 +0000 Subject: [PATCH] Move normalization pause to after power off --- bootstrap-daemon/pvcbootstrapd/lib/redfish.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bootstrap-daemon/pvcbootstrapd/lib/redfish.py b/bootstrap-daemon/pvcbootstrapd/lib/redfish.py index 8f65dee..e36bc26 100755 --- a/bootstrap-daemon/pvcbootstrapd/lib/redfish.py +++ b/bootstrap-daemon/pvcbootstrapd/lib/redfish.py @@ -730,6 +730,9 @@ def redfish_init(config, cspec, data): set_power_state(session, system_root, redfish_vendor, "off") set_indicator_state(session, system_root, redfish_vendor, "on") + logger.info("Waiting 60 seconds for system normalization") + sleep(60) + # Get the system details logger.debug("Get the system details") system_detail = session.get(system_root) @@ -790,9 +793,6 @@ def redfish_init(config, cspec, data): ) logger.debug(node) - logger.info("Waiting 60 seconds for system normalization") - sleep(60) - logger.info("Determining system disk...") storage_root = system_detail.get("Storage", {}).get("@odata.id") system_drive_target = get_system_drive_target(session, cspec_node, storage_root)