When using VLAN network type, quantum fails to schedule network, with the following warning:
(example from quantum log)
2013-09-17 16:50:58 WARNING [quantum.db.agentschedulers_db] Fail scheduling network {'status': u'ACTIVE', 'subnets': [u'792aa923-a38a-4918-a108-bff0ec11f6f5'], 'name': u'fe_net01', 'provider:physical_network': u'physnet2', 'admin_state_up': True, 'tenant_id': u'8e6aa410c7e9464fa4d32b14f77f9571', 'provider:network_type': u'vlan', 'router:external': False, 'shared': False, 'id': u'409c22e7-d1ca-46d2-ad49-6e26f26d0286', 'provider:segmentation_id': 401L}
2013-09-17 16:51:11 WARNING [quantum.db.agentschedulers_db] Fail scheduling network {'status': u'ACTIVE', 'subnets': [u'792aa923-a38a-4918-a108-bff0ec11f6f5'], 'name': u'fe_net01', 'provider:physical_network': u'physnet2', 'admin_state_up': True, 'tenant_id': u'8e6aa410c7e9464fa4d32b14f77f9571', 'provider:network_type': u'vlan', 'router:external': False, 'shared': False, 'id': u'409c22e7-d1ca-46d2-ad49-6e26f26d0286', 'provider:segmentation_id': 401L}
2013-09-17 16:51:12 WARNING [quantum.db.agentschedulers_db] Fail scheduling network {'status': u'ACTIVE', 'subnets': [u'985000db-abdf-44c6-92f4-dabe786e9dde'], 'name': u'ext_net', 'provider:physical_network': u'physnet1', 'admin_state_up': True, 'tenant_id': u'8e6aa410c7e9464fa4d32b14f77f9571', 'provider:network_type': u'flat', 'router:external': True, 'shared': False, 'id': u'd333af77-aa2e-4a28-8fc1-7e609042833e', 'provider:segmentation_id': None}
2013-09-17 16:52:40 WARNING [quantum.db.agentschedulers_db] Fail scheduling network {'status': u'ACTIVE', 'subnets': [u'792aa923-a38a-4918-a108-bff0ec11f6f5'], 'name': u'fe_net01', 'provider:physical_network': u'physnet2', 'admin_state_up': True, 'tenant_id': u'8e6aa410c7e9464fa4d32b14f77f9571', 'provider:network_type': u'vlan', 'router:external': False, 'shared': False, 'id': u'409c22e7-d1ca-46d2-ad49-6e26f26d0286', 'provider:segmentation_id': 401L}
2013-09-17 16:52:40 WARNING [quantum.db.agentschedulers_db] Fail scheduling network {'status': u'ACTIVE', 'subnets': [u'985000db-abdf-44c6-92f4-dabe786e9dde'], 'name': u'ext_net', 'provider:physical_network': u'physnet1', 'admin_state_up': True, 'tenant_id': u'8e6aa410c7e9464fa4d32b14f77f9571', 'provider:network_type': u'flat', 'router:external': True, 'shared': False, 'id': u'd333af77-aa2e-4a28-8fc1-7e609042833e', 'provider:segmentation_id': None}
2013-09-17 16:59:01 WARNING [quantum.db.agentschedulers_db] Fail scheduling network {'status': u'ACTIVE', 'subnets': [u'792aa923-a38a-4918-a108-bff0ec11f6f5'], 'name': u'fe_net01', 'provider:physical_network': u'physnet2', 'admin_state_up': True, 'tenant_id': u'8e6aa410c7e9464fa4d32b14f77f9571', 'provider:network_type': u'vlan', 'router:external': False, 'shared': False, 'id': u'409c22e7-d1ca-46d2-ad49-6e26f26d0286', 'provider:segmentation_id': 401L}
2013-09-17 16:59:01 WARNING [quantum.db.agentschedulers_db] Fail scheduling network {'status': u'ACTIVE', 'subnets': [u'985000db-abdf-44c6-92f4-dabe786e9dde'], 'name': u'ext_net', 'provider:physical_network': u'physnet1', 'admin_state_up': True, 'tenant_id': u'8e6aa410c7e9464fa4d32b14f77f9571', 'provider:network_type': u'flat', 'router:external': True, 'shared': False, 'id': u'd333af77-aa2e-4a28-8fc1-7e609042833e', 'provider:segmentation_id': None}
similar problem in multiple email threads:
http://lists.openstack.org/pipermail/openstack/2013-August/000402.html
http://openstack.redhat.com/forum/discussion/310/fail-scheduling-network-in-quantum-with-vlan/p1
http://openstack.redhat.com/forum/discussion/230/warning-quantum-db-agentschedulers_db-fail-scheduling-network/p1
see: https:/ /bugs.launchpad .net/neutron/ +bug/1213394 /review. openstack. org/#/c/ 42457/
review(abandoned, will be restored soon): https:/
or if you have better solution, please commit it and add me to the reviewer list