From 98771c19b6fe8c26aff05ea324e4db928cc747f9 Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Fri, 17 Jul 2015 13:19:57 -0400 Subject: [PATCH] Add address_scope_db to neutron/models/head.py 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 | 1 + 1 file changed, 1 insertion(+) diff --git a/neutron/db/migration/models/head.py b/neutron/db/migration/models/head.py index 09e1c73b7..8d3e1be9f 100644 --- a/neutron/db/migration/models/head.py +++ b/neutron/db/migration/models/head.py @@ -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 -- 2.45.2