yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #73437
[Bug 1773282] Re: errors occured when create vpnservice with flavor_id:Flavors plugin not Found
Reviewed: https://review.openstack.org/576368
Committed: https://git.openstack.org/cgit/openstack/neutron-vpnaas/commit/?id=363fc4070df1af54a3c1a0c7b974fe032155dab6
Submitter: Zuul
Branch: master
commit 363fc4070df1af54a3c1a0c7b974fe032155dab6
Author: Hunt Xu <mhuntxu@xxxxxxxxx>
Date: Tue Jun 19 13:31:34 2018 +0800
Fix flavors plugin not found error
Upon the initialization of the vpnaas plugin, it gets the flavors plugin
only once. This is not working well because if the vpnaas plugin gets
loaded before the flavors service plugin, it will fail to find the
flavors service plugin.
Closes-Bug: #1773282
Change-Id: Ib4e11c8eef7831513f0fae2a45120ec396cfe3f5
** Changed in: neutron
Status: In Progress => Fix Released
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1773282
Title:
errors occured when create vpnservice with flavor_id:Flavors plugin
not Found
Status in neutron:
Fix Released
Bug description:
when i create a vpnservice with flavor_id ,there was one error:Flavors plugin not Found.
Then i found that "Loading plugin:flavors" after "Loading plugin:vpnaas" from the server.log.
So i modified [_get_provider_for_flavor] in the neutron_vpnaas/services/vpn/plugin.py,like this:
def _get_provider_for_flavor(self, context, flavor_id):
if flavor_id:
self._flavors_plugin = directory.get_plugin(constants.FLAVORS)
if not self._flavors_plugin:
raise vpn_flavors.FlavorsPluginNotLoaded()
it wokrs!
To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1773282/+subscriptions
References