Update test04 to not power cycle nodes if already discovered, assuming pr-gate type environment
@@ -123,6 +123,13 @@ class rackhd_stack_init(unittest.TestCase):
# no PDU case
else:
log.info_5('**** No supported PDU found, restarting nodes using IPMI.')
+ # Check if some nodes are already discovered
+ nodes = []
+ nodes = fit_common.node_select()
+ if nodes:
+ log.info_5(" Nodes already discovered, skipping ipmi power reset")
+ log.info_5(" %s", nodes)
+ else:
# Power cycle all nodes via IPMI, display warning if no nodes found
if fit_common.power_control_all_nodes("off") == 0:
log.info_5('**** No BMC IP addresses found in arp table, continuing without node restart.')
