← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1256719] Re: poll_rebooting_instances: timezone error

 

*** This bug is a duplicate of bug 1259383 ***
    https://bugs.launchpad.net/bugs/1259383

What level of code is this on?  Is it still happening?

** This bug has been marked a duplicate of bug 1259383
   is_older_than and is_newer_than don't support timezone aware datetimes

-- 
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/1256719

Title:
  poll_rebooting_instances: timezone error

Status in OpenStack Compute (Nova):
  New
Status in Oslo - a Library of Common OpenStack Code:
  New

Bug description:
  Getting the following error

  2013-12-02 09:49:51.551 27075 ERROR nova.openstack.common.periodic_task [-] Error during ComputeManager._poll_rebooting_instances: can't subtract offset-naive and offset-aware datetimes
  2013-12-02 09:49:51.551 27075 TRACE nova.openstack.common.periodic_task Traceback (most recent call last):
  2013-12-02 09:49:51.551 27075 TRACE nova.openstack.common.periodic_task   File "/usr/lib/python2.7/dist-packages/nova/openstack/common/periodic_task.py", line 180, in run_periodic_tasks
  2013-12-02 09:49:51.551 27075 TRACE nova.openstack.common.periodic_task     task(self, context)
  2013-12-02 09:49:51.551 27075 TRACE nova.openstack.common.periodic_task   File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 4356, in _poll_rebooting_instances
  2013-12-02 09:49:51.551 27075 TRACE nova.openstack.common.periodic_task     CONF.reboot_timeout):
  2013-12-02 09:49:51.551 27075 TRACE nova.openstack.common.periodic_task   File "/usr/lib/python2.7/dist-packages/nova/openstack/common/timeutils.py", line 81, in is_older_than
  2013-12-02 09:49:51.551 27075 TRACE nova.openstack.common.periodic_task     return utcnow() - before > datetime.timedelta(seconds=seconds)
  2013-12-02 09:49:51.551 27075 TRACE nova.openstack.common.periodic_task TypeError: can't subtract offset-naive and offset-aware datetimes
  2013-12-02 09:49:51.551 27075 TRACE nova.openstack.common.periodic_task

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