Increase timeout for ironic power-on and power-off operations
Some test failed recently due to timeout powering-off a controller node This patch should make that test stable and prevent timeouts in any other tests using ironic to power-on/off overcloud nodes Change-Id: If6262e5930dc41edd50215da3f71844651057eaf
This commit is contained in:
parent
0845507019
commit
60a8ad834f
@ -76,7 +76,7 @@ def power_on_overcloud_node(server: typing.Union[nova.ServerType]):
|
|||||||
if node_id is not None:
|
if node_id is not None:
|
||||||
client = ironic.get_ironic_client(session=session)
|
client = ironic.get_ironic_client(session=session)
|
||||||
try:
|
try:
|
||||||
ironic.power_on_node(client=client, node=node_id)
|
ironic.power_on_node(client=client, node=node_id, timeout=60)
|
||||||
return
|
return
|
||||||
except ironic.WaitForNodePowerStateError:
|
except ironic.WaitForNodePowerStateError:
|
||||||
LOG.exception(f"Failed powering on Ironic node: '{node_id}'")
|
LOG.exception(f"Failed powering on Ironic node: '{node_id}'")
|
||||||
@ -93,7 +93,7 @@ def power_off_overcloud_node(server: typing.Union[nova.ServerType]) \
|
|||||||
if node_id is not None:
|
if node_id is not None:
|
||||||
client = ironic.get_ironic_client(session=session)
|
client = ironic.get_ironic_client(session=session)
|
||||||
try:
|
try:
|
||||||
ironic.power_off_node(client=client, node=node_id)
|
ironic.power_off_node(client=client, node=node_id, timeout=60)
|
||||||
return
|
return
|
||||||
except ironic.WaitForNodePowerStateError:
|
except ironic.WaitForNodePowerStateError:
|
||||||
LOG.exception(f"Failed powering off Ironic node: '{node_id}'")
|
LOG.exception(f"Failed powering off Ironic node: '{node_id}'")
|
||||||
|
Loading…
Reference in New Issue
Block a user