Compare commits
2 Commits
a37b4ce456
...
5832b7f1d3
Author | SHA1 | Date | |
---|---|---|---|
5832b7f1d3 | |||
171ac11021 |
@ -86,7 +86,7 @@ class RedfishSession:
|
|||||||
login_response = None
|
login_response = None
|
||||||
|
|
||||||
tries = 1
|
tries = 1
|
||||||
max_tries = 25
|
max_tries = 31
|
||||||
while tries < max_tries:
|
while tries < max_tries:
|
||||||
logger.info(f"Trying to log in to Redfish ({tries}/{max_tries - 1})...")
|
logger.info(f"Trying to log in to Redfish ({tries}/{max_tries - 1})...")
|
||||||
try:
|
try:
|
||||||
@ -730,6 +730,9 @@ def redfish_init(config, cspec, data):
|
|||||||
set_power_state(session, system_root, redfish_vendor, "off")
|
set_power_state(session, system_root, redfish_vendor, "off")
|
||||||
set_indicator_state(session, system_root, redfish_vendor, "on")
|
set_indicator_state(session, system_root, redfish_vendor, "on")
|
||||||
|
|
||||||
|
logger.info("Waiting 60 seconds for system normalization")
|
||||||
|
sleep(60)
|
||||||
|
|
||||||
# Get the system details
|
# Get the system details
|
||||||
logger.debug("Get the system details")
|
logger.debug("Get the system details")
|
||||||
system_detail = session.get(system_root)
|
system_detail = session.get(system_root)
|
||||||
@ -790,9 +793,6 @@ def redfish_init(config, cspec, data):
|
|||||||
)
|
)
|
||||||
logger.debug(node)
|
logger.debug(node)
|
||||||
|
|
||||||
logger.info("Waiting 60 seconds for system normalization")
|
|
||||||
sleep(60)
|
|
||||||
|
|
||||||
logger.info("Determining system disk...")
|
logger.info("Determining system disk...")
|
||||||
storage_root = system_detail.get("Storage", {}).get("@odata.id")
|
storage_root = system_detail.get("Storage", {}).get("@odata.id")
|
||||||
system_drive_target = get_system_drive_target(session, cspec_node, storage_root)
|
system_drive_target = get_system_drive_target(session, cspec_node, storage_root)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user