← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1266962] Re: Remove set_time_override in timeutils

 

** Also affects: oslo.utils
   Importance: Undecided
       Status: New

** No longer affects: oslo-incubator

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

Title:
  Remove set_time_override in timeutils

Status in OpenStack Telemetry (Ceilometer):
  Fix Released
Status in Cinder:
  Fix Released
Status in Gantt:
  New
Status in OpenStack Image Registry and Delivery Service (Glance):
  In Progress
Status in OpenStack Bare Metal Provisioning Service (Ironic):
  Fix Released
Status in OpenStack Identity (Keystone):
  Fix Released
Status in Manila:
  Fix Released
Status in OpenStack Compute (Nova):
  In Progress
Status in Messaging API for OpenStack:
  Fix Released
Status in Oslo utility library:
  New
Status in Python client library for Keystone:
  Fix Released
Status in Python client library for Nova:
  Fix Released
Status in Tuskar:
  Fix Released
Status in OpenStack Messaging and Notifications Service (Zaqar):
  Fix Released

Bug description:
  set_time_override was written as a helper function to mock utcnow in
  unittests.

  However we now use mock or fixture to mock our objects so
  set_time_override has become obsolete.

  We should first remove all usage of set_time_override from downstream
  projects before deleting it from oslo.

  List of attributes and functions to be removed from timeutils:
  * override_time
  * set_time_override()
  * clear_time_override()
  * advance_time_delta()
  * advance_time_seconds()

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


References