DHCP agent does not resync with Quantum service

Bug #1188140 reported by Gary Kotton
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
neutron
Invalid
Undecided
Unassigned

Bug Description

2013-06-06 04:18:28 ERROR [quantum.agent.dhcp_agent] Failed reporting state!
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/quantum/agent/dhcp_agent.py", line 700, in _report_state
    self.agent_state)
  File "/usr/lib/python2.6/site-packages/quantum/agent/rpc.py", line 66, in report_state
    topic=self.topic)
  File "/usr/lib/python2.6/site-packages/quantum/openstack/common/rpc/proxy.py", line 80, in call
    return rpc.call(context, self._get_topic(topic), msg, timeout)
  File "/usr/lib/python2.6/site-packages/quantum/openstack/common/rpc/__init__.py", line 140, in call
    return _get_impl().call(CONF, context, topic, msg, timeout)
  File "/usr/lib/python2.6/site-packages/quantum/openstack/common/rpc/impl_qpid.py", line 611, in call
    rpc_amqp.get_connection_pool(conf, Connection))
  File "/usr/lib/python2.6/site-packages/quantum/openstack/common/rpc/amqp.py", line 613, in call
    rv = list(rv)
  File "/usr/lib/python2.6/site-packages/quantum/openstack/common/rpc/amqp.py", line 555, in __iter__
    self.done()
  File "/usr/lib64/python2.6/contextlib.py", line 23, in __exit__
    self.gen.next()
  File "/usr/lib/python2.6/site-packages/quantum/openstack/common/rpc/amqp.py", line 552, in __iter__
    self._iterator.next()
  File "/usr/lib/python2.6/site-packages/quantum/openstack/common/rpc/impl_qpid.py", line 436, in iterconsume
    yield self.ensure(_error_callback, _consume)
  File "/usr/lib/python2.6/site-packages/quantum/openstack/common/rpc/impl_qpid.py", line 380, in ensure
    error_callback(e)
  File "/usr/lib/python2.6/site-packages/quantum/openstack/common/rpc/impl_qpid.py", line 421, in _error_callback
    raise rpc_common.Timeout()
Timeout: Timeout while waiting on RPC response.

Tags: l3-ipam-dhcp
Gary Kotton (garyk)
Changed in quantum:
assignee: nobody → Gary Kotton (garyk)
milestone: none → havana-2
importance: Undecided → High
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/31950

Changed in quantum:
status: New → In Progress
Gary Kotton (garyk)
tags: added: grizzly-backport-potential l3-ipam-dhcp
Revision history for this message
yong sheng gong (gongysh) wrote :

garyk:
from your code, I don't think it is a bug. state report is a separate thread from sync logic after it starts the agent by self.run(). If the agent is not started by self.run(), the sync logic does not start at all. When the sync logic started, the start report is a different logic from sync logic.

i.e. if state report is throwing exception after sync logic started due to the quantum server connection, the sync logic will throw exception itself, and then it will resync itself.

Revision history for this message
Gary Kotton (garyk) wrote :

Hi,
This bug is no longer valid due to fix of bug https://bugs.launchpad.net/neutron/+bug/1191768 (https://review.openstack.org/#/c/33254/).
Thanks
Gary

Changed in neutron:
status: In Progress → Invalid
Revision history for this message
Salvatore Orlando (salvatore-orlando) wrote :

Cool. I've 'neutralized' it.

Changed in neutron:
milestone: havana-2 → none
importance: High → Undecided
assignee: Gary Kotton (garyk) → nobody
Alan Pevec (apevec)
tags: removed: grizzly-backport-potential
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.