Skip to content

Commit fcbb05d

Browse files
committed
clusterNode: Stop baremetal nodes during teardown.
The baremetal nodes were kept running even after teardown, this could cause issues during next installation if the baremetal node had any ingress IP reserved. Signed-off-by: Ales Musil <[email protected]>
1 parent 2a7523b commit fcbb05d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

clusterNode.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,12 @@ def post_boot(self, *, desired_ip_range: Optional[tuple[str, str]] = None) -> bo
259259
self.dynamic_ip = ips[0]
260260
return True
261261

262+
def teardown(self) -> None:
263+
assert self.config.bmc is not None
264+
bmc = BMC.from_bmc_config(self.config.bmc)
265+
h = host.Host(self.config.node, bmc)
266+
h.stop()
267+
262268

263269
class BFClusterNode(ClusterNode):
264270
external_port: str

0 commit comments

Comments
 (0)