← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1611237] Re: Restart neutron-openvswitch-agent get ERROR "Switch connection timeout"

 

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

commit 3e45c19eedccd800d7c6e5f0fce57295cf3a7b02
Author: IWAMOTO Toshihiro <iwamoto@xxxxxxxxxxxxx>
Date:   Tue Nov 22 16:59:54 2016 +0900

    ovs-agent: Catch exceptions in agent_main_wrapper
    
    When of_interface=native, the ovs agent code is run as a ryuapp thread,
    which means it must be properly shut down or the process fails to
    terminate.  Catch exceptions and make sure that the agent terminates,
    even if in unlucky cases.
    
    Change-Id: I7aebeaa00e2416a275d9ecd940eb28c819349656
    Closes-Bug: #1611237


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

Title:
  Restart neutron-openvswitch-agent get ERROR "Switch connection
  timeout"

Status in devstack:
  New
Status in neutron:
  Fix Released

Bug description:
  Environment: devstack  master, ubuntu 14.04

  After ./stack.sh finished, kill the neutron-openvswitch-agent process
  and then start it by /usr/bin/python /usr/local/bin/neutron-
  openvswitch-agent --config-file /etc/neutron/neutron.conf --config-
  file /etc/neutron/plugins/ml2/ml2_conf.ini

  The log shows :
  2016-08-08 11:02:06.346 ERROR ryu.lib.hub [-] hub: uncaught exception: Traceback (most recent call last):
    File "/usr/local/lib/python2.7/dist-packages/ryu/lib/hub.py", line 54, in _launch
      return func(*args, **kwargs)
    File "/usr/local/lib/python2.7/dist-packages/ryu/controller/controller.py", line 97, in __call__
      self.ofp_ssl_listen_port)
    File "/usr/local/lib/python2.7/dist-packages/ryu/controller/controller.py", line 120, in server_loop
      datapath_connection_factory)
    File "/usr/local/lib/python2.7/dist-packages/ryu/lib/hub.py", line 117, in __init__
      self.server = eventlet.listen(listen_info)
    File "/usr/local/lib/python2.7/dist-packages/eventlet/convenience.py", line 43, in listen
      sock.bind(addr)
    File "/usr/lib/python2.7/socket.py", line 224, in meth
      return getattr(self._sock,name)(*args)
  error: [Errno 98] Address already in use

  and
  ERROR neutron.plugins.ml2.drivers.openvswitch.agent.openflow.native.ofswitch [-] Switch connection timeout

  In kilo I could start ovs-agent in this way correctly, I do not know
  it is right to start ovs-agent in master.

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


References