Skip to content

Commit bb49ed3

Browse files
authored
Dev: behave: Fix cross-network isolation issue (#1788)
After the GitHub Actions environment was updated, the network isolation between the two interfaces no longer functions as it did previously. As a result, the test case "Setup cluster with crossed network" does not fail as expected. To address this, an iptables rule was added to simulate the isolated network environment required for the test case.
2 parents 90b6d94 + c53fa29 commit bb49ed3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/features/bootstrap_bugs.feature

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,13 @@ Feature: Regression test for bootstrap bugs
6666
Given Cluster service is "stopped" on "hanode2"
6767
When Run "crm cluster init -i eth0 -y" on "hanode1"
6868
Then Cluster service is "started" on "hanode1"
69+
When Run "iptables -A INPUT -i eth1 -s @hanode1.ip.0 -j DROP" on "hanode2"
6970
When Try "crm cluster join -c hanode1 -i eth1 -y" on "hanode2"
7071
Then Cluster service is "stopped" on "hanode2"
7172
And Except "Cannot see peer node "hanode1", please check the communication IP" in stderr
7273
When Run "crm cluster join -c hanode1 -i eth0 -y" on "hanode2"
7374
Then Cluster service is "started" on "hanode2"
75+
When Run "iptables -D INPUT -i eth1 -s @hanode1.ip.0 -j DROP" on "hanode2"
7476

7577
@clean
7678
Scenario: Remove correspond nodelist in corosync.conf while remove(bsc#1165644)

0 commit comments

Comments
 (0)