It is tricky in my venv environment. take "neutron.tests.unit.ml2.test_agent_scheduler.Ml2AgentSchedulerTestCase.test_network_auto_schedule_with_disabled" as an example, using $./run_tests.sh neutron.tests.unit.ml2.test_agent_scheduler.Ml2AgentSchedulerTestCase.test_network_auto_schedule_with_disabled (testr) would run okay, while using $./run_tests.sh -d neutron.tests.unit.ml2.test_agent_scheduler.Ml2AgentSchedulerTestCase.test_network_auto_schedule_with_disabled (testtools.run) would report following error:
File "/home/stack/neutron/.venv/local/lib/python2.7/site-packages/sqlalchemy/engine/default.py", line 331, in do_execute
cursor.execute(statement, parameters)
OperationalError: (OperationalError) no such table: ml2_vlan_allocations u'SELECT ml2_vlan_allocations.physical_network AS ml2_vlan_allocations_physical_network, ml2_vlan_allocations.vlan_id AS ml2_vlan_allocations_vlan_id, ml2_vlan_allocations.allocated AS ml2_vlan_allocations_allocated \nFROM ml2_vlan_allocations' ()
It is tricky in my venv environment. take "neutron. tests.unit. ml2.test_ agent_scheduler .Ml2AgentSchedu lerTestCase. test_network_ auto_schedule_ with_disabled" as an example, using $./run_tests.sh neutron. tests.unit. ml2.test_ agent_scheduler .Ml2AgentSchedu lerTestCase. test_network_ auto_schedule_ with_disabled (testr) would run okay, while using $./run_tests.sh -d neutron. tests.unit. ml2.test_ agent_scheduler .Ml2AgentSchedu lerTestCase. test_network_ auto_schedule_ with_disabled (testtools.run) would report following error: stack/neutron/ .venv/local/ lib/python2. 7/site- packages/ sqlalchemy/ engine/ default. py", line 331, in do_execute execute( statement, parameters) allocations u'SELECT ml2_vlan_ allocations. physical_ network AS ml2_vlan_ allocations_ physical_ network, ml2_vlan_ allocations. vlan_id AS ml2_vlan_ allocations_ vlan_id, ml2_vlan_ allocations. allocated AS ml2_vlan_ allocations_ allocated \nFROM ml2_vlan_ allocations' ()
File "/home/
cursor.
OperationalError: (OperationalError) no such table: ml2_vlan_