← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1624103] [NEW] Neutron accepting multiple networks/subnets to be created with same name, network address

 

Public bug reported:

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"} |
+--------------------------------------+--------+--------------+------------------------------------------------+

** Affects: neutron
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1624103

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

Status in neutron:
  New

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"} |
  +--------------------------------------+--------+--------------+------------------------------------------------+

To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1624103/+subscriptions


Follow ups