1. 25 Apr, 2019 1 commit
    • Pavlo Shchelokovskyy's avatar
      Use upper constraints from opendev.org · 3e612420
      Pavlo Shchelokovskyy authored
      oslo.cache uses a simple curl command in its tox_install.sh
      to fetch the upper-constraints, and curl does not follow redirects
      that are now in place due to move to opendev.org.
      
      This breaks running tox-based tests w/o overriding the
      UPPER_CONSTRAINTS_FILE which upstream CI does,
      for example running tox locally.
      
      Change-Id: Ifcb555c8f4ccb813b48c613c79dceb4bf23318eb
      (cherry picked from commit 6eceb160eaaebbc6ea04768f62876738aa61c2d1)
      3e612420
  2. 19 Apr, 2019 1 commit
  3. 03 Aug, 2018 1 commit
  4. 03 May, 2018 1 commit
    • eeldill's avatar
      Fix sphinx-docs job for stable branch · b6f3fe3b
      eeldill authored
      build-openstack-sphinx-docs jobs fail on all branches due to the new
      pip version 10 introduces some previously Warning as Error: in case of
      calling "pip install" without any package name, the command fails.
      tox_install.sh is called during docs job without any package passed to pip.
      
      Change-Id: I400d4acf93ab634683cd9c4b05db7c79a51810be
      b6f3fe3b
  5. 07 Feb, 2017 1 commit
  6. 29 Jan, 2017 1 commit
    • Joshua Harlow's avatar
      Must not go underneath the context object and access __dict__ · 60d66d2a
      Joshua Harlow authored
      We have moved properties that no longer make directly accessing
      the __dict__ a good practice to go forward with (because those
      properties redirect to other members) so prefer to go through
      the correct conversion method to get at the dict that represents
      a context.
      
      Change-Id: I6fbf2192f477f62b1843321d2ec2147a3536a888
      (cherry picked from commit 1640564d)
      60d66d2a
  7. 20 Jan, 2017 2 commits
  8. 22 Dec, 2016 1 commit
  9. 20 Dec, 2016 1 commit
    • Tony Breeds's avatar
      Add Constraints support · bdb5a076
      Tony Breeds authored
      Adding constraints support to libraries is slightly more complex than
      services as the libraries themselves are listed in upper-constraints.txt
      which leads to errors that you can't install a specific version and a
      constrained version.
      
      This change adds constraints support by also adding a helper script to
      edit the constraints to remove oslo.log.
      
      Change-Id: Ib6001210350743827eae4f5306464e68e057d4c6
      bdb5a076
  10. 05 Dec, 2016 1 commit
    • Akash Gangil's avatar
      Avoid converting to unicode if not needed · 92f87422
      Akash Gangil authored
      In python3, str is already represents unicode data. The current code
      called oslo.utils safe_encode irrespective of incoming message encoding
      and encoded it to 'utf-8', however that resolves to a byte string.
      
      Since the syslog module expects a message of type unicode[1]. We don't
      need to encode if python3 is being used, since the string representation
      is sequence of unicode codepoints by default.
      
      [1] https://hg.python.org/cpython/file/tip/Modules/syslogmodule.c#l162
      
      Change-Id: Id40854d6b762b2d639afd7168ddb3a1e728d13d7
      92f87422
  11. 25 Nov, 2016 1 commit
  12. 09 Nov, 2016 1 commit
  13. 06 Nov, 2016 1 commit
  14. 02 Nov, 2016 2 commits
  15. 23 Oct, 2016 1 commit
  16. 13 Oct, 2016 1 commit
  17. 12 Oct, 2016 1 commit
    • Tony Xu's avatar
      Modify use of assertTrue(A in B) · 76a1704f
      Tony Xu authored
      Use assertIn(A, B) instead of assertTrue(A in B)
      
      TrivialFix
      
      Change-Id: Ia186e0010e3b7f5ea1103cde990bd8a8be695361
      76a1704f
  18. 11 Oct, 2016 1 commit
  19. 10 Oct, 2016 1 commit
  20. 07 Oct, 2016 2 commits
    • gecong1973's avatar
      Change assertTrue(isinstance()) by optimal assert · cff5de1a
      gecong1973 authored
      Some of tests use different method of
      assertTrue(isinstance(A, B)) or assertEqual(type(A), B).
      The correct way is to use assertIsInstance(A, B) provided
      by testtools
      
      Change-Id: I85a3ffe7fb29b0c5cd0d298d314172440feae96e
      cff5de1a
    • Joshua Harlow's avatar
      Add a json reformatter command · 30f2074a
      Joshua Harlow authored
      
      
      It would save a lot of space to only write JSON logs, rather than also
      write formatted logs. This utility turns the former into the latter
      so we can do this without removing the ability of a sysadmin to read
      logs in a sensible format.
      
      You can either provide a filename or pipe via stdin. `tail -f` works
      as stdin. Each record must occupy precisely one line.
      
      Change-Id: I334e1e52d442f82bf68da9e581ce44bc3465208b
      Co-Authored-By: default avatarAlexis Lee <lxsli@hpe.com>
      30f2074a
  21. 06 Oct, 2016 1 commit
    • Andreas Jaeger's avatar
      Enable release notes translation · 2204e0d5
      Andreas Jaeger authored
      Releasenote translation publishing is being prepared. 'locale_dirs'
      needs to be defined in conf.py to generate translated version of the
      release notes.
      
      Note that this repository might not get translated release notes - or
      no translations at all - but we add the entry here nevertheless to
      prepare for it.
      
      Change-Id: I59db2bf536c766b4708530d41804acfbd4269483
      2204e0d5
  22. 30 Sep, 2016 1 commit
  23. 28 Sep, 2016 1 commit
  24. 27 Sep, 2016 1 commit
  25. 20 Sep, 2016 1 commit
  26. 19 Sep, 2016 1 commit
    • Victor Stinner's avatar
      Add a filter to rate limit logs · 7d1ef903
      Victor Stinner authored
      * Add configuration options to enable rate limiting:
      
        - rate_limit_interval
        - rate_limit_burst
        - rate_limit_except_level
      
      * Add oslo_log.rate_limit submodule
      * Add public functins:
      
        - install_filter(burst, interval, except_level)
        - uninstall_filter()
      
      * Add unit tests
      * Add a new dependency, monotonic, to get a monotonic clock
      
      Default: rate limiting is disabled and logs at CRITICAL level are not
      rate limited.
      
      DocImpact
      Change-Id: Ic58dafceefde1b109721a58631c223522bf4cc9c
      7d1ef903
  27. 14 Sep, 2016 1 commit
    • Masaki Matsushita's avatar
      Implement FluentFormatter · 62ba713e
      Masaki Matsushita authored
      This change implements FluentFormatter, a formatter for fluentd.
      It enables oslo_log to output logs to fluentd directly.
      FluentFormatter expects it will be used by fluent.handler.FluentHandler.
      
      DocImpact
      Implements: blueprint fluent-formatter
      Change-Id: I67be5079f9370e93e5e3d4c715d2b8011154a2ce
      62ba713e
  28. 12 Sep, 2016 1 commit
  29. 10 Sep, 2016 1 commit
  30. 09 Sep, 2016 1 commit
  31. 08 Sep, 2016 1 commit
    • Alexis Lee's avatar
      Fix races in unit tests · 45062913
      Alexis Lee authored
      The code is designed to only mutate if the mtime of log_config_append
      changes. The tests sometimes go too fast and the mtime doesn't change.
      
      Fix this by always resetting old_time.
      
      Change-Id: I84cdfece2969069c138f46201d84928f26fe4913
      45062913
  32. 07 Sep, 2016 1 commit
    • Doug Hellmann's avatar
      standardize release note page ordering · cb39f218
      Doug Hellmann authored
      
      
      In order to support automatically updating the release notes when we
      create stable branches, we want the pages to be in a standard order.
      This patch updates the order to be reverse chronological, so the most
      recent notes appear at the top.
      
      Change-Id: Ib364dcc8eb31275a31c83b68d7914263b183e393
      Signed-off-by: default avatarDoug Hellmann <doug@doughellmann.com>
      cb39f218
  33. 06 Sep, 2016 1 commit
    • Kirill Zaitsev's avatar
      Use six.wraps instead of functools · 107241be
      Kirill Zaitsev authored
      Currently constraint for six is >=1.9, so it's time to solve the
      TODO point over functools.wraps and make behaviour consistent on py2/py3
      
      Change-Id: I23996a4aec3561c7b0f6fec00a60f8c16b2e22a6
      107241be
  34. 30 Aug, 2016 1 commit
  35. 26 Aug, 2016 1 commit
  36. 24 Aug, 2016 1 commit
  37. 23 Aug, 2016 1 commit
    • Atsushi SAKAI's avatar
      Fix typos · 3fa753d7
      Atsushi SAKAI authored
      osli        => oslo
      respository => repository
      demostrates => demonstrates
      
      Change-Id: I76badc9f5852fafaff627770b11c5948ae1cffd7
      3fa753d7