Commit d014b87
[occm] cherrypick: LB - Fix floating ip subnet detection and ipv6 handling (kubernetes#2022)
* [occm] Skip External network with IPv6 for FIPs creation (kubernetes#1992)
OpenStack does not support creation of floating IPs
with IPv6. However, it's still possible to exist external
networks with IPv6 Subnets, which could break the creation
of Floating IPs for a load-balancer if CCM uses it.
This commit avoids this issue by making sure only external
networks with IPv4 Subnets are used when creating a Floating IP.
* Improve retrival of external Network (kubernetes#2014)
When attempting to fetch an external Network with IPv4 Subnets to
create a Floating IP, it's possible that no Subnets from that Network
are shared with the tenant, consequently it would not be possible to
filter them by IPVersion and no Network would be used. This commit
improve the detection of external Network by only allowing usage of
Networks that is possible to detect at least one IPV4 Subnet or that
is not possible to detect any info about the Subnets.
Co-authored-by: Maysa De Macedo Souza <maysa.souza@ccc.ufcg.edu.br>
Co-authored-by: Maysa De Macedo Souza <maysa.macedo95@gmail.com>1 parent 58b9f9f commit d014b87
1 file changed
+39
-29
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
| |||
85 | 86 | | |
86 | 87 | | |
87 | 88 | | |
88 | | - | |
89 | | - | |
90 | 89 | | |
91 | 90 | | |
92 | 91 | | |
93 | 92 | | |
| 93 | + | |
94 | 94 | | |
95 | 95 | | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
| 96 | + | |
114 | 97 | | |
115 | | - | |
116 | | - | |
117 | | - | |
| 98 | + | |
| 99 | + | |
118 | 100 | | |
119 | | - | |
120 | | - | |
121 | | - | |
| 101 | + | |
| 102 | + | |
122 | 103 | | |
123 | 104 | | |
124 | 105 | | |
125 | | - | |
126 | | - | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
127 | 128 | | |
| 129 | + | |
| 130 | + | |
128 | 131 | | |
129 | | - | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
130 | 140 | | |
131 | 141 | | |
132 | 142 | | |
| |||
0 commit comments