kubernetes/kubernetes

rewrite TestUnderTemporaryNetworkFailure to use nftables

Open

#119,047 opened on 2023年7月3日

GitHub で見る
 (18 comments) (1 reaction) (3 assignees)Go (43,066 forks)batch import
help wantedsig/networktriage/accepted

Repository metrics

Stars
 (122,268 stars)
PR merge metrics
 (平均マージ 28d 17h) (30d で 343 merged PRs)

説明

Some e2e tests use TestUnderTemporaryNetworkFailure in test/e2e/framework/network to test how a component behaves when the network goes down. (Additionally, one test in test/e2e/apimachinery does the same thing "by hand" but ought to be rewritten to use TestUnderTemporaryNetworkFailure, or at least to use the BlockNetwork / UnblockNetwork functions that it uses.)

This test currently uses iptables rules to simulate the network failure, but in the future, nftables will be more widely-supported/widely-available than iptables, so it should be rewritten to try using nft first, and only fall back to iptables if nft isn't installed.

/sig network

[EDIT: TestUnderTemporaryNetworkFailure was removed as part of #128896, so now this is just about the etcd test.]

コントリビューターガイド