yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #42759
[Bug 1522681] [NEW] neutron-usage-audit doesn't work properly
Public bug reported:
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.
** Affects: neutron
Importance: Undecided
Status: New
** Patch added: "neutron-usage-audit-eventlet-patch.txt"
https://bugs.launchpad.net/bugs/1522681/+attachment/4529376/+files/neutron-usage-audit-eventlet-patch.txt
--
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:
New
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
Follow ups