duplicated VLAN IDs in db, is this is a bug?
I noticed there is no UNIQUE attribute on the vlan field in the networks table.
Users are then allowed to create several networks with the same VLAN ID.
Example:
nova-manage network create 10.0.1.0/24 1 256 100
nova-manage network create 10.0.2.0/24 1 256 100
results in two networks (10.0.1.0 and 10.0.2.0) using the same VLAN ID.
Is this a desired behaviour? I reckon one of the goals of the VLAN network manager is to isolate traffic between different projects by providing distinct VLAN IDs.
Moreover, this can also create problems on the network node with dnsmasq: when an instance associated with the 10.0.1.0 network starts, dnsmasq will listen on its gateway address on br100; if then an instance associated with the 10.0.2.0 is started, this would kill the previous dnsmasq instance and start another one listening on the second network's gateway, still on br100, probably partially breaking networking for instances in the first network.
If this is actually something that needs to be addressed in the code, VlanManager.
Thanks in advance,
Salvatore
Question information
- Language:
- English Edit question
- Status:
- Solved
- Assignee:
- No assignee Edit question
- Solved by:
- Salvatore Orlando
- Solved:
- Last query:
- Last reply: