Neutron accepting multiple networks/subnets to be created with same name, network address

Bug #1624103 reported by kiran-vemuri
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
neutron
Invalid
Undecided
Unassigned

Bug Description

Description:
------------
I am able to create multiple networks/subnets with the same name and network address. This behaviour can result in confusion.

Expected Behaviour:
------------------
Enforcing uniqueness in network/subnet names

Environment:
-----------
OpenStack Mitaka on Ubuntu 14.04 server

Reproduction Steps:
-------------------

Steps from horizon:
1. Create multiple networks/subnets with same name and same addresses

Result:
-------
neutron net-list
+--------------------------------------+--------+---------------------------------------------------+
| id | name | subnets |
+--------------------------------------+--------+---------------------------------------------------+
| e7d3c477-4c37-4871-af51-0567b3d4a03b | intnet | f9ef42c7-f190-4f6b-b7a3-eb85d55c8c1a 2.2.2.0/24 |
| 182434dc-0c5b-4ba9-9dee-dfefbdf81d23 | intnet | 0d2e21a1-df8a-4d0a-a11d-9b0646a158e3 2.2.2.0/24 |
| 258095ac-e04d-485e-9e83-956499208da9 | intnet | dfc87017-06dd-4449-a898-9a3c30eb1d81 2.2.2.0/24 |
| 134aa0b6-dc03-4b82-9e17-150ec5aa5471 | extnet | f25d0a78-033c-4434-9b5d-5779dd72b8f4 10.10.0.0/16 |
+--------------------------------------+--------+---------------------------------------------------+

neutron subnet-list
+--------------------------------------+--------+--------------+------------------------------------------------+
| id | name | cidr | allocation_pools |
+--------------------------------------+--------+--------------+------------------------------------------------+
| f9ef42c7-f190-4f6b-b7a3-eb85d55c8c1a | intsub | 2.2.2.0/24 | {"start": "2.2.2.2", "end": "2.2.2.254"} |
| 0d2e21a1-df8a-4d0a-a11d-9b0646a158e3 | intsub | 2.2.2.0/24 | {"start": "2.2.2.2", "end": "2.2.2.254"} |
| dfc87017-06dd-4449-a898-9a3c30eb1d81 | | 2.2.2.0/24 | {"start": "2.2.2.2", "end": "2.2.2.254"} |
| f25d0a78-033c-4434-9b5d-5779dd72b8f4 | extsub | 10.10.0.0/16 | {"start": "10.10.70.30", "end": "10.10.70.40"} |
+--------------------------------------+--------+--------------+------------------------------------------------+

Revision history for this message
Dariusz Smigiel (smigiel-dariusz) wrote :

It's not a bug.

Changed in neutron:
status: New → Invalid
Revision history for this message
kiran-vemuri (kiran-vemuri) wrote :

@smigiel-dariusz Can you please let me know why having same names and same network addresses in the same project is valid?

Revision history for this message
Akihiro Motoki (amotoki) wrote :

Regarding 'name', 'name' in Neutron is just a human-readable short string. There is no need to be unique.
If a user want to avoid confusion I mention, he/she can set unique name.

Regarding having overlapping CIDR, it is an intended behavior. A single project can have multiple networks and each of these network can have a subnet with some same range of IP addresses. A single network cannot have subnets with overlapping address range.

Revision history for this message
kiran-vemuri (kiran-vemuri) wrote :

@Akihirio:

Understood. Thank you for explaining.

Revision history for this message
Armando Migliaccio (armando-migliaccio) wrote :

Names are generally not the unique identifiers in OpenStack. You can create multiple resources, any type, and use the same name over and over again. This is not just an issue with security groups per se.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.