]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
Add address_scope_db to neutron/models/head.py
authorMike Bayer <mike_mp@zzzcomputing.com>
Fri, 17 Jul 2015 17:19:57 +0000 (13:19 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Fri, 17 Jul 2015 17:19:57 +0000 (13:19 -0400)
The head.py file ensures that all relevant models are
imported when ModelsMigrationSync tests are run in
neutron/tests/functional/db/test_migrations.   This is
one of the models that needs to be present else the
"address_scopes" table comes out as missing.   The
error is usually concealed by the fact that the module
was imported as a side effect of other tests but
is revealed if one runs test_migrations.py alone.

Change-Id: I954d8385c479de663ef1a5ef439866d2d927bcf3

neutron/db/migration/models/head.py

index 09e1c73b793c6db9404aa3eaaa4633969ff8b3ca..8d3e1be9f6f6492f27f2416854270a85ff12f401 100644 (file)
@@ -21,6 +21,7 @@ Based on this comparison database can be healed with healing migration.
 
 """
 
+from neutron.db import address_scope_db  # noqa
 from neutron.db import agents_db  # noqa
 from neutron.db import agentschedulers_db  # noqa
 from neutron.db import allowedaddresspairs_db  # noqa