← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1697926] Re: linuxbridge ensure_bridge report errror

 

Reviewed:  https://review.openstack.org/474170
Committed: https://git.openstack.org/cgit/openstack/neutron/commit/?id=ba5e8468599d5edfa0dad68457739fa03237b16a
Submitter: Jenkins
Branch:    master

commit ba5e8468599d5edfa0dad68457739fa03237b16a
Author: wlfightup <wlfightup@xxxxxxxxx>
Date:   Wed Jun 14 17:45:25 2017 +0800

    Linuxbridge agent: detect existing IP on bridge
    
    If bridge IP address already exists, when we try and add
    it an error will be raised.  Check for the existence of
    the IP to avoid the error.
    
    Closes-Bug: #1697926
    Change-Id: I9aae3b4f0fab053e8c215887f58b983d9549582d


** 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/1697926

Title:
  linuxbridge ensure_bridge report errror

Status in neutron:
  Fix Released

Bug description:
  2017-06-14 05:00:13.747 16708 ERROR neutron.plugins.ml2.drivers.agent._common_agent   File "/usr/lib/python2.7/site-packages/neutron/plugins/ml2/drivers/agent/_common_agent.py", line 453, in daemon_loop
  2017-06-14 05:00:13.747 16708 ERROR neutron.plugins.ml2.drivers.agent._common_agent     sync = self.process_network_devices(device_info)
  2017-06-14 05:00:13.747 16708 ERROR neutron.plugins.ml2.drivers.agent._common_agent   File "/usr/lib/python2.7/site-packages/osprofiler/profiler.py", line 153, in wrapper
  2017-06-14 05:00:13.747 16708 ERROR neutron.plugins.ml2.drivers.agent._common_agent     return f(*args, **kwargs)
  2017-06-14 05:00:13.747 16708 ERROR neutron.plugins.ml2.drivers.agent._common_agent   File "/usr/lib/python2.7/site-packages/neutron/plugins/ml2/drivers/agent/_common_agent.py", line 210, in process_network_devices
  2017-06-14 05:00:13.747 16708 ERROR neutron.plugins.ml2.drivers.agent._common_agent     resync_a = self.treat_devices_added_updated(devices_added_updated)
  2017-06-14 05:00:13.747 16708 ERROR neutron.plugins.ml2.drivers.agent._common_agent   File "/usr/lib/python2.7/site-packages/osprofiler/profiler.py", line 153, in wrapper
  2017-06-14 05:00:13.747 16708 ERROR neutron.plugins.ml2.drivers.agent._common_agent     return f(*args, **kwargs)
  2017-06-14 05:00:13.747 16708 ERROR neutron.plugins.ml2.drivers.agent._common_agent   File "/usr/lib/python2.7/site-packages/neutron/plugins/ml2/drivers/agent/_common_agent.py", line 227, in treat_devices_added_updated
  2017-06-14 05:00:13.747 16708 ERROR neutron.plugins.ml2.drivers.agent._common_agent     self._process_device_if_exists(device_details)
  2017-06-14 05:00:13.747 16708 ERROR neutron.plugins.ml2.drivers.agent._common_agent   File "/usr/lib/python2.7/site-packages/neutron/plugins/ml2/drivers/agent/_common_agent.py", line 254, in _process_device_if_exists
  2017-06-14 05:00:13.747 16708 ERROR neutron.plugins.ml2.drivers.agent._common_agent     device, device_details['device_owner'])
  2017-06-14 05:00:13.747 16708 ERROR neutron.plugins.ml2.drivers.agent._common_agent   File "/usr/lib/python2.7/site-packages/neutron/plugins/ml2/drivers/linuxbridge/agent/linuxbridge_neutron_agent.py", line 504, in plug_interface
  2017-06-14 05:00:13.747 16708 ERROR neutron.plugins.ml2.drivers.agent._common_agent     tap_name, device_owner)
  2017-06-14 05:00:13.747 16708 ERROR neutron.plugins.ml2.drivers.agent._common_agent   File "/usr/lib/python2.7/site-packages/neutron/plugins/ml2/drivers/linuxbridge/agent/linuxbridge_neutron_agent.py", line 453, in add_tap_interface
  2017-06-14 05:00:13.747 16708 ERROR neutron.plugins.ml2.drivers.agent._common_agent     return False
  2017-06-14 05:00:13.747 16708 ERROR neutron.plugins.ml2.drivers.agent._common_agent   File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 220, in __exit__
  2017-06-14 05:00:13.747 16708 ERROR neutron.plugins.ml2.drivers.agent._common_agent     self.force_reraise()
  2017-06-14 05:00:13.747 16708 ERROR neutron.plugins.ml2.drivers.agent._common_agent   File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 196, in force_reraise
  2017-06-14 05:00:13.747 16708 ERROR neutron.plugins.ml2.drivers.agent._common_agent     six.reraise(self.type_, self.value, self.tb)
  2017-06-14 05:00:13.747 16708 ERROR neutron.plugins.ml2.drivers.agent._common_agent   File "/usr/lib/python2.7/site-packages/neutron/plugins/ml2/drivers/linuxbridge/agent/linuxbridge_neutron_agent.py", line 445, in add_tap_interface
  2017-06-14 05:00:13.747 16708 ERROR neutron.plugins.ml2.drivers.agent._common_agent     tap_device_name, device_owner)
  2017-06-14 05:00:13.747 16708 ERROR neutron.plugins.ml2.drivers.agent._common_agent   File "/usr/lib/python2.7/site-packages/neutron/plugins/ml2/drivers/linuxbridge/agent/linuxbridge_neutron_agent.py", line 476, in _add_tap_interface
  2017-06-14 05:00:13.747 16708 ERROR neutron.plugins.ml2.drivers.agent._common_agent     segmentation_id):
  2017-06-14 05:00:13.747 16708 ERROR neutron.plugins.ml2.drivers.agent._common_agent   File "/usr/lib/python2.7/site-packages/neutron/plugins/ml2/drivers/linuxbridge/agent/linuxbridge_neutron_agent.py", line 429, in ensure_physical_in_bridge
  2017-06-14 05:00:13.747 16708 ERROR neutron.plugins.ml2.drivers.agent._common_agent     physical_interface)
  2017-06-14 05:00:13.747 16708 ERROR neutron.plugins.ml2.drivers.agent._common_agent   File "/usr/lib/python2.7/site-packages/neutron/plugins/ml2/drivers/linuxbridge/agent/linuxbridge_neutron_agent.py", line 245, in ensure_flat_bridge
  2017-06-14 05:00:13.747 16708 ERROR neutron.plugins.ml2.drivers.agent._common_agent     gateway):
  2017-06-14 05:00:13.747 16708 ERROR neutron.plugins.ml2.drivers.agent._common_agent   File "/usr/lib/python2.7/site-packages/neutron/plugins/ml2/drivers/linuxbridge/agent/linuxbridge_neutron_agent.py", line 388, in ensure_bridge
  2017-06-14 05:00:13.747 16708 ERROR neutron.plugins.ml2.drivers.agent._common_agent     self.update_interface_ip_details(bridge_name, interface, ips, gateway)
  2017-06-14 05:00:13.747 16708 ERROR neutron.plugins.ml2.drivers.agent._common_agent   File "/usr/lib/python2.7/site-packages/neutron/plugins/ml2/drivers/linuxbridge/agent/linuxbridge_neutron_agent.py", line 326, in update_interface_ip_details
  2017-06-14 05:00:13.747 16708 ERROR neutron.plugins.ml2.drivers.agent._common_agent     alistc = dst_device.addr.list(scope='global', to=ip['cidr'])
  2017-06-14 05:00:13.747 16708 ERROR neutron.plugins.ml2.drivers.agent._common_agent   File "/usr/lib/python2.7/site-packages/neutron/agent/linux/ip_lib.py", line 579, in add
  2017-06-14 05:00:13.747 16708 ERROR neutron.plugins.ml2.drivers.agent._common_agent     self._as_root([net.version], tuple(args))
  2017-06-14 05:00:13.747 16708 ERROR neutron.plugins.ml2.drivers.agent._common_agent   File "/usr/lib/python2.7/site-packages/neutron/agent/linux/ip_lib.py", line 363, in _as_root
  2017-06-14 05:00:13.747 16708 ERROR neutron.plugins.ml2.drivers.agent._common_agent     use_root_namespace=use_root_namespace)
  2017-06-14 05:00:13.747 16708 ERROR neutron.plugins.ml2.drivers.agent._common_agent   File "/usr/lib/python2.7/site-packages/neutron/agent/linux/ip_lib.py", line 99, in _as_root
  2017-06-14 05:00:13.747 16708 ERROR neutron.plugins.ml2.drivers.agent._common_agent     log_fail_as_error=self.log_fail_as_error)
  2017-06-14 05:00:13.747 16708 ERROR neutron.plugins.ml2.drivers.agent._common_agent   File "/usr/lib/python2.7/site-packages/neutron/agent/linux/ip_lib.py", line 108, in _execute
  2017-06-14 05:00:13.747 16708 ERROR neutron.plugins.ml2.drivers.agent._common_agent     log_fail_as_error=log_fail_as_error)
  2017-06-14 05:00:13.747 16708 ERROR neutron.plugins.ml2.drivers.agent._common_agent   File "/usr/lib/python2.7/site-packages/neutron/agent/linux/utils.py", line 152, in execute
  2017-06-14 05:00:13.747 16708 ERROR neutron.plugins.ml2.drivers.agent._common_agent     raise ProcessExecutionError(msg, returncode=returncode)
  2017-06-14 05:00:13.747 16708 ERROR neutron.plugins.ml2.drivers.agent._common_agent ProcessExecutionError: Exit code: 2; Stdin: ; Stdout: ; Stderr: RTNETLINK answers: File exists


  When I use Linux bridge flat network, and ethx has IP address. after
  create the bridge, add ip to the bridge, it will cycle above the
  wrong.

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


References