Browse Source

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
changes/99/785799/2
Julia Marciano 1 month ago
committed by Julia Mariano
parent
commit
e3e34bcdad
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      tobiko/tests/faults/ha/cloud_disruptions.py

+ 2
- 2
tobiko/tests/faults/ha/cloud_disruptions.py 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)"


Loading…
Cancel
Save