Fix initialization for migration tool

The quotas are inspected as part of the migration of resources
from the legacy plugin to the merged plugin. In order for the
migration tool to be able to use the quotas, they must be
initialized.

Change-Id: Ia8dffcbdb9f246a54fbe93a152e86ef1b49e0161
This commit is contained in:
Thomas Bachman 2018-08-08 14:38:23 +00:00
parent fcdee08dca
commit 427d299c89
1 changed files with 2 additions and 0 deletions

View File

@ -16,6 +16,7 @@
import sys
from oslo_config import cfg
from neutron.api.v2 import router
from neutron.common import config
from neutron import manager
from neutron_lib.plugins import directory
@ -43,6 +44,7 @@ def main():
" search paths (~/.neutron/, ~/, /etc/neutron/, /etc/) and"
" the '--config-file' option!"))
router.APIRouter.factory({})
manager.init()
gbp_plugin = directory.get_plugin('GROUP_POLICY')