Commit b0164ea
committed
openstack: Reserve addresses for load balancer
When using Octavia, we use the .5 and .7 addresses on the first machine
network for API and Ingress VIP, respectively [1]. However, we were not
reserving these address when creating the network. This can result in an
IP collision if another service happens to allocate one of these two IPs
before the load balancer is created. This can happen if DHCP agents are
running on the controller/network nodes, as each agent creates its own
DHCP port on the subnet.
The solution is to use allocation pools - which are designed exactly for
this purpose - and configure one on the subnet we create (via CAPO). We
reserve everything < .10 in case we need more addresses down the line.
[1] `SetPlatformDefaults` in `pkg/types/openstack/defaults/platform.go`
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>1 parent f7fc26d commit b0164ea
1 file changed
Lines changed: 14 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
| |||
81 | 82 | | |
82 | 83 | | |
83 | 84 | | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
84 | 91 | | |
85 | 92 | | |
86 | | - | |
| 93 | + | |
87 | 94 | | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
88 | 101 | | |
89 | 102 | | |
90 | 103 | | |
| |||
0 commit comments