Skip to content

Commit

Permalink
fix dual mode
Browse files Browse the repository at this point in the history
Signed-off-by: Changlu Yi <[email protected]>
  • Loading branch information
changluyi committed Jan 18, 2024
1 parent a93d682 commit 23551e8
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions test/e2e/ovn-ic/e2e_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,11 @@ var _ = framework.SerialDescribe("[group:ovn-ic]", func() {
framework.ConformanceIt("Should Support ECMP OVN Interconnection", func() {
frameworks[0].SkipVersionPriorTo(1, 11, "This feature was introduced in v1.11")
ginkgo.By("case 1: ecmp gateway network test")
checkECMPCount(3)
if frameworks[0].ClusterIPFamily == "dual" {
checkECMPCount(6)
} else {
checkECMPCount(3)
}
fnCheckPodHTTP()

ginkgo.By("case 2: reduce two clusters from 3 gateway to 1 gateway")
Expand Down Expand Up @@ -258,13 +262,21 @@ var _ = framework.SerialDescribe("[group:ovn-ic]", func() {

patchCmd := "kubectl patch deployment ovn-ic-server -n kube-system --type='json' -p=\"[{'op': 'replace', 'path': '/spec/template/spec/containers/0/env/1/value', 'value': '5'}]\""
_, _ = exec.Command("bash", "-c", patchCmd).CombinedOutput()
checkECMPCount(5)
if frameworks[0].ClusterIPFamily == "dual" {
checkECMPCount(10)
} else {
checkECMPCount(5)
}
fnCheckPodHTTP()

ginkgo.By("case 5: reduce ecmp path from 5 to 3 ")
patchCmd = "kubectl patch deployment ovn-ic-server -n kube-system --type='json' -p=\"[{'op': 'replace', 'path': '/spec/template/spec/containers/0/env/1/value', 'value': '3'}]\""
_, _ = exec.Command("bash", "-c", patchCmd).CombinedOutput()
checkECMPCount(3)
if frameworks[0].ClusterIPFamily == "dual" {
checkECMPCount(6)
} else {
checkECMPCount(3)
}
fnCheckPodHTTP()

ginkgo.By("case 6: disable gateway kube-ovn1-worker gateway")
Expand Down

0 comments on commit 23551e8

Please sign in to comment.