1. 13 Dec, 2021 1 commit
    • Rafael Weingärtner's avatar
      Fix quote API · 28f8bd4a
      Rafael Weingärtner authored
      The quote API method has been broken for a while now. This patch fixes
      the API and makes it work again. To use it, one can issue the following
      command.
      
          curl -s -X POST "http://cloudkitty_server_and_port/v1/rating/quote" -H "Accept: application/json" -H "User-Agent: python-keystoneclient" -H "Content-Type: application/json" -H "X-Auth-Token: ${ACCESS_TOKEN_KEYSTONE}" -d '{"resources": [{"service": "<cloudkitty_service_name>", "volume": "<quantity_to_quote>", "desc": {"metadata": {"<field_name_used_to_define_price>": "<value_to_activate_a_price>"}}}]}'
      
      Change-Id: Ia6ef6543a5100445b203196d39b404bc74b75ba0
      Story: 2009022
      Task: 42744
      (cherry picked from commit 21a87304)
      28f8bd4a
  2. 07 May, 2021 2 commits
  3. 15 Apr, 2021 1 commit
    • Jonathan Herlin's avatar
      Fix default admin_or_owner policy expression · 2db1435e
      Jonathan Herlin authored
      By default not even an admin can use the get_summary endpoint with
      all_tenants=True or using a tenant_id parameter. This commit fixes that.
      
      This rule is now the same as how cinder defines admin_or_owner.
      
      Change-Id: I3e34927e8ab88f25d2975b4dbac89b52a7d94c98
      (cherry picked from commit 2a985c94)
      2db1435e
  4. 12 Apr, 2021 1 commit
    • Pierre Riteau's avatar
      Drop lower-constraints job · 04f4c78b
      Pierre Riteau authored
      The lower-constraints job is failing in stable/victoria and older stable
      branches. OpenStack projects are allowed to drop lower-constraints
      testing when it becomes too difficult to maintain.
      
      Change-Id: I66011e9f737982c61fb6cc2e0103d6c9d2a7a171
      04f4c78b
  5. 23 Sep, 2020 1 commit
  6. 21 Sep, 2020 4 commits
  7. 20 Sep, 2020 1 commit
    • zhangchun's avatar
      bump py37 to py38 in tox.ini · 2869666c
      zhangchun authored
      in 'victoria' cycle, we should test py38 by default.
      Trivial change
      
      Change-Id: I80301bac54bb8654f58d4dfc0ff3de5899f3a314
      2869666c
  8. 18 Sep, 2020 1 commit
    • wangzihao's avatar
      Bump hacking min version to 3.0.1 · 1cccdb29
      wangzihao authored
      hacking 3.0.1 fix the pinning of flake8 to avoid bringing in a new
      version with new checks.
      
      bumping the min version for hacking so that any older hacking versions
      which auto adopt the new checks are not used.
      
      Change-Id: I80da860ff80bc3766d66511c70eb22467e25df01
      1cccdb29
  9. 17 Sep, 2020 1 commit
  10. 10 Sep, 2020 4 commits
    • Zuul's avatar
      Merge "Make Gnocchi connection pool configurable" · 28b41c17
      Zuul authored
      28b41c17
    • Zuul's avatar
      15e88c8c
    • Zuul's avatar
      f7a75112
    • pedro's avatar
      Make Gnocchi connection pool configurable · 7864529c
      pedro authored
      When CloudKitty is collecting data from Gnocchi, it opens many
      connections to Gnocchi to parallelize the requests; as CloudKitty starts
      to fetch the responses from Gnocchi, it releases the connections to the
      pool until it starts to overflow (reaching the default limit of the
      Requests connection pool). This behavior causes no problems, but
      prevents the reuse of connections.
      
      To mitigate this problem and optimize the use of connections, we propose
      to add a new configuration in Gnocchi collector and fetcher to set the
      connection pool maximum size when connecting to Gnocchi. The new
      configuration is `http_pool_maxsize` and you can configure it in the
      `cloudkitty.conf` file like:
      
      ```
      [fetcher_gnocchi]
      http_pool_maxsize = 50
      
      [collector_gnocchi]
      http_pool_maxsize = 50
      ```
      
      The default value is defined by the `requests` library which is 10.
      
      Change-Id: I3ee22984dc87b505924e1711bc723bc1c5f160a5
      Story: 2008125
      Task: 40847
      7864529c
  11. 09 Sep, 2020 3 commits
  12. 07 Sep, 2020 8 commits
  13. 24 Aug, 2020 1 commit
    • Sean McGinnis's avatar
      Adjust hacking tests to fix py38 support · 35afc4b2
      Sean McGinnis authored
      
      
      Starting in py38, some of the column calculations have changed. We had
      some hacking unit tests that would assert on tuples containing those
      column numbers, so things would pass fine when running on py36 or py37,
      but would fail when run on py38.
      
      Since we don't really care about the column number, only whether the
      hacking check fails or doesn't, we can just match on mock.ANY for that
      value.
      
      Change-Id: I117177a43293efb389dd8c0cd5a5c0ee16a7eca9
      Signed-off-by: default avatarSean McGinnis <sean.mcginnis@gmail.com>
      35afc4b2
  14. 21 Aug, 2020 1 commit
  15. 19 Aug, 2020 1 commit
    • Andreas Jaeger's avatar
      Update hacking for Python3 · b014dbe6
      Andreas Jaeger authored
      The repo is Python 3 now, so update hacking to version 3.0 which
      supports Python 3.
      
      Fix problems found.
      
      Update local hacking checks for new flake8.
      
      Change-Id: I41a5518f1210c9a1b6d5217bbbcd99bbaa3c9b53
      b014dbe6
  16. 17 Aug, 2020 2 commits
  17. 13 Aug, 2020 3 commits
  18. 24 Jun, 2020 2 commits
    • OpenStack Release Bot's avatar
      Update master for stable/ussuri · e8b7b3fd
      OpenStack Release Bot authored
      Add file to the reno documentation build to show release notes for
      stable/ussuri.
      
      Use pbr instruction to increment the minor version number
      automatically so that master versions are higher than the versions on
      stable/ussuri.
      
      Change-Id: I5cf5769d6241dcc22c0665aba7ad368bf63d1abd
      Sem-Ver: feature
      e8b7b3fd
    • Sean McGinnis's avatar
      Fix docs build error due to duplicate references · 3dccfc76
      Sean McGinnis authored
      
      
      Class docstrings were being pulled in to multiple locations, causing
      sphinx errors due to the duplicate references. This fixes it by adding
      the :noindex: option to those references.
      
      Also temporarily disabling the PDF build as that is failing with another
      issue that should be fixed in a follow up.
      
      Change-Id: I6de2948ff49e1bb0b6a8b9a3a90f9f2ebbb8b7bb
      Signed-off-by: default avatarSean McGinnis <sean.mcginnis@gmail.com>
      3dccfc76
  19. 04 Mar, 2020 1 commit
  20. 24 Feb, 2020 1 commit