Comment 3 for bug 1442795

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to nova (master)

Reviewed: https://review.openstack.org/174243
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=83cdec4123dba74ace3439204df9a76d0053ebe7
Submitter: Jenkins
Branch: master

commit 83cdec4123dba74ace3439204df9a76d0053ebe7
Author: Hans Lindgren <email address hidden>
Date: Wed Apr 15 11:42:32 2015 +0200

    Make objects serialize_args() handle datetimes in positional args

    Remotable methods in a new TaskLog object need to serialize datatimes
    passed as positional args. Right now the serialize_args() decorator only
    look at kwargs.

    In addition, serialization of datetimes need to use timeutils.strtime()
    to match the deserialization code in the db api. Also makes this change
    for serialization of kwargs to partially solve a bug with how this
    decorator is used in the BandwidthUsage object.

    A follow-up patch closes the bug by adding conversion back to datetimes
    using existing db api helper method convert_objects_related_datetimes(),
    which in turn makes use of timeutils.parse_strtime().

    Related to blueprint liberty-objects

    Change-Id: Ia87be4fd37bee499510ae543e11029c2013d4905
    Related-Bug: #1442795