← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1203069] Re: replace takes no keyword arguments

 

** Changed in: nova
       Status: Fix Committed => Fix Released

** Changed in: nova
    Milestone: None => havana-3

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1203069

Title:
  replace takes no keyword arguments

Status in OpenStack Compute (Nova):
  Fix Released

Bug description:
  When using cells and attempting to schedule instances to a cell, this
  error occurs:

  http://paste.openstack.org/show/40926/

  This seems to be because cells is passing an instance to the db api
  which has dates in the form of strings instead of datetime objects.
  When dbapi calls .replace(tzdata=None) ... we end up using the
  replace() method on `unicode` and not `datetime`.

  The fix for this could lie in two places:

  1) Detecting and converting from strings to datetime in dbapi

  OR

  2) Detecting and converting from strings to datetime in cells code

  I'm leaning towards #2

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