From 427d299c89f264ab947c4ed88b76ad695a5babe5 Mon Sep 17 00:00:00 2001 From: Thomas Bachman Date: Wed, 8 Aug 2018 14:38:23 +0000 Subject: [PATCH] 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 --- gbpservice/tools/validate/cli.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gbpservice/tools/validate/cli.py b/gbpservice/tools/validate/cli.py index 028f31860..a08cebed9 100644 --- a/gbpservice/tools/validate/cli.py +++ b/gbpservice/tools/validate/cli.py @@ -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')