- 25 Feb, 2022 3 commits
-
-
Zuul authored
-
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 -
Rafael Weingärtner authored
Depends-on: https://review.opendev.org/c/openstack/cloudkitty/+/777442 Depends-on: https://review.opendev.org/c/openstack/requirements/+/799315 Implements: https://review.opendev.org/c/openstack/cloudkitty-specs/+/791245 Change-Id: Idb0032eba17d83409344ab58153097ac70814e86
-
- 21 Feb, 2022 2 commits
-
-
Zuul authored
-
Adam Aquesbi authored
Put the futurist.ExecutorStatistic.average_runtime method in a try/except block, catching the ZeroDivisionError exception when no executions have occured Change-Id: Id25051bf2097c108cc79fd587cf549a2adfe15d5 Story: 2006672 Task: 36940 Co-Authored-By:Rafael Weingärtner <rafael@apache.org>
-
- 18 Feb, 2022 1 commit
-
-
Takashi Kajinami authored
- coordination_url is not driver URL but backend URL. Driver is determined according to the backend. - The parameter description should not use abbreviations, as these can confuse users. Change-Id: I16eb47e161ae826393d113082091c292d097fc03
-
- 07 Feb, 2022 1 commit
-
-
Pierre Riteau authored
Change-Id: I4a8e7c63c6f8df2fee40de324c9970e00d23c48b
-
- 10 Jan, 2022 2 commits
-
-
Zuul authored
-
Pierre Riteau authored
This commit adds support for adding optional prefix and/or suffix to Prometheus queries. For example, this can be used to perform vector matches between the collected metric and another one, to gather additional metadata. Change-Id: I725f0f5ad00b67f55bcacaf8447e050af3815c73
-
- 28 Dec, 2021 1 commit
-
-
Zuul authored
-
- 14 Dec, 2021 1 commit
-
-
Ghanshyam Mann authored
Yoga testing runtime[1] has been updated to add py39 testing as voting. Unit tests update are handled by the job template change in openstack-zuul-job - https://review.opendev.org/c/openstack/openstack-zuul-jobs/+/820286 this commit updates the classifier in setup.cfg file. [1] https://governance.openstack.org/tc/reference/runtimes/yoga.html Change-Id: Ia3ad0dc42445548d17b83397288042ae33961da3
-
- 13 Dec, 2021 5 commits
-
-
Zuul authored
-
Zuul authored
-
Zuul authored
-
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 -
Rafael Weingärtner authored
The goal of this patch is to introduce support for multi-valued parameters. For instance, for the `type` parameter, even though the code was treating it as a possible list of types, the API would not allow a user to send multiple types. This patch enables users to send filters with multiple values, which can be useful for filtering by project_ids for instance, or different types (metric types). Change-Id: I59397b33d014709eb976c78d517f009b8a2be4cf
-
- 10 Dec, 2021 1 commit
-
-
Pierre Riteau authored
Change-Id: If025c95e9bdf3b8d3abbe01c3c28ba505a390410
-
- 02 Dec, 2021 1 commit
-
-
Rafael Weingärtner authored
The V2 summary endpoint uses a quite unconventional data format in the response. Currently, the format is the following: ``` {"total": <number of elements in the response>, "results": [array of arrays of data], "columns": [array of columns]} ``` To process this, we need to find the index of a column in the column list, and with this index, we retrieve the data in the array of data that is found in the array of results. The proposal is to use the following format in the response. ``` {"total": <number of elements in the response>, "results": [array of objects/dictionary]} ``` With this new format, one does not need to consult the index of a column to retrieve data in one of the entries. We would only need to retrieve the data in the entry using its column name. Therefore, the coding feels more natural. To maintain compatibility, this new format would be only applied when an option is sent to CloudKitty via `response_format` option. Depends-on: https://review.opendev.org/c/openstack/cloudkitty/+/793973 Change-Id: I5869d527e6e4655c653b6852d6fb7bebc9d71520
-
- 29 Nov, 2021 3 commits
-
-
guest authored
This patch adds two options in fetcher_keystone to filter which tenants should be rated: ignore_disabled_tenants (Default=False) ignore_rating_role (Default=False) In our case we currently have 2k projects (growing) and we want to rate all active projects, so checking the role rating is useless and consumes resources for nothing. Besides, cloudkitty rates projects regardless if there are enabled or disabled which is also useless and consumes resources in our case. Change-Id: I6479d76c367dc4217bce4de9c3db41c4612f0397
-
Zuul authored
-
Zuul authored
-
- 06 Oct, 2021 1 commit
-
-
Rafael Weingärtner authored
This patch adds active status fields in the storage state table (cloudkitty_storage_states). A boolean column called "active", which indicates if the CloudKitty scope is active for billing, and another one called "scope_activation_toggle_date" (timestamp field) to store the latest timestamp when the scope moved between the active/deactivated states. Then, during CloudKitty processing, we check the "active" column. If the resource is not active, we ignore it during the processing. Moreover, we introduce an API to allow operators to set the "active" field. The "scope_activation_toggle_date" will not be exposed for operators to change it. It is updated automatically according to the changes in the "active" field. This patch adds a new HTTP method to "/v2/scope" endpoint. We then use "patch" HTTP method to allow operators to patch a storage scope. The API will require the scope_id, and then, it takes into account some of the fields we allow operators to change, and "active" field is one of them. Change-Id: Ia02c2eeb98021c60549cb8deab6f2e964e573f1e Implements: https://review.opendev.org/c/openstack/cloudkitty-specs/+/770928/
-
- 17 Sep, 2021 2 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 yoga. See also the PTI in governance [1]. [1]: https://governance.openstack.org/tc/reference/project-testing-interface.html Change-Id: I1aa702c1a115fbec0e1bce1a05d5b194000d34e1
-
OpenStack Release Bot authored
Add file to the reno documentation build to show release notes for stable/xena. Use pbr instruction to increment the minor version number automatically so that master versions are higher than the versions on stable/xena. Sem-Ver: feature Change-Id: I42f0a80b7eff0a3aaa42f188f7656391202dee29
-
- 06 Sep, 2021 1 commit
-
-
Thomas Goirand authored
It appears that the default metrics.yml needs force_granularity: 300 otherwise cloudkitty-processor will fail to process metrics from Gnocchi. As this is what at least I (in Debian) ship in packages, it would be nice to have a working default. Change-Id: I28b43d6131182252c0576d9323bbcdbfb1dbbd0a Story: 2008598 Task: 41771
-
- 18 Aug, 2021 1 commit
-
-
Zuul authored
-
- 09 Aug, 2021 1 commit
-
-
Zuul authored
-
- 26 Jul, 2021 1 commit
-
-
Pierre Riteau authored
This patch proposes a method for operators to customize the aggregation query executed against Gnocchi. By default, we use the following query: (aggregate RE_AGGREGATION_METHOD (metric METRIC_NAME AGGREGATION_METHOD)) Therefore, this option enables operators to take full advantage of operations available in Gnocchi, such as any arithmetic operations, logical operations and many others. When using a custom aggregation query, one can use the placeholders `RE_AGGREGATION_METHOD`, `AGGREGATION_METHOD`, and `METRIC_NAME`: they will be replaced at runtime by values from the metric configuration. Different use cases can be addressed with the use of custom queries such as handling RadosGW usage data trimming, which causes a decrease in the usage data values; Libvirt attach/detach of disks, migration of VMs, start/stop of VMs, which will zero the usage data that are gathered by Ceilometer compute, and many other use cases where one might desire a more complex operation to be executed on the data before CloudKitty rates it. Change-Id: I3419075d6df165409cb1375ad11a5b3f7faa7471
-
- 22 Jul, 2021 1 commit
-
-
Takashi Kajinami authored
ABCs in collections should be imported from collections.abc and direct import from collections is deprecated since Python 3.3. This replaces that deprecated usage mentioned in method descriptions. Change-Id: I6864c6d84407ed9512917266ccb06a51bab5714a
-
- 12 Jul, 2021 1 commit
-
-
Zuul authored
-
- 08 Jul, 2021 1 commit
-
-
Zuul authored
-
- 29 Jun, 2021 1 commit
-
-
wu.shiming authored
The patch bumps min version of tox to 3.18.0 in order to replace tox's whitelist_externals by allowlist_externals option: https://github.com/tox-dev/tox/blob/master/docs/changelog.rst#v3180-2020-07-23 Change-Id: I0cf1a50e43a18984d4f299a551c5bbef483d82ec
-
- 24 Jun, 2021 1 commit
-
-
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
-
- 23 Jun, 2021 1 commit
-
-
Rafael Weingärtner authored
Changes the `state` field in `cloudkitty_storage_states` table. The goal is to use a more descriptive and meaningful name. The proposed new column name is `last_processed_timestamp`. Depends-on: https://review.opendev.org/c/openstack/cloudkitty/+/793973 Depends-on: https://review.opendev.org/c/openstack/cloudkitty/+/797443 Change-Id: I9e29808dc5771a6455d3c564f080e8c2ec28dc72 Implements: https://review.opendev.org/c/openstack/cloudkitty-specs/+/771513
-
- 22 Jun, 2021 1 commit
-
-
Rafael Weingärtner authored
SQLachemy was upgraded via the `requirements` projects commit (https://github.com/openstack/requirements/commit/dc86260b283dedc3076d7873f5f031f45e3e3671). That upgrade broke some code. Therefore, this patch intends to fix the code that was broken due to a method removal and also due to a change in `create_constraint` for Enum types, which was defaulted to `False` in version 1.4.0 Change-Id: Ib36a7275ce8ff30aa19cbde521fd37f60bd00ff8
-
- 18 Jun, 2021 1 commit
-
-
Zuul authored
-
- 07 Jun, 2021 2 commits
-
-
Pierre Riteau authored
Setuptools v54.1.0 introduces a warning that the use of dash-separated options in 'setup.cfg' will not be supported in a future version [1]. Get ahead of the issue by replacing the dashes with underscores. Without this, we see 'UserWarning' messages like the following on new enough versions of setuptools: UserWarning: Usage of dash-separated 'description-file' will not be supported in future versions. Please use the underscore name 'description_file' instead [1] https://github.com/pypa/setuptools/commit/a2e9ae4cb Change-Id: I5e5e86149c0ea6be5553bf8911dfc729d0ec57bb
-
Rafael Weingärtner authored
Flask has been updated in the requirements projects from OpenStack [1]. This has broken some test cases that 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. [1] https://review.opendev.org/c/openstack/requirements/+/793023 Change-Id: I8703c7d3e69f35ef3e85234c27b4743242111f3d
-
- 31 May, 2021 1 commit
-
-
Pierre Riteau authored
Change-Id: I4eb7b6d3daa15d57fe9e44a53cfc40e86c953172
-
- 19 May, 2021 1 commit
-
-
Lars Wiegman authored
Bug report: https://storyboard.openstack.org/#!/story/2008404 Change-Id: I00c985f0a20f3d38a40155a38ae832f38abf70aa
-