The monotonic package was needed for monotonic time operations when
running under Python runtimes older than 3.3. Since we now only support
versions higher than this, this third party package requirement can now
be removed.
Change-Id: Ie99411882822a5db47462fcb2748c6e978587b8c
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
A recent requirements change [1] restricted monotonic to <py3.3, meaning
that any subsequent change triggering the requirements-check job will
fail until that's synced. Do that.
In order to make this sane, we need to be sure we're only using
monotonic if it's available. In oslo_service.__init__.py, we're using
the actual library if eventlet is. In periodic_task.py we're using the
actual library if the monotonic() method isn't available in the time
module.
[1] Ib8c1bf08f5fa7463911602b0df19315907c81e04
Change-Id: I3b24a089b780aac2746f48f7d5b538546ccce982
the function of periodic_task does not catch all exception so that
all periodic task will die if one periodic task throw BaseException
Closes-Bug: #1730556
Change-Id: I2819cd3644aacac86bc6d12c980d8902f1a71823
This patch removes legacy bandit.yaml configuration file
and makes the full bandit scan voting as part of pep8 job.
A single low severity bandit scan violation was found in the
process and corresponding line is now skipped as false positive.
Change-Id: I0d432e4621bd89b1e6e74fc2005971d9dea794f9
Closes-Bug: #1729308
oslo.utils is already one dependecy of oslo.service, and we
get method name with reflection.get_callable_name, so we can
get class name with reflection.get_class_name().
Change-Id: I8f61f8def5f1bca7ad14d654c52504c46784b18c
Monotonic time and oslo.utils stopwatches will not go backwards
and therefore will not cause periodicity + misc. problems where tasks
are ran again or at the wrong times in a system that is having its
clock altered (via ntpd or other).
Related-Bug: #1450438
Change-Id: I90881842185c607eb6c8ea5bb7326a37e1bc3742
Change the API of oslo.service to accept conf object and
remove usage of global CONF object throughout the library.
List of functions/classes that accept conf as a parameter:
1. eventlet_backdoor.py
* initialize_if_enabled
2. periodic_task.py
* PeriodicTasks
3. service.py
* launch
* ServiceLauncher
* ProcessLauncher
4. sslutils.py
* is_enabled
* wrap
Fixed the unit tests.
APIImpact
bp graduate-oslo-service
Change-Id: Icbd5f9e386b0eee2f7c60a65c076f53ba5f0f637