Quantum agent (OVS) terminates when there is no connectivity to the quantum plugin

Bug #985470 reported by Gary Kotton
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
neutron
Fix Released
Undecided
Gary Kotton

Bug Description

Quatum agent (OVS) terminates after rebooting the appliance on which the Quantum service and plugin are running.

Trace from the agent is below:-
[node@dhcp-4-84 ~]$ sudo /usr/bin/quantum-openvswitch-agent /etc/quantum/plugins/openvswitch/ovs_quantum_plugin.ini
Traceback (most recent call last):
  File "/usr/bin/quantum-openvswitch-agent", line 24, in <module>
    main()
  File "/usr/lib/python2.7/site-packages/quantum/plugins/openvswitch/agent/ovs_quantum_agent.py", line 680, in main
    plugin.daemon_loop(db)
  File "/usr/lib/python2.7/site-packages/quantum/plugins/openvswitch/agent/ovs_quantum_agent.py", line 301, in daemon_loop
    db.commit()
  File "/usr/lib64/python2.7/site-packages/sqlalchemy/ext/sqlsoup.py", line 615, in commit
    self.session.commit()
  File "/usr/lib64/python2.7/site-packages/sqlalchemy/orm/scoping.py", line 114, in do
    return getattr(self.registry(), name)(*args, **kwargs)
  File "/usr/lib64/python2.7/site-packages/sqlalchemy/orm/session.py", line 655, in commit
    self.transaction.commit()
  File "/usr/lib64/python2.7/site-packages/sqlalchemy/orm/session.py", line 317, in commit
    t[1].commit()
  File "/usr/lib64/python2.7/site-packages/sqlalchemy/engine/base.py", line 2036, in commit
    self._do_commit()
  File "/usr/lib64/python2.7/site-packages/sqlalchemy/engine/base.py", line 2066, in _do_commit
    self.connection._commit_impl()
  File "/usr/lib64/python2.7/site-packages/sqlalchemy/engine/base.py", line 1278, in _commit_impl
    self.engine.dialect.do_commit(self.connection)
  File "/usr/lib64/python2.7/site-packages/sqlalchemy/engine/base.py", line 1039, in connection
    return self._revalidate_connection()
  File "/usr/lib64/python2.7/site-packages/sqlalchemy/engine/base.py", line 1045, in _revalidate_connection
    "Can't reconnect until invalid "
sqlalchemy.exc.InvalidRequestError: Can't reconnect until invalid transaction is rolled back
[node@dhcp-4-84 ~]$

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to quantum (master)

Fix proposed to branch: master
Review: https://review.openstack.org/6744

Changed in quantum:
assignee: nobody → Gary Kotton (garyk)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to quantum (master)

Reviewed: https://review.openstack.org/6744
Committed: http://github.com/openstack/quantum/commit/be45b704ac6fc39e9f934f886403a622c30803cb
Submitter: Jenkins
Branch: master

commit be45b704ac6fc39e9f934f886403a622c30803cb
Author: Gary Kotton <email address hidden>
Date: Tue Apr 24 02:02:03 2012 -0400

    blueprint agent-db-ha
    bug 985470
    bug 985646

    The fixes enable the OVS and linuxbridge agenets to "keep alive" when the host running the server/plugin is down.

    Fixes after comments. Better logging

    Fixes after comments - added reconnect interval + cleanup

    Fixes after comments - simplify code + ovs intervals moved to configuration file

    Fixes after comments - move int conversion to configuration

    Fixes after comments - if one of the polling interval or reconnect interval are not
    defined in the relevant ini files then a default value is used.

    Fixes after comments and merges with HACKING.rst fixes

    Fixes after port binding comments

    Fixes after comments from gongysh

    Fixes after comments - align comments in agent ini files

    Fixes - revert some code

    Change-Id: I9194f142478b130e8ef198b019539357a9916d7f

Changed in quantum:
status: In Progress → Fix Committed
dan wendlandt (danwent)
Changed in quantum:
milestone: none → folsom-1
Thierry Carrez (ttx)
Changed in quantum:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in quantum:
milestone: folsom-1 → 2012.2
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.