yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #43043
[Bug 1522681] Re: neutron-usage-audit doesn't work properly
Reviewed: https://review.openstack.org/254054
Committed: https://git.openstack.org/cgit/openstack/neutron/commit/?id=5b6992db49cf6e69b05411ed7d170198434f39e9
Submitter: Jenkins
Branch: master
commit 5b6992db49cf6e69b05411ed7d170198434f39e9
Author: niusmallnan <zhangzb@xxxxxxxxx>
Date: Mon Dec 7 07:47:02 2015 +0000
move usage_audit to cmd/eventlet package
setup_rpc func need the eventlet monkey_patch,
otherwise the main process will be blocked.
Change-Id: I9f4a0b7c957b7dc7740e3cf6e75f18778ad562d0
Closes-Bug: #1522681
** 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/1522681
Title:
neutron-usage-audit doesn't work properly
Status in neutron:
Fix Released
Bug description:
neutron-usage-audit code:
cxt = context.get_admin_context()
plugin = manager.NeutronManager.get_plugin()
l3_plugin = manager.NeutronManager.get_service_plugins().get(
constants.L3_ROUTER_NAT)
when it gets l3_plugin instance, setup_rpc func will be executed:
@log_helpers.log_method_call
def setup_rpc(self):
# RPC support
self.topic = topics.L3PLUGIN
self.conn = n_rpc.create_connection(new=True)
self.agent_notifiers.update(
{n_const.AGENT_TYPE_L3: l3_rpc_agent_api.L3AgentNotifyAPI()})
self.endpoints = [l3_rpc.L3RpcCallback()]
self.conn.create_consumer(self.topic, self.endpoints,
fanout=False)
self.conn.consume_in_threads()
consume_in_threads func need the eventlet monkey_patch, otherwise the
main process will be blocked.
To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1522681/+subscriptions
References