Is it impossible to create multiple fabrics which have duplicated subnets from other fabrics
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Triaged
|
Medium
|
Unassigned | ||
3.3 |
Triaged
|
Medium
|
Unassigned |
Bug Description
Is it impossible to create multiple fabrics which have duplicated subnets from other fabrics? For my working environment, I sometimes have a subnet with a untagged(native) vlan which is a subnet with a tagged vlan at a different switch port. So for me, a subnet can reside at both untagged and tagged vlan depending on purpose. But for MAAS, it seems impossible to create multiple fabrics which have duplicated subnets from other fabrics. When I try it, it says "CIDR: Subnet with this CIDR already exists."
dpkg -l '*maas*' | cat
Desired=
| Status=
|/ Err?=(none)
||/ Name Version Architecture Description
+++-===
ii maas 2.0.0~beta5+
ii maas-cli 2.0.0~beta5+
un maas-cluster-
ii maas-common 2.0.0~beta5+
ii maas-dhcp 2.0.0~beta5+
ii maas-dns 2.0.0~beta5+
ii maas-proxy 2.0.0~beta5+
ii maas-rack-
ii maas-region-api 2.0.0~beta5+
ii maas-region-
un maas-region-
un python-django-maas <none> <none> (no description available)
un python-maas-client <none> <none> (no description available)
un python-
ii python3-django-maas 2.0.0~beta5+
ii python3-maas-client 2.0.0~beta5+
ii python3-
maas 1st subnets create name=storage_native description=
{"cidr": ["Subnet with this Cidr already exists."]}
Changed in maas: | |
status: | New → Triaged |
importance: | Undecided → High |
Changed in maas: | |
milestone: | 3.3.0 → 3.4.0 |
Changed in maas: | |
milestone: | 3.4.0 → 3.4.x |
Thanks for the bug report.
The language we use here may be a bit confusing. When we say "untagged", that is the VLAN we first observed attached to the rack controller which did not have a tag. It's fine if this is actually tagged elsewhere in the network. (You should be able to update the tag to be correct in the VLAN details page.) That said, MAAS tends to work better when VLANs and tags are consistent across all switch ports
Solving this problem by modeling the subnet in a second fabric won't work. As you saw, MAAS considers subnets to be unique. (We are considering removing this restriction in the future, but currently you must have multiple MAAS regions in order to have subnets with duplicate address ranges in multiple fabrics.) It would be better to model the VLANs and subnets in MAAS to reflect reality as close as possible.
For MAAS 2.1, we are planning to do more around network and fabric discovery so that we can properly allow merging what we currently model as multiple fabrics into a single fabric.