1. 25 Feb, 2022 1 commit
    • Sam Morrison's avatar
      Fix v2 API dataframes get policy check · efcd526b
      Sam Morrison authored
      oslo.policy expects the key project_id, not tenant_id anymore. This was
      causing the GET /v2/dataframes policy check to fail:
      
          $ openstack --rating-api-version 2 rating dataframes get
          {"message": "You are not authorized to perform this action"} (HTTP 403)
      
      In the v1 API, the storage:list_data_frames operation was not affected
      because it uses project_id.
      
      Change-Id: Ie4aa6a21e3829223aab0f91d809e311e0f0318cb
      Story: 2009879
      Task: 44618
      (cherry picked from commit 32bf128b)
      efcd526b
  2. 13 Dec, 2021 1 commit
    • Rafael Weingärtner's avatar
      Fix quote API · 824e14f3
      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)
      824e14f3
  3. 20 Jul, 2021 2 commits
    • Michal Arbet's avatar
      Fix cloudkitty exception handling from gnocchiclient · 875cacdd
      Michal Arbet authored
      Probably due six removal, exception handling from gnocchiclient
      in cloudkitty is not working as expected.
      
      This patch fixing this issue.
      
      Bug described in storyboard:
      https://storyboard.openstack.org/#!/story/2008985
      
      Story: 2008985
      Task: 42635
      Change-Id: I387fee79d277daa4c739297f1734dad1eaf4cc94
      (cherry picked from commit 302f3c89)
      875cacdd
    • Rafael Weingärtner's avatar
      Fix broken lower-constraints job · 1e964bdf
      Rafael Weingärtner authored
      Despite no Flask update on stable branches, the lower-constraints job is
      broken similarly to when Flask was bumped to 2.0.1. The broken test
      cases were mocking the root object "flask.request".
      
      Instead of mocking the root object, we address the issue by mocking only
      the needed methods and attributes. This facilitates the understanding of
      the unit test, and also helps people to pin-point problems right away.
      
      Change-Id: I8703c7d3e69f35ef3e85234c27b4743242111f3d
      (cherry picked from commit 885c9f07)
      1e964bdf
  4. 05 May, 2021 1 commit
  5. 12 Apr, 2021 2 commits
  6. 22 Mar, 2021 2 commits
    • OpenStack Release Bot's avatar
      Update TOX_CONSTRAINTS_FILE for stable/wallaby · 93b9cd8e
      OpenStack Release Bot authored
      Update the URL to the upper-constraints file to point to the redirect
      rule on releases.openstack.org so that anyone working on this branch
      will switch to the correct upper-constraints list automatically when
      the requirements repository branches.
      
      Until the requirements repository has as stable/wallaby branch, tests will
      continue to use the upper-constraints list on master.
      
      Change-Id: Ie501d9e209309990a0ec4d7a4be6f306277cb2b4
      93b9cd8e
    • OpenStack Release Bot's avatar
      Update .gitreview for stable/wallaby · 9c3cf74e
      OpenStack Release Bot authored
      Change-Id: Idd698566c9eb4987deb5ad3fda6322081c69a967
      9c3cf74e
  7. 22 Feb, 2021 2 commits
  8. 18 Feb, 2021 1 commit
  9. 05 Feb, 2021 1 commit
    • Max Gautier's avatar
      Use recreate='auto' in storage_states migration · c248af3e
      Max Gautier authored
      Instead of forcing the table recreation, rely on alembic to do the right
      thing.
      
      When using PostgreSQL, using "recreate='always'" prevents the migration
      from happening correctly. It errors out with an exception and the table
      is not present when checking the database directly.
      
      Change-Id: I17f0e8c26b796885c6f7ca4fd5c53cd917c5f2ed
      Story: 2008306
      Task: 41193
      c248af3e
  10. 12 Jan, 2021 2 commits
    • liyou01's avatar
      remove unicode from code · 3487d3c4
      liyou01 authored
      Change-Id: I7670da5781eba5b201c6a1e261a891b18b764fdc
      3487d3c4
    • xuanyandong's avatar
      Remove six · 335aa966
      xuanyandong authored
      Replace the following items with Python 3 style code.
      
      - six.moves
      - six.add_metaclass
      - six.PY3
      - six.text_type
      - six.string_type
      - six.string_types
      - six.iteritems
      - six.integer_types
      
      Implements: blueprint six-removal
      Change-Id: Ifdb5ffad4203f14c58959b87338d0de34af76674
      335aa966
  11. 05 Jan, 2021 1 commit
  12. 23 Dec, 2020 1 commit
  13. 22 Dec, 2020 3 commits
  14. 14 Dec, 2020 2 commits
  15. 27 Nov, 2020 1 commit
  16. 20 Nov, 2020 1 commit
    • Rafael Weingärtner's avatar
      Create 'use_all_resource_revisions' for Gnocchi collector · abffd134
      Rafael Weingärtner authored
      This option is useful when using Gnocchi with the patch introduced in
      https://github.com/gnocchixyz/gnocchi/pull/1059. That patch can
      cause queries to return more than one entry per granularity (
      timespan), according to the revisions a resource has. This can be
      problematic when using the 'mutate' option of Cloudkitty. Therefore,
      we proposed this option to allow operators to discard all
      datapoints returned from Gnocchi, but the last one in the
      granularity queried by CloudKitty. The default behavior is
      maintained, which means, CloudKitty always use all of the data
      points returned.
      
      Change-Id: I051ae1fa3ef6ace9aa417f4ccdca929dab0274b2
      abffd134
  17. 05 Oct, 2020 3 commits
    • Zuul's avatar
      8c4ac009
    • Rafael Weingärtner's avatar
      Increase cost fields to 28 digits precision · 08497f0d
      Rafael Weingärtner authored
      When working with some type of resources, and for some specific billing
      requirements, we need to set costs that will use up to more than 8 digits on
      the right side of the comma. By default, the Python object Decimal support 28
      digits. Therefore, it makes sense for us to change the MySQL database schema
      of CloudKitty to use 28 digits as well on the right side. This will avoid
      confusion for people when using this feature.
      
      One can argue that using the `factor` option can also be a solution for that,
      but as I mentioned, for people used to Python, that can cause confusions
      because the MySQL DB is using a different precision than the one supported in
      Python for the data type we use to represent the `cost` field.
      
      Change-Id: Ifbf5b2515c7eaf470b48f2695d1e45eeab708a72
      08497f0d
    • Zuul's avatar
      Merge "Add a /healthcheck URL" · 1cac7f96
      Zuul authored
      1cac7f96
  18. 23 Sep, 2020 1 commit
  19. 22 Sep, 2020 2 commits
  20. 21 Sep, 2020 5 commits
  21. 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
  22. 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
  23. 17 Sep, 2020 1 commit
  24. 10 Sep, 2020 2 commits