Change the path where working Iptables will be saved, in case of Network Disruption, from '/root' to '/home/heat-admin', so that it could work for compute nodes as well (currently, network disruption on Instance-HA (OSP13) is ignored).

Change-Id: I4ab9b6ab7cc3a7f64b6c226585fd24af9d9ff187
This commit is contained in:
Julia Marciano 2021-04-11 20:13:29 +03:00 committed by Julia Mariano
parent da63824b88
commit e3e34bcdad
1 changed files with 2 additions and 2 deletions

View File

@ -25,7 +25,7 @@ from tobiko.tests.faults.ha import test_cloud_recovery
LOG = log.getLogger(__name__)
network_disruption = """
sudo iptables-save -f /root/working.iptables.rules &&
sudo iptables-save > /home/heat-admin/working.iptables.rules &&
sudo iptables -I INPUT 1 -m state --state RELATED,ESTABLISHED -j ACCEPT &&
sudo iptables -I INPUT 2 -p tcp -m state --state NEW -m tcp --dport 22 -j \
ACCEPT &&
@ -35,7 +35,7 @@ network_disruption = """
"""
undisrupt_network = """
sudo iptables-restore /root/working.iptables.rules
sudo iptables-restore /home/heat-admin/working.iptables.rules
"""
ovn_db_pcs_resource_restart = "sudo pcs resource restart ovn-dbs-bundle"
kill_rabbit = "sudo kill -9 $(pgrep beam.smp)"