When running quantum with qpid rpc backend, the agent state report failed

Bug #1159616 reported by Alex Xu
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
neutron
Fix Released
High
Alex Xu

Bug Description

When running quantum with 'rpc_backend = quantum.openstack.common.rpc.impl_qpid', get error message as below:

2013-03-25 11:32:04 ERROR [quantum.openstack.common.rpc.amqp] Exception during message handling
Traceback (most recent call last):
  File "/home/soulxu/work-code/openstack/quantum/quantum/openstack/common/rpc/amqp.py", line 431, in _process_data
    rval = self.proxy.dispatch(ctxt, version, method, **args)
  File "/home/soulxu/work-code/openstack/quantum/quantum/common/rpc.py", line 43, in dispatch
    quantum_ctxt, version, method, **kwargs)
  File "/home/soulxu/work-code/openstack/quantum/quantum/openstack/common/rpc/dispatcher.py", line 133, in dispatch
    return getattr(proxyobj, method)(ctxt, **kwargs)
  File "/home/soulxu/work-code/openstack/quantum/quantum/db/agents_db.py", line 167, in report_state
    time = timeutils.parse_strtime(time)
  File "/home/soulxu/work-code/openstack/quantum/quantum/openstack/common/timeutils.py", line 65, in parse_strtime
    return datetime.datetime.strptime(timestr, fmt)
TypeError: must be string, not timestamp

It because we pass timestamp as datetime object, but kombu and qpid backend will deserialize the datetime object as different way.

Alex Xu (xuhj)
Changed in quantum:
assignee: nobody → Alex Xu (xuhj)
status: New → Confirmed
description: updated
Gary Kotton (garyk)
Changed in quantum:
importance: Undecided → Critical
tags: added: grizzly-backport-potential
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/25263

Changed in quantum:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to quantum (milestone-proposed)

Fix proposed to branch: milestone-proposed
Review: https://review.openstack.org/25268

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

Reviewed: https://review.openstack.org/25263
Committed: http://github.com/openstack/quantum/commit/530811190961c6759dfc72aacd99fc1a4deb93ee
Submitter: Jenkins
Branch: master

commit 530811190961c6759dfc72aacd99fc1a4deb93ee
Author: He Jie Xu <email address hidden>
Date: Mon Mar 25 16:18:21 2013 +0800

    Fixes report state failed with qpid rpc backend

    Fixes bug 1159616

    Change-Id: Ie63dd41169fdb2f7a1814aed38ab126b69b46fe9

Changed in quantum:
status: In Progress → Fix Committed
Changed in quantum:
milestone: none → havana-1
dan wendlandt (danwent)
Changed in quantum:
milestone: havana-1 → grizzly-rc2
dan wendlandt (danwent)
Changed in quantum:
importance: Critical → High
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to quantum (milestone-proposed)

Reviewed: https://review.openstack.org/25268
Committed: http://github.com/openstack/quantum/commit/5840f24ef3d801ff2e83f58c03f34a4e4b670217
Submitter: Jenkins
Branch: milestone-proposed

commit 5840f24ef3d801ff2e83f58c03f34a4e4b670217
Author: He Jie Xu <email address hidden>
Date: Mon Mar 25 16:18:21 2013 +0800

    Fixes report state failed with qpid rpc backend

    Fixes bug 1159616

    Change-Id: Ie63dd41169fdb2f7a1814aed38ab126b69b46fe9

Changed in quantum:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in quantum:
milestone: grizzly-rc2 → 2013.1
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.