Skip to content

Commit

Permalink
Current iptables fixture tears down nodes in order modify iptables. (#…
Browse files Browse the repository at this point in the history
…1954)

When the machines started again the cached info must be refreshed.

In case machines state changed like stop/reboot cashed info may
hide bugs in the node controllers or fail tests.

This patch is continuation of #1947
Due to some mismach i created new patch.
  • Loading branch information
bkopilov authored Dec 18, 2022
1 parent 5dce0f1 commit 49fbbf8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/assisted_test_infra/test_infra/helper_classes/nodes.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ def get_random_node(self):

def shutdown_all(self):
self.run_for_all_nodes("shutdown")
self.drop_cache()

def notify_iso_ready(self):
self.controller.notify_iso_ready()
Expand All @@ -108,9 +109,11 @@ def start_all(self, check_ips=True):

def start_given(self, nodes):
self.run_for_given_nodes(nodes, "start")
self.drop_cache()

def shutdown_given(self, nodes):
self.run_for_given_nodes(nodes, "shutdown")
self.drop_cache()

def format_all_disks(self):
self.run_for_all_nodes("format_disk")
Expand All @@ -129,9 +132,11 @@ def prepare_nodes(self):

def reboot_all(self):
self.run_for_all_nodes("restart")
self.drop_cache()

def reboot_given(self, nodes):
self.run_for_given_nodes(nodes, "restart")
self.drop_cache()

def get_cluster_network(self):
return self.controller.get_cluster_network()
Expand Down

0 comments on commit 49fbbf8

Please sign in to comment.