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:
parent
da63824b88
commit
e3e34bcdad
|
@ -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)"
|
||||
|
|
Loading…
Reference in New Issue