bgpv1: Avoid binding to ephemeral ports in tests #26209
Labels
area/bgp
area/CI
Continuous Integration testing issue or flake
kind/cleanup
This includes no functional changes.
pinned
These issues are not marked stale by our issue bot.
The tests in:
pkg/bgpv1/test
("BGP component tests")pkg/bgpv1/manager/reconcile_test.go
("Reconciler unit tests")bind to ports above 1023 (in particular:
1790-1794
). This can cause issues on some systems where these ports fall under the ephemeral port number range. Although it should be fine in most Linux distributions which usually default the ephemeral port range to32768-60999
, we should avoid this.For the "BGP component tests":
179
) for all BGP instances in the test, given that they do not bind to::179
/0.0.0.0:179
, but use distinct bind address (Global.ListenAddresses
in GoBGP). That may require adding a new way of exposing this config for the Cilium agent's BGP instance, for example with a new annotation similar to the existinglocal-port
one.For the "Reconciler unit tests":
179
), we would need one more as the test exercises the change of the port.The text was updated successfully, but these errors were encountered: