nova network-create is taking random vlan and bridge

asked 2015-02-26 19:24:10 -0500

Prakash Sompura gravatar image

updated 2015-02-26 19:27:28 -0500

            I am using only Nova network. I have not implemented Neutron. I have created 3 networks and each time the VLAN value and bridge are taken randomly by nova:

        nova network-create cert1 --fixed-range-v4 10.5.0.0/24 --vlan 105 --bridge=br1 --bridge-interface eth2.105 --dns1 10.66.8.2 --dns2 10.66.8.3 --multi-host T
        nova network-create corp8 --fixed-range-v4 10.66.8.0/22 --vlan 208 --bridge=br12 --bridge-interface eth2.208 --dns1 10.66.8.2 --dns2 10.66.8.3 --multi-host T
        nova network-create corp12 --fixed-range-v4 10.66.12.0/22 --vlan 212 --bridge br0 --bridge-interface eth2.212 --dns1 10.66.8.2 --dns2 10.66.8.3 --multi-host T

            When I see the details from nova database it can be see that vlan and bridge values are incorrect:
        mysql> select label,vlan,cidr,netmask,bridge,bridge_interface,gateway,dns1,dns2 from networks;
+--------+------+---------------+---------------+--------+------------------+------------+-----------+-----------+
| label  | vlan | cidr          | netmask       | bridge | bridge_interface | gateway    | dns1      | dns2      |
+--------+------+---------------+---------------+--------+------------------+------------+-----------+-----------+
| cert1  |  105 | 10.5.0.0/24   | 255.255.255.0 | br105  | eth2.105         | 10.5.0.1   | 10.66.8.2 | 10.66.8.3 |
| corp8  |  209 | 10.66.8.0/22  | 255.255.252.0 | br209  | eth2.208         | 10.66.8.1  | 10.66.8.2 | 10.66.8.3 |
| corp12 |  214 | 10.66.12.0/22 | 255.255.252.0 | br214  | eth2.212         | 10.66.12.1 | 10.66.8.2 | 10.66.8.3 |
+--------+------+---------------+---------------+--------+------------------+------------+-----------+-----------+
3 rows in set (0.00 sec)
edit retag flag offensive close merge delete