← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1522681] Re: neutron-usage-audit doesn't work properly

 

** Also affects: neutron/kilo
   Importance: Undecided
       Status: New

** Changed in: neutron/kilo
       Status: New => Fix Committed

** Changed in: neutron/kilo
    Milestone: None => 2015.1.3

-- 
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
Status in neutron kilo series:
  Fix Committed

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