← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1096738] Re: metadata agent is using python client to communicate with quantum server

 

*** This bug is a duplicate of bug 1361357 ***
    https://bugs.launchpad.net/bugs/1361357

** This bug is no longer a duplicate of bug 1092043
   quantum meta agent is using quantum client
** This bug has been marked a duplicate of bug 1361357
   metadata service performance regression ~8x

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1096738

Title:
  metadata agent is using python client to communicate with quantum
  server

Status in OpenStack Neutron (virtual network service):
  New

Bug description:
  dhcp agent, l3 agent and ovs, linux bridge agents are using AMQP message to communicate with quantum server,
  I think we should avoid using python client in metadata agent:
  def _get_instance_id(self, req):
          remote_address = req.headers.get('X-Forwarded-For')
          network_id = req.headers.get('X-Quantum-Network-ID')
          router_id = req.headers.get('X-Quantum-Router-ID')

          if network_id:
              networks = [network_id]
          else:
              internal_ports = self.qclient.list_ports(
                  device_id=router_id,
                  device_owner=DEVICE_OWNER_ROUTER_INTF)['ports']

              networks = [p['network_id'] for p in internal_ports]

          ports = self.qclient.list_ports(
              network_id=networks,
              fixed_ips=['ip_address=%s' % remote_address])['ports']

To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1096738/+subscriptions