Commit 5bfa524
committed
Direct Routed networks: audit fixes after the isolation-model overhaul
Reviewing every path the overhaul touches surfaced four fixes:
- SystemVM public IPv6 is now computed directly in PublicNetworkGuru
(EUI-64 from the range's ip6_cidr and the NIC MAC, then /128 + fe80::1).
The previously planned ipv6Service.updateNicIpv6() path is unusable
here: it is gated on the public network offering's internet protocol
(never set on the system public offering) and reserves through one
placeholder NIC per network -- on the shared Public network, every
SystemVM would have received the same address.
- Guest networks and public ranges share one routed-id space (a routed
id names a bridge on every host), so collisions between them would
merge L2 domains. Both directions are now rejected: a guest network
cannot take an id a public range carries, and a public range cannot
take an id a guest network holds.
- Creating an L3 network on a physical network without the ROUTED
isolation method now fails early with a clear message, instead of an
opaque no-guru error deep in setupNetwork().
- A direct routed guest NIC's isolation URI now mirrors its routed://
broadcast URI instead of the misleading vlan://<tag> inherited from
the Shared allocation path.
GuestType.L3 itself was re-verified as still required: some thirty
management-server branches (offering validation, subnet handling,
zone-wide overlap checks, secondary-IP host routes, security groups)
key on the guest type in places where no physical network -- and thus
no isolation method -- is in scope. The guest type says what a network
is; the isolation method says where it may live.1 parent 526934c commit 5bfa524
6 files changed
Lines changed: 83 additions & 21 deletions
File tree
- docs/design
- engine/orchestration/src/main/java/org/apache/cloudstack/engine/orchestration
- server/src/main/java/com/cloud
- configuration
- network
- guru
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
570 | 570 | | |
571 | 571 | | |
572 | 572 | | |
573 | | - | |
574 | | - | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
575 | 578 | | |
576 | 579 | | |
577 | 580 | | |
| |||
816 | 819 | | |
817 | 820 | | |
818 | 821 | | |
819 | | - | |
820 | | - | |
821 | | - | |
822 | | - | |
823 | | - | |
824 | | - | |
825 | | - | |
826 | | - | |
827 | | - | |
| 822 | + | |
| 823 | + | |
| 824 | + | |
| 825 | + | |
| 826 | + | |
| 827 | + | |
| 828 | + | |
| 829 | + | |
| 830 | + | |
| 831 | + | |
| 832 | + | |
828 | 833 | | |
829 | 834 | | |
830 | 835 | | |
| |||
1347 | 1352 | | |
1348 | 1353 | | |
1349 | 1354 | | |
1350 | | - | |
1351 | | - | |
| 1355 | + | |
| 1356 | + | |
| 1357 | + | |
1352 | 1358 | | |
1353 | 1359 | | |
1354 | 1360 | | |
| |||
Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2950 | 2950 | | |
2951 | 2951 | | |
2952 | 2952 | | |
| 2953 | + | |
| 2954 | + | |
| 2955 | + | |
| 2956 | + | |
| 2957 | + | |
| 2958 | + | |
| 2959 | + | |
| 2960 | + | |
| 2961 | + | |
2953 | 2962 | | |
2954 | 2963 | | |
2955 | 2964 | | |
| |||
Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5935 | 5935 | | |
5936 | 5936 | | |
5937 | 5937 | | |
| 5938 | + | |
| 5939 | + | |
| 5940 | + | |
| 5941 | + | |
| 5942 | + | |
| 5943 | + | |
| 5944 | + | |
| 5945 | + | |
| 5946 | + | |
5938 | 5947 | | |
5939 | 5948 | | |
5940 | 5949 | | |
| |||
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1573 | 1573 | | |
1574 | 1574 | | |
1575 | 1575 | | |
| 1576 | + | |
| 1577 | + | |
| 1578 | + | |
| 1579 | + | |
| 1580 | + | |
| 1581 | + | |
| 1582 | + | |
| 1583 | + | |
| 1584 | + | |
| 1585 | + | |
1576 | 1586 | | |
1577 | 1587 | | |
1578 | 1588 | | |
| |||
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
184 | 184 | | |
185 | 185 | | |
186 | 186 | | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
187 | 193 | | |
188 | 194 | | |
189 | 195 | | |
| |||
Lines changed: 30 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
| 22 | + | |
21 | 23 | | |
22 | 24 | | |
23 | 25 | | |
| |||
63 | 65 | | |
64 | 66 | | |
65 | 67 | | |
| 68 | + | |
66 | 69 | | |
67 | 70 | | |
68 | 71 | | |
| |||
156 | 159 | | |
157 | 160 | | |
158 | 161 | | |
| 162 | + | |
159 | 163 | | |
160 | 164 | | |
161 | 165 | | |
| |||
175 | 179 | | |
176 | 180 | | |
177 | 181 | | |
178 | | - | |
179 | | - | |
180 | | - | |
181 | | - | |
182 | | - | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | 182 | | |
187 | 183 | | |
188 | 184 | | |
| |||
194 | 190 | | |
195 | 191 | | |
196 | 192 | | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
197 | 219 | | |
198 | 220 | | |
199 | 221 | | |
| |||
0 commit comments