← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1616815] Re: ovs_lib.OVSBridge.get_ports_attributes returns ports attributes even port not in current ovsbridge

 

[Expired for neutron because there has been no activity for 60 days.]

** Changed in: neutron
       Status: Incomplete => Expired

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

Title:
  ovs_lib.OVSBridge.get_ports_attributes returns ports attributes even
  port not in current ovsbridge

Status in neutron:
  Expired

Bug description:
  Reproduce steps:
  # cat neutron.conf
  l3_ha=True

  script:

  from neutron.plugins.ml2.drivers.openvswitch.agent.openflow.ovs_ofctl
  import br_int

  int_br_name = 'br-int'
  ex_br_name = 'br-flat'

  
  def get_qg_device_from_br_ex():
      ex_br = br_int.OVSIntegrationBridge(ex_br_name)
      ex_vif_names = ex_br.get_port_name_list()
      for i in ex_vif_names:
          if i.startswith('qg'):
              return i

  
  def main():
      int_br = br_int.OVSIntegrationBridge(int_br_name)
      int_vif_names = int_br.get_port_name_list()
      qg_dev_name = get_qg_device_from_br_ex()
      if not qg_dev_name:
          print 'qg device not found.'
          return

      print 'device name: ', qg_dev_name
      print 'device belongs to br-int: ', qg_dev_name in int_vif_names
      print 'get device attributes in br-int', int_br.get_ports_attributes(
          "Port",
          columns=["name", "tag", "other_config"],
          ports=[qg_dev_name], if_exists=True)

  
  if __name__ == '__main__':
      main()

  
  results:
  [root@type-compute ~]# python test.py 
  device name:  qg-08562579-d7
  device belongs to br-int:  False
  get device attributes in br-int [{u'tag': 23, u'name': u'qg-08562579-d7', u'other_config': {u'tag': u'23', u'physical_network': u'public-network', u'net_uuid': u'df19a06c-4fb1-401f-a551-1f8ce7f64b86', u'network_type': u'flat'}}]

  
  This will cause the ports on the br-ex to be set with the tag attribute, and network unreachable

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


References