In a scenario with multiple subclouds configured initially with the
management network, it is possible to update them to use admin
networks having overlapping subnets. This can cause issues such as
routing.
If a subcloud is initially provisioned using the admin network,
this condition is prevented. This commit extends that validation
to network reconfiguration.
Test Plan:
- Provision a system with two subclouds using the management network
- Create an admin network on the first subcloud.
- Create an admin network on the second subcloud using the same
subnet as the first.
- Update the first subcloud to use the admin network.
- Update the second subcloud to use the admin network. Ensure an
error message is returned to the user indicating overlapping
subnets.
- Ensure the subclouds can be updated to use the management network
again
Closes-Bug: 2071835
Change-Id: Iab783733912c7566a90d6fa872348a0d14a172e5
Signed-off-by: Steven Webster <email address hidden>
Reviewed: https:/ /review. opendev. org/c/starlingx /distcloud/ +/923456 /opendev. org/starlingx/ distcloud/ commit/ 6e2af84deb30af8 71ef14e937de2a3 619d482842
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit 6e2af84deb30af8 71ef14e937de2a3 619d482842
Author: Steven Webster <email address hidden>
Date: Wed Jul 3 19:22:13 2024 -0400
Add admin network validation on network reconfig
In a scenario with multiple subclouds configured initially with the
management network, it is possible to update them to use admin
networks having overlapping subnets. This can cause issues such as
routing.
If a subcloud is initially provisioned using the admin network,
this condition is prevented. This commit extends that validation
to network reconfiguration.
Test Plan:
- Provision a system with two subclouds using the management network
- Create an admin network on the first subcloud.
- Create an admin network on the second subcloud using the same
subnet as the first.
- Update the first subcloud to use the admin network.
- Update the second subcloud to use the admin network. Ensure an
error message is returned to the user indicating overlapping
subnets.
- Ensure the subclouds can be updated to use the management network
again
Closes-Bug: 2071835
Change-Id: Iab783733912c75 66a90d6fa872348 a0d14a172e5
Signed-off-by: Steven Webster <email address hidden>