1. 24 Jul, 2020 1 commit
  2. 20 Jul, 2020 1 commit
  3. 22 Jun, 2020 1 commit
  4. 05 Jun, 2020 1 commit
  5. 03 Jun, 2020 1 commit
  6. 01 Jun, 2020 2 commits
  7. 26 May, 2020 2 commits
  8. 21 May, 2020 1 commit
    • Andreas Jaeger's avatar
      Switch to newer openstackdocstheme and reno versions · 16f90983
      Andreas Jaeger authored
      Switch to openstackdocstheme 2.2.1 and reno 3.1.0 versions. Using
      these versions will allow especially:
      * Linking from HTML to PDF document
      * Allow parallel building of documents
      * Fix some rendering problems
      
      Update Sphinx version as well.
      
      Remove doc requirments from lower-constraints, they are not used for
      install. Remove also hacking, the version is ancient and not needed
      there either.
      
      openstackdocstheme renames some variables, so follow the renames. A
      couple of variables are also not needed anymore, remove them.
      
      Set openstackdocs_auto_name to use project as name.
      
      Change pygments_style to 'native' since old theme version always used
      'native' and the theme now respects the setting and using 'sphinx' can
      lead to some strange rendering.
      
      See also
      http://lists.openstack.org/pipermail/openstack-discuss/2020-May/014971.html
      
      Change-Id: I5ec9dda8582f55fc0b287c422d5c43ad2e23b9b8
      16f90983
  9. 15 May, 2020 2 commits
  10. 04 May, 2020 1 commit
  11. 16 Apr, 2020 1 commit
  12. 14 Apr, 2020 2 commits
  13. 30 Mar, 2020 1 commit
  14. 27 Mar, 2020 1 commit
    • Andreas Jaeger's avatar
      Update hacking for Python3 · 009fd6c7
      Andreas Jaeger authored
      The repo is Python 3 now, so update hacking to version 2.0 which
      supports Python 3.
      
      Blacklist: W504 line break after binary operator
      
      Change-Id: I7ca780a2cff32031c562482b804888e5d49712c1
      009fd6c7
  15. 17 Mar, 2020 1 commit
  16. 13 Mar, 2020 1 commit
  17. 11 Mar, 2020 1 commit
  18. 03 Mar, 2020 2 commits
  19. 02 Mar, 2020 1 commit
  20. 21 Feb, 2020 1 commit
  21. 11 Feb, 2020 1 commit
  22. 06 Feb, 2020 1 commit
  23. 23 Dec, 2019 1 commit
    • caoyuan's avatar
      Trivial cleanup for tox · 09eadf95
      caoyuan authored
      move 'basepython' to the top-level 'testenv'
      
      Change-Id: I197d6486a3b126f616ffe2f7e3e669d922a1e337
      09eadf95
  24. 05 Dec, 2019 1 commit
  25. 04 Dec, 2019 2 commits
  26. 02 Dec, 2019 1 commit
    • Lance Bragstad's avatar
      Add devstack job to .zuul.conf · 2632c8e1
      Lance Bragstad authored
      We know we want to have some level of functional testing to verify
      enforcement models. This commit uses one approach to add a base
      devstack job to oslo.limit's .zuul.conf so that we have a minimal-ish
      installation to configure with limits and write actual integration and
      functional tests against.
      
      Change-Id: I50c41805b8e196fdaf20c95e9aa687b98c369a57
      2632c8e1
  27. 25 Nov, 2019 2 commits
    • John Garbutt's avatar
      Add flat enforcer · 40ef2764
      John Garbutt authored
      
      
      Taking the Nova work as an example, looking to add a basic flat enforcer
      that meets Nova's needs.
      
      The user of the Enforce provides a callback. You can see an example of
      the callback in the unit tests:
      
        def fake_callback(project_id, resources):
          return {
            "a": 5,
            "b": 10,
            "c": 0,
          }
      
      In the code where you want to check if you increase the amount of
      resources that are being consumed, you can make this call:
      
         enforcer = limit.Enforcer(fake_callback)
         enforcer.enforce(project_id, {"a": 5})
      
      The enforce function looks up the limits that apply for the given
      project_id, uses the callback to count the current usage. The proposed
      usage is then calculated be adding the delta and the current usage
      together. This is compared to any limits that apply.
      
      If you later want to check if you have races that mean you are
      over your limit, you can do this call:
      
         enforcer.enforce(project_id, {'a': 0})
      
      Summary of key design points:
      
      * single set of logic to enforce limits shared between all projects
        that adopt unified limits
      
      * interface should work for both flat and strict-two-level enforcement
      
      * it is assumed that oslo.limit will control which type of enforcement
        is being applied
      
      * callback lists all resources that need counting
        for the given project_id, in Nova this helps limit
        the number of API calls made to placement
      
      * allows to check if proposed additional usage means you are over
        your limit, and also double check if the current usages means
        you are over quota
      
      * if the code is checking a resource where you do not have a
        registered limit, we default to a limit of zero, i.e. no
        resources can be created unless you set that registered limit
        There will be an appropriate warning logged to help the operator
        understand what needs to be setup in keystone.
      
      This builds on various previous prototypes from:
      Co-Authored-By: default avatarLance <Bragstad&lt;lbragstad@gmail.com>
      Co-Authored-By: default avatarwangxiyuan <wangxiyuan@huawei.com>
      
      Change-Id: I294a922ea80af673291c991f07a4a203f25c289d
      40ef2764
    • John Garbutt's avatar
      Fetch unified limits from keystone · a044cd9d
      John Garbutt authored
      
      
      For a given resource find out the current limits for the project.
      If there are no per project limits look up the registered limits
      that act as a default for when there are no project limits.
      
      Future patches will look at comparing these limits with the current and
      proposed resource usage to enforce the limits.
      
      Change-Id: Ia5ced4a46833b194f397ac936b99b0c9573b50d1
      Co-Authored-By: default avatarwangxiyuan <wangxiyuan1007@gmail.com>
      Co-Authored-By: default avatarLance Bragstad <lbragstad@gmail.com>
      a044cd9d
  28. 22 Nov, 2019 2 commits
  29. 24 Oct, 2019 1 commit
    • caoyuan's avatar
      tox: Keeping going with docs · 91ca7b0e
      caoyuan authored
      Sphinx 1.8 introduced [1] the '--keep-going' argument which, as its name
      suggests, keeps the build running when it encounters non-fatal errors.
      This is exceptionally useful in avoiding a continuous edit-build loop
      when undertaking large doc reworks where multiple errors may be
      introduced.
      
      [1] https://github.com/sphinx-doc/sphinx/commit/e3483e9b045
      
      Change-Id: Ib1749e690c22663955985f0c3b718ed6223be223
      91ca7b0e
  30. 20 Sep, 2019 1 commit
    • OpenStack Release Bot's avatar
      Update master for stable/train · d426c5d0
      OpenStack Release Bot authored
      Add file to the reno documentation build to show release notes for
      stable/train.
      
      Use pbr instruction to increment the minor version number
      automatically so that master versions are higher than the versions on
      stable/train.
      
      Change-Id: I07dc249c5fdd264c40407b4d1e9fd3b0ea40f43c
      Sem-Ver: feature
      d426c5d0
  31. 05 Jul, 2019 1 commit
  32. 01 Jul, 2019 1 commit
    • Lance Bragstad's avatar
      Rename filter_resource resource_filters · 90acc274
      Lance Bragstad authored
      filter_resources doesn't make as much sense as resource_filters.
      filter_resources almost sounds like a boolean, when the argument is
      designed to contain a list of strings that represent resources to
      filter.
      
      Change-Id: Idc787052ac41744075d4a4860d06a3529fd271bb
      90acc274