startup: Fix Kuryr initialization
While testing Kuryr, I noticed it was not correctly detecting that the "tag" service plugin was loaded. After some investigation with Mohammand, he noticed that commit 7f4146e044f371c00825fb838a9cde5d173a92fe changed the init sequence for when Kuryr is run in a Docker container. This commit reverts that behavior of the offending patch, which gets Kuryr initialization to work again and correctly detect the "tags" service plugin in Neutron. It may not be the correct fix, but we can iterate on this one to find a balance for Kuryr both inside and outside a Docker container. Change-Id: I320f539f929be4955f401f363b23b7af09a7c73f Signed-off-by: Kyle Mestery <mestery@mestery.com>
This commit is contained in:
parent
7fc0afd4aa
commit
437a08137e
@ -1247,5 +1247,3 @@ def ipam_release_address():
|
||||
raise
|
||||
|
||||
return flask.jsonify(const.SCHEMA['SUCCESS'])
|
||||
|
||||
neutron_client()
|
||||
|
@ -20,7 +20,7 @@ from kuryr import controllers
|
||||
|
||||
|
||||
config.init(sys.argv[1:])
|
||||
|
||||
controllers.neutron_client()
|
||||
controllers.check_for_neutron_ext_support()
|
||||
controllers.check_for_neutron_ext_tag()
|
||||
app.debug = config.CONF.debug
|
||||
|
@ -15,6 +15,7 @@ from neutronclient.tests.unit import test_cli20
|
||||
from kuryr import app
|
||||
from kuryr import binding
|
||||
from kuryr.common import constants as const
|
||||
from kuryr import controllers
|
||||
from kuryr import utils
|
||||
|
||||
|
||||
@ -35,6 +36,7 @@ class TestKuryrBase(TestCase):
|
||||
|
||||
def setUp(self):
|
||||
super(TestKuryrBase, self).setUp()
|
||||
controllers.neutron_client()
|
||||
self.app.neutron.format = 'json'
|
||||
self.addCleanup(self.mox.VerifyAll)
|
||||
self.addCleanup(self.mox.UnsetStubs)
|
||||
|
Loading…
x
Reference in New Issue
Block a user