it is possible to create networks with the same cidr even though logic exists to prevent it

Bug #817178 reported by Trey Morris
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Low
John Tran

Bug Description

(trey|n3va)~/nova> nova/bin/nova-manage network create --label public --fixed_range_v4 14.1.1.0/30 --num_networks 1 --network_size 4 --bridge xenbr1
2011-07-27 19:11:27,303 DEBUG nova.utils [-] backend <module 'nova.db.sqlalchemy.api' from '/home/trey/nova/nova/nova/db/sqlalchemy/api.pyc'> from (pid=25402) __get_backend /home/trey/nova/nova/nova/utils.py:417

(trey|n3va)~/nova> nova/bin/nova-manage network create --label public --fixed_range_v4 14.1.1.0/30 --num_networks 1 --network_size 4 --bridge xenbr1
2011-07-27 19:11:46,213 DEBUG nova.utils [-] backend <module 'nova.db.sqlalchemy.api' from '/home/trey/nova/nova/nova/db/sqlalchemy/api.pyc'> from (pid=25456) __get_backend /home/trey/nova/nova/nova/utils.py:417

Meanwhile in mysql:

mysql> select id,cidr,bridge,bridge_interface from networks;
+----+--------------+--------+------------------+
| id | cidr | bridge | bridge_interface |
+----+--------------+--------+------------------+
| 1 | 10.1.1.0/30 | xenbr1 | NULL |
| 2 | 10.10.1.0/30 | xenbr1 | NULL |
| 3 | 10.2.1.0/30 | xenbr1 | NULL |
| 4 | 14.1.1.0/30 | xenbr1 | NULL |
| 5 | 14.1.1.0/30 | xenbr1 | NULL |
+----+--------------+--------+------------------+
5 rows in set (0.00 sec)

as you can see networks 4 and 5 have identical cidr

Related branches

Thierry Carrez (ttx)
Changed in nova:
importance: Undecided → Low
status: New → Confirmed
John Tran (jtran)
Changed in nova:
assignee: nobody → John Tran (jtran)
Thierry Carrez (ttx)
Changed in nova:
status: Confirmed → In Progress
Thierry Carrez (ttx)
Changed in nova:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in nova:
milestone: none → diablo-4
Thierry Carrez (ttx)
Changed in nova:
milestone: diablo-4 → 2011.3
status: Fix Committed → Fix Released
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.