- 25 Feb, 2022 1 commit
-
-
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)
-
- 13 Dec, 2021 1 commit
-
-
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)
-
- 20 Jul, 2021 2 commits
-
-
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)
-
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)
-
- 05 May, 2021 1 commit
-
-
Pierre Riteau authored
Change-Id: Ic92234325ebabb17a2f205550a461891b646503a (cherry picked from commit 43c95fec)
-
- 12 Apr, 2021 2 commits
-
-
Pierre Riteau authored
Change-Id: I29425f7195738023df30d3518880e12233b29ad3 (cherry picked from commit cda1aef7)
-
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)
-
- 22 Mar, 2021 2 commits
-
-
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
-
OpenStack Release Bot authored
Change-Id: Idd698566c9eb4987deb5ad3fda6322081c69a967
-
- 22 Feb, 2021 2 commits
- 18 Feb, 2021 1 commit
-
-
Zuul authored
-
- 05 Feb, 2021 1 commit
-
-
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
-
- 12 Jan, 2021 2 commits
-
-
liyou01 authored
Change-Id: I7670da5781eba5b201c6a1e261a891b18b764fdc
-
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
-
- 05 Jan, 2021 1 commit
-
-
Hervé Beraud authored
We need to specify doc requirements in doc/requirements.txt to avoid problems with the pip resolver [1] for the release team [2][3]. Removed specific doc requirements from test-requirements.txt. The problem here is that this repos haven't doc/requirements.txt file and by default in this case zuul will use the test-requirements.txt file to pull requirements [4]. This requirements file contains extra requirements like flake8 that collided with those allowed in our job environment and so the new pip resolver fails to install these requirements and the job exits in error. This project meet the conditions leading to the bug. [1] http://lists.openstack.org/pipermail/release-job-failures/2021-January/001500.html [2] http://lists.openstack.org/pipermail/openstack-discuss/2021-January/019611.html [3] http://lists.openstack.org/pipermail/openstack-discuss/2021-January/019612.html [4] https://opendev.org/zuul/zuul-jobs/src/branch/master/roles/ensure-sphinx/tasks/main.yaml#L36 Change-Id: I6bdfa9830a32ecf36e1931e1bb0afa366f1dfeb9
-
- 23 Dec, 2020 1 commit
-
-
Ghanshyam Mann authored
As per the community goal of migrating the policy file the format from JSON to YAML[1], we need to do two things: 1. Change the default value of '[oslo_policy] policy_file'' config option from 'policy.json' to 'policy.yaml' with upgrade checks. 2. Deprecate the JSON formatted policy file on the project side via warning in doc and releasenotes. Also replace policy.json to policy.yaml ref from doc. [1]https://governance.openstack.org/tc/goals/selected/wallaby/migrate-policy-format-from-json-to-yaml.html Change-Id: I608d3f55dfa9b6052f92c4fd13f2aae6d714e287
-
- 22 Dec, 2020 3 commits
- 14 Dec, 2020 2 commits
-
-
wu.shiming authored
UPPER_CONSTRAINTS_FILE is old name and deprecated -https://zuul-ci.org/docs/zuul-jobs/python-roles.html#rolevar-tox.tox_constraints_file This allows to use lower-constraints file as more readable way instead of UPPER_CONSTRAINTS_FILE=<lower-constraints file>. Depends-on: https://review.opendev.org/c/openstack/cloudkitty/+/706358 Change-Id: Ieddc84ca5fb13cd1936147a27e450626933f94bb
-
Andreas Jaeger authored
This repo has not been testing lower-constraints at all due to broken install_command. If you look at any lower-constraints run and compare the install python packages with lower-constraints, you see that those are completely different. This change removes install_command and updates deps in tox.ini to follow best practices (moving constraints into deps). It also updates lower-constraints to newer versions. Remove broken hacking test. Co-Authored-By:Justin Ferrieu <jferrieu@objectif-libre.com> Change-Id: I13daab9e53617266beff7053e50779d1f281802c
-
- 27 Nov, 2020 1 commit
-
-
wuchunyang authored
UPPER_CONSTRAINTS_FILE is old name and deprecated -https://zuul-ci.org/docs/zuul-jobs/python-roles.html#rolevar-tox.tox_constraints_file This allows to use lower-constraints file as more readable way instead of UPPER_CONSTRAINTS_FILE=<lower-constraints file>. Change-Id: I7b88b55bfceff177b0ed0586d105353f7159b171
-
- 20 Nov, 2020 1 commit
-
-
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
-
- 05 Oct, 2020 3 commits
-
-
Zuul authored
-
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
-
Zuul authored
-
- 23 Sep, 2020 1 commit
-
-
Pierre Riteau authored
Change-Id: I14ee38911fd1bda534d2e1baa4148dd7aa516686
-
- 22 Sep, 2020 2 commits
- 21 Sep, 2020 5 commits
-
-
OpenStack Release Bot authored
This is an automatically generated patch to ensure unit testing is in place for all the of the tested runtimes for wallaby. See also the PTI in governance [1]. [1]: https://governance.openstack.org/tc/reference/project-testing-interface.html Change-Id: I3e5b2f46c60113429e3e548bda6254b81874a986
-
OpenStack Release Bot authored
Add file to the reno documentation build to show release notes for stable/victoria. Use pbr instruction to increment the minor version number automatically so that master versions are higher than the versions on stable/victoria. Change-Id: Ib933e0496eb684e5cb987d3292e7aa834fedb309 Sem-Ver: feature
-
Mariusz Karpiarz authored
During initial setup it's useful to know if (and how many) billable tenants got loaded by the fetcher. Change-Id: Ib1fbfdde5535ff83f8a657b9542c117a882f802e
-
Zuul authored
-
Zuul authored
-
- 20 Sep, 2020 1 commit
-
-
zhangchun authored
in 'victoria' cycle, we should test py38 by default. Trivial change Change-Id: I80301bac54bb8654f58d4dfc0ff3de5899f3a314
-
- 18 Sep, 2020 1 commit
-
-
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
-
- 17 Sep, 2020 1 commit
-
-
wangzihao authored
assertItemsEqual was removed from Python's unittest.TestCase in Python 3.3 [1][2]. We have been able to use them since then, because testtools required unittest2, which still included it. With testtools removing Python 2.7 support [3][4], we will lose support for assertItemsEqual, so we should switch to use assertCountEqual. [1] - https://bugs.python.org/issue17866 [2] - https://hg.python.org/cpython/rev/d9921cb6e3cd [3] - testing-cabal/testtools#286 [4] - testing-cabal/testtools#277 Change-Id: Ib8c2acb373db791c0b74b8bea30d424dc44325a5
-
- 10 Sep, 2020 2 commits