1. 25 Apr, 2019 1 commit
    • Pavlo Shchelokovskyy's avatar
      Use upper constraints from opendev.org · 76d1dee7
      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)
      76d1dee7
  2. 19 Apr, 2019 1 commit
  3. 03 Aug, 2018 1 commit
  4. 02 May, 2018 1 commit
    • eeldill's avatar
      Fix sphinx-docs job for stable branch · 45f1dc61
      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
      45f1dc61
  5. 15 Dec, 2017 1 commit
    • Victor Stinner's avatar
      JSONFormatter convert unserializable with repr() · 30e209e0
      Victor Stinner authored
      The JSONFormatter formatter now converts unserializable objects with
      repr() to prevent JSON serialization errors on logging.
      
      The fix requires oslo.serialization 2.20.2 or newer to get the new
      fallback parameter of jsonutils.to_primitive().
      
      Backport/cherry-pick note: 2.21.1 replaced with 2.20.2.
      
      Closes-Bug: #1593641
      Change-Id: Ibda7d145af95903b2bf8d87113804350330a93b4
      (cherry picked from commit 22bd3d53)
      30e209e0
  6. 11 Aug, 2017 1 commit
  7. 28 Jul, 2017 2 commits
  8. 18 Jul, 2017 1 commit
  9. 13 Jul, 2017 1 commit
  10. 11 Jul, 2017 2 commits
  11. 05 Jul, 2017 3 commits
  12. 27 Jun, 2017 4 commits
  13. 26 Jun, 2017 1 commit
    • Gorka Eguileor's avatar
      Add log.get_loggers method · 08b854f6
      Gorka Eguileor authored
      In the Cinder project restarting the volume service is problematic
      because it's not only in the control path but also in the data path of
      some operations, so restarting it to change log levels is really
      disruptive because it takes a long time to be done properly and it does
      not support Active-Active configurations yet.
      
      For this reason there's a specific API to change the log levels
      dynamically based on a given prefix [1], but this feature is accessing
      directly the `_loggers` dictionary which is not ideal.
      
      This patch adds a simple method called `get_loggers` that will return a
      copy of the internal `_loggers` dictionary so that the Cinder feature
      can be changed to use this instead.
      
      [1] https://review.openstack.org/445885
      
      Change-Id: Ife33a5dd044a4565ad6a4d559ef9f0c108f260a3
      08b854f6
  14. 15 Jun, 2017 1 commit
  15. 12 Jun, 2017 1 commit
  16. 05 Jun, 2017 1 commit
  17. 02 Jun, 2017 3 commits
    • OpenStack Proposal Bot's avatar
      Updated from global requirements · 2f3c93dc
      OpenStack Proposal Bot authored
      Change-Id: I39a505e5947d243d3821676fa16adf6411313884
      2f3c93dc
    • Ihar Hrachyshka's avatar
      formatter: skip ImportError when adding error_summary · 14d2f881
      Ihar Hrachyshka authored
      In some projects, we conditionally import modules that may be not
      installed, for example in Neutron where we import from ibm_db_alembic
      but ignore ImportError in alembic env.py.
      
      It turned out that ImportError is not cleared by except: pass in py2
      (but is correctly cleared in py3), as can be seen in the snippet below
      (kudos to @dhellmann for providing it):
      
          apu:~$ cat testme.py
          import sys
      
          print('before:', sys.exc_info()[0])
      
          try:
              import nonesuch
          except ImportError:
              pass
      
          print('after:', sys.exc_info()[0])
          apu:~$ python2 ./testme.py
          ('before:', None)
          ('after:', <type 'exceptions.ImportError'>)
          apu:~$ python3 ./testme.py
          before: None
          after: None
      
      The patch makes the formatter skip ImportErrors. We could in theory
      limit it to py2 only but to simplify matters and to stick to identical
      behavior across python runtimes, we will just unconditionally skip it
      for all library consumers.
      
      This is a follow up to Ifecb831c0adf4086a9d39feb3eb7e3865db780e6 ("skip
      built-in exceptions when adding error_summary") that already skipped
      some builtin exceptions.
      
      Change-Id: Ia8f7e2501a49345b8d828ec3ee4a7cc870c8a0a8
      14d2f881
    • OpenStack Proposal Bot's avatar
      Updated from global requirements · 89714467
      OpenStack Proposal Bot authored
      Change-Id: I6d4cbefb369c15d2cfd3d3af44c6466c8736a702
      89714467
  18. 26 May, 2017 1 commit
  19. 25 May, 2017 1 commit
    • Kiseok Kim's avatar
      Fix bug in log_method_call decorator · 14a496ff
      Kiseok Kim authored
      log_method_call decorator miss first argument of staticmethod and function.
      the cause of bug is wrong start position of argument array for staticmethod.
      This patch adds a bug fix and test code.
      
      Change-Id: Id83378ba5954a855f18a4fdcfd22d2c7887991b2
      Closes-Bug: #1672283
      14a496ff
  20. 24 May, 2017 4 commits
  21. 23 May, 2017 4 commits
  22. 22 May, 2017 2 commits
  23. 21 May, 2017 2 commits