- 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)
-
- 07 May, 2021 2 commits
-
-
Zuul authored
-
Pierre Riteau authored
Change-Id: Ic92234325ebabb17a2f205550a461891b646503a (cherry picked from commit 43c95fec)
-
- 15 Apr, 2021 1 commit
-
-
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)
-
- 12 Apr, 2021 1 commit
-
-
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
-
- 23 Sep, 2020 1 commit
-
-
Pierre Riteau authored
Change-Id: I14ee38911fd1bda534d2e1baa4148dd7aa516686 (cherry picked from commit 2ad94f80)
-
- 21 Sep, 2020 4 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/victoria branch, tests will continue to use the upper-constraints list on master. Change-Id: Ic447691b08020ac24657c6a154f3945aef9cc13c
-
OpenStack Release Bot authored
Change-Id: I1f3eb7484127d3298e6264430b6f3c10ebfd312b
-
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 4 commits
-
-
Zuul authored
-
Zuul authored
-
Zuul authored
-
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
-
- 09 Sep, 2020 3 commits
-
-
Quentin Anglade authored
This adds a Monasca fetcher for CloudKitty. Change-Id: I0bf5af21987878d1e078021b0a9fbd0cc0a37b9d Story: 2006675 Task: 36949
-
Ning Yao authored
Metadata defined in metrics.yml may be non-existent in data['metric'] from Prometheus results. Deal with the exception similarly to the Gnocchi collector. Change-Id: I02ee50793f3c46050250ca1c4094dd4ef0736ca6 Signed-off-by:Ning Yao <yaoning@unitedstack.com> Story: 2008123 Task: 40845
-
Ning Yao authored
The Prometheus collector was ignoring the mutate definition from metrics.yml, which may produce wrong resource ratings. Change-Id: I662f6ac798c20ca43028b3807fa03aacfdcf252b Signed-off-by:Ning Yao <yaoning@unitedstack.com> Story: 2008122 Task: 40844
-
- 07 Sep, 2020 8 commits
-
-
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. Set openstackdocs_pdf_link to link to PDF file. Note that the link to the published document only works on docs.openstack.org where the PDF file is placed in the top-level html directory. The site-preview places the PDF in a pdf directory. Disable openstackdocs_auto_name to use 'project' variable 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. openstackdocstheme renames some variables, so follow the renames before the next release removes them. A couple of variables are also not needed anymore, remove them. See also http://lists.openstack.org/pipermail/openstack-discuss/2020-May/014971.html Change-Id: I6be1174686cb1d8f11e8cb4be58c0e739bf0f931
-
Zuul authored
-
Zuul authored
-
Zuul authored
-
Zuul authored
-
Zuul authored
-
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 victoria. See also the PTI in governance [1]. [1]: https://governance.openstack.org/tc/reference/project-testing-interface.html Change-Id: I27d8a1a20497b15f0d33d340d9a2787e63c88fec
-
kangyufei authored
Change-Id: Ibf2290599ac9a0839b01e5df9a2b9a892ec0afe7
-
- 24 Aug, 2020 1 commit
-
-
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:Sean McGinnis <sean.mcginnis@gmail.com>
-
- 21 Aug, 2020 1 commit
-
-
Rafael Weingärtner authored
As discussed in https://review.opendev.org/#/c/742477/, this patch replaces the use of `tz.UTC` with `dateutil.tz.tzutc()` Also add python-dateutil to requirements.txt, using the same minimum version as several other OpenStack projects, including nova. Change-Id: I4da9e8854a571058e48c2f51c1d340bc135cfe2b
-
- 19 Aug, 2020 1 commit
-
-
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
-
- 17 Aug, 2020 2 commits
- 13 Aug, 2020 3 commits
-
-
Zuul authored
-
Hervé Beraud authored
The __future__ module [1] was used in this context to ensure compatibility between python 2 and python 3. We previously dropped the support of python 2.7 [2] and now we only support python 3 so we don't need to continue to use this module and the imports listed below. Imports commonly used and their related PEPs: - `division` is related to PEP 238 [3] - `print_function` is related to PEP 3105 [4] - `unicode_literals` is related to PEP 3112 [5] - `with_statement` is related to PEP 343 [6] - `absolute_import` is related to PEP 328 [7] [1] https://docs.python.org/3/library/__future__.html [2] https://governance.openstack.org/tc/goals/selected/ussuri/drop-py27.html [3] https://www.python.org/dev/peps/pep-0238 [4] https://www.python.org/dev/peps/pep-3105 [5] https://www.python.org/dev/peps/pep-3112 [6] https://www.python.org/dev/peps/pep-0343 [7] https://www.python.org/dev/peps/pep-0328 Change-Id: I74f1cce5430d81aa7dad08920baa9d771271f871
-
Sean McGinnis authored
We can now use the standard library mock library instead of the third party one previously needed for py27 compatibility. Change-Id: Ia8e87cd6a25621a97c876de5422d0c9d0c8dd751 Signed-off-by:Sean McGinnis <sean.mcginnis@gmail.com>
-
- 24 Jun, 2020 2 commits
-
-
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
-
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:Sean McGinnis <sean.mcginnis@gmail.com>
-
- 04 Mar, 2020 1 commit
-
-
Abraham Arce authored
The collector is configurable via the CLOUDKITTY_COLLECTOR variable, no CLOUDKITTY_GNOCCHI is available. Change-Id: If433bb26e64747e887af3b191cfae36f31390809 Signed-off-by:Abraham Arce <abraham.arce.moreno@intel.com>
-
- 24 Feb, 2020 1 commit
-
-
Andreas Jaeger authored
OpenStack is dropping the py2.7 support in ussuri cycle. Complete discussion & schedule can be found in - http://lists.openstack.org/pipermail/openstack-discuss/2019-October/010142.html - https://etherpad.openstack.org/p/drop-python2-support Ussuri Communtiy-wide goal: https://governance.openstack.org/tc/goals/selected/ussuri/drop-py27.html this removes some cruft that can be removed now: * cruft in setup.cfg and setup.py * tox.ini: Add ignore_basepython_conflict and increase minversion for that * Python 2/3 specific requirements, the repo is Python 3 only. Change-Id: Iae68e58c82a180eb771bef00a3f44fd28abe5fae
-