Commit Graph

38 Commits

Author SHA1 Message Date
Matt Crees 2a0904db00 Set Elastic/OpenSearch jobs as voting in Zuul
Given these backends are now used in many production environments, they
can no longer be considered experimental.

Change-Id: I9e9f3023bf2a50807540e69b764600c0c5f995d5
2024-03-06 11:52:18 +00:00
Pedro Henrique 3114c3f979 Add grenade tests
Change-Id: I427d4b91cc5da9e9b2ffdb4239a5256ab44a1e06
2024-03-05 18:06:11 +01:00
Pedro Henrique 101a410739 Add support to InfluxDB v2 as storage backend
This patch allows CloudKitty to use InfluxDB v2 with Flux queries. This
type of query uses less CPU and RAM to be processed in the InfluxDB
backend.

Change-Id: I8ee3c92776aa69afbede353981a5fcd65dd7d099
Depends-On: https://review.opendev.org/c/openstack/requirements/+/895629
Story: 2010863
Task: 48539
2024-02-19 15:30:37 +01:00
Matt Crees 964c6704a2 Add OpenSearch as a v2 storage backend
To facilitate the switch from Elasticsearch to OpenSearch, the ES
backend has been duplicated and renamed where appropriate to OpenSearch.

The OpenSearch implementation was modified in places for compatibility
with OpenSearch 2.x, for example:

- remove mapping name from bulk API URL
- replace put_mapping by post_mapping

This will allow for the future removal of the Elasticsearch backend.

Change-Id: I88b0a30f66af13dad1bd75cde412d2880b4ead30
Co-Authored-By: Pierre Riteau <pierre@stackhpc.com>
2023-11-27 15:19:14 +01:00
OpenStack Release Bot d3c11ecd7b Switch to 2023.1 Python3 unit tests and generic template name
This is an automatically generated patch to ensure unit testing
is in place for all the of the tested runtimes for antelope. Also,
updating the template name to generic one.

See also the PTI in governance [1].

[1]: https://governance.openstack.org/tc/reference/project-testing-interface.html

Change-Id: I32e43aeea8767e5a3b4c30beafb03aa105fa23e6
2022-09-14 20:10:56 +00:00
Zuul 65a4768dce Merge "Drop lower-constraints.txt and its testing" 2022-06-01 11:46:21 +00:00
Ghanshyam Mann 937a03b171 Drop lower-constraints.txt and its testing
As discussed in TC PTG[1] and TC resolution[2], we are
dropping the lower-constraints.txt file and its testing.
We will keep lower bounds in the requirements.txt file but
with a note that these are not tested lower bounds and we
try our best to keep them updated.

[1] https://etherpad.opendev.org/p/tc-zed-ptg#L326
[2] https://governance.openstack.org/tc/resolutions/20220414-drop-lower-constraints.html#proposal

Change-Id: I775420251d6e47f60c4a266b4013be84a52378da
2022-06-01 07:34:18 +00:00
Pierre Riteau ed53054c18 [CI] Move queue setting to project level
Per [1].

[1] http://lists.zuul-ci.org/pipermail/zuul-discuss/2022-May/001801.html

Change-Id: I95f2ff931ff987a288d3db40606f7ab28fe7fe64
2022-06-01 07:34:05 +00:00
OpenStack Release Bot 34d121bf18 Add Python3 zed unit tests
This is an automatically generated patch to ensure unit testing
is in place for all the of the tested runtimes for zed.

See also the PTI in governance [1].

[1]: https://governance.openstack.org/tc/reference/project-testing-interface.html

Change-Id: I546ef7e492cf586684ea224604ce4d84d1d639c1
2022-03-08 12:26:33 +00:00
OpenStack Release Bot 9654373f12 Add Python3 yoga unit tests
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
2021-09-17 13:35:26 +00:00
OpenStack Release Bot 3bf565997f Add Python3 xena unit tests
This is an automatically generated patch to ensure unit testing
is in place for all the of the tested runtimes for xena.

See also the PTI in governance [1].

[1]: https://governance.openstack.org/tc/reference/project-testing-interface.html

Change-Id: Idb86bac9aa85267bac09ee78eb23e8686674488b
2021-03-22 09:13:00 +00:00
OpenStack Release Bot 3038104d3f Add Python3 wallaby unit tests
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
2020-09-21 22:16:38 +00:00
OpenStack Release Bot 107e2d664c Add Python3 victoria unit tests
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
2020-09-07 12:33:16 +00:00
Ghanshyam Mann afef05aca4 [ussuri][goal] Drop python 2.7 support and testing
OpenStack is dropping the py2.7 support in ussuri cycle.

Cloudkitty is ready with python 3 and ok to drop the
python 2.7 support.

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

Depends-On: https://review.opendev.org/#/c/693631/
Change-Id: I44ea5cfe479558969ccb3ca57f416511614626cc
2019-11-16 14:35:39 +00:00
pengyuesheng 06436aaaf4 Switch to Ussuri jobs
Change-Id: I81cad128e05a3276ef3f0b3f8580890682158416
2019-10-22 10:49:27 +08:00
Justin Ferrieu ebe06543f1 Update .zuul.yaml to run separate tempest tests for each API version
Change-Id: I51df67821d77482f3fcffae7b4120f0e5823418c
Story: 2006578
Task: 37108
2019-10-15 15:22:14 +00:00
Luka Peschke d252f59b6e Add support for Elasticsearch to devstack plugin
This adds support for the elasticsearch v2 storage driver to the devstack
plugin. Two non-voting check jobs running a the tempest test suite
against a devstack deployment using the elasticsearch driver have also been
added.

Story: 2006332
Task: 36078
Task: 36080
Change-Id: Ib531f83e2c8e5c2494b36af250d7630e32f49f40
2019-09-18 09:19:52 +02:00
Luka Peschke a2afbb450c Update tempest jobs
This updates the tempest jobs ran by Zuul. Work items:

* Renamed existing tempest jobs to be more explicit about which storage driver
  they're using.

* Introduced two new tempest jobs using the SQLAlchmey v1 storage driver,
  one with python2 and one with python3.

Change-Id: I6e30fa6a2dfab322d33fed7ec09cc4fcf9b73858
2019-08-28 17:14:14 +02:00
pengyuesheng 4acc592694 Add lower-constraints job
create a tox environment for running the unit tests against the lower
bounds of the dependencies.

Add openstack-tox-lower-constraints job to the zuul configuration.

See http://lists.openstack.org/pipermail/openstack-dev/2018-March/128352.html
for more details.

Change-Id: Iac8d78c191763121cc580c5cdb070b2673e39c99
2019-08-26 12:18:08 +00:00
Ghanshyam Mann 8869de5282 Define new 'cloudkitty-tempest-full-ipv6-only' job in gate
As part of Train community goal 'Support IPv6-Only Deployments and Testing'[1],
Tempest has defined the base job 'devstack-tempest-ipv6' (adding
in Depends-On patch) which will deploy services on IPv6.

This commit adds the new job 'cloudkitty-tempest-full-ipv6-only'
run on gate which is derived from 'devstack-tempest-ipv6'.

Verification structure will be:
- 'devstack-IPv6' deploy the service on IPv6
- 'devstack-tempest-ipv6' run will verify the IPv6-only setting and listen address
- 'cloudkitty-tempest-full-ipv6-only' will run the tests.

Story: #2005477
Task: #35884

Depends-On: https://review.opendev.org/#/c/671231/

[1] https://governance.openstack.org/tc/goals/train/ipv6-support-and-testing.html

Change-Id: I214b410137e825b529f0bdc34fda74ed1df091ab
2019-07-29 11:21:09 +00:00
pengyuesheng 5e716e1429 Use openstack-python3-train-jobs for python3 test runtime
Depends-On:https://review.opendev.org/#/c/641878/

Change-Id: I705b8054350ff6c001e4675ff32d694ca68da7be
2019-06-12 10:39:10 +08:00
OpenDev Sysadmins 99a3868be7 OpenDev Migration Patch
This commit was bulk generated and pushed by the OpenDev sysadmins
as a part of the Git hosting and code review systems migration
detailed in these mailing list posts:

http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003603.html
http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004920.html

Attempts have been made to correct repository namespaces and
hostnames based on simple pattern matching, but it's possible some
were updated incorrectly or missed entirely. Please reach out to us
via the contact information listed at https://opendev.org/ with any
questions you may have.
2019-04-19 19:29:58 +00:00
Ghanshyam Mann 19425bdfa1 Dropping the py35 testing
All the integration testing has been moved to
Bionic now[1] and py3.5 is not tested runtime for
Train or stable/stein[2].

As per below ML thread, we are good to drop the py35
testing now:
http://lists.openstack.org/pipermail/openstack-discuss/2019-April/005097.html

[1] http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004647.html
[2]
https://governance.openstack.org/tc/reference/runtimes/stein.html
https://governance.openstack.org/tc/reference/runtimes/train.html

Change-Id: I607d71e805a86098f8876ff35ad4443dc840740a
2019-04-14 19:18:28 +00:00
Hervé Beraud 60740282c9 Add bandit for security static analysis and fix potential security issues
This change adds a basic bandit config for cloudkitty. It can be invoked
by running the tox environment for bandit;
    tox -e bandit

These changes also fix potential security issues find during bandit checks.
- binding to all interface: remove useless host_ip option to avoid issue
- hash function issue: switch from sha1 to sha512
- use of exec: can't be removed for moment so using #nosec comment

Change-Id: Iae7d7604457345fe6d482cf48311c9b75fdde947
2019-03-25 16:26:05 +00:00
Luka Peschke 87ab314fcf Update the devstack plugin
This updates various parts of the devstack plugin:

* The fetcher is now configurable via the "CLOUDKITTY_FETCHER" variable and
  defaults to gnocchi (this allows the user to have immediate results).

* The "CLOUDKITTY_SERVICES" variable was removed as it is not used anymore.

* The storage backend does now default to "influxdb". If this storage backend is
  selected, influxdb is installed. This can be done on fedora and ubuntu. The
  storage backend to use in devstack can be configured through the
  ``CLOUDKITTY_STORAGE_BACKEND`` and ``CLOUDKITTY_STORAGE_VERSION`` variables.

* Some details about available variables have been added to the devstack
  documentation. Since the "admin/quick_deployment" section did only contain
  the devstack documentation, it has been removed for now.

* Given that the "ceilometer-low" archive-policy (default in devstack) only
  provides the "mean" aggregation method, it is now the aggregation method
  used in the default metrics.yml file.

Change-Id: I37452772de163b5fafc502917af870c86a3d38b2
2019-03-21 09:18:32 +00:00
Luka Peschke c51dddfaad Add a tempest job running against python3 devstack
Depends-On: https://review.openstack.org/#/c/634897/
Change-Id: Ibcc868b9e55fe1a9bf6e66edfd778bf72428c9c5
2019-02-05 11:12:32 +01:00
Luka Peschke d23781b84c Make devstack-tempest job voting
Since the zuul jobs have been converted to the new format (see commit de4a38e),
the devstack-tempest job is stable. In consequence, this makes this job voting.
Given that the "cloudkitty-devstack-install" job was the same as the
devstack-tempest job without the tempest run, it has been removed in order to
put less load on the gate.

Change-Id: I942f9069eedce033b0b087992f8b84c76149ff1a
2019-01-31 11:48:58 +01:00
Luka Peschke de4a38e421 Convert legacy zuul jobs to new format
This converts the "cloudkitty-install" and "cloudkitty-tempest-full" jobs
to the new zuul job format.

Change-Id: I976405ca59a4fc616fbddf9cecbea4de62fdfa29
2018-11-20 11:26:12 +01:00
Luka Peschke 01f702c479 Enable python3.7 testing jobs
Change-Id: I37ed25842cce4267a7c9309863c7d328102a69d2
2018-10-30 11:01:49 +01:00
Luka Peschke c417e5f6cb Use global-requirements for requirements
This updates cloudkitty's requirement and setup files in order to use
openstack/requirements for constraints. This will help to avoid dependency
conflicts when cloudkitty is deployed in an openstack context.

Work items:

* Updated requirements.txt, test-requirements.txt and setup.py with the
  `update-requirements` tool provided by openstack/requirements.

* Added a lower-constraints.txt file.

* Added the "check-requirements" zuul job template to the CI.

Change-Id: I5aab02374523be83a65c8b7f47f1df5e93b5a3d2
2018-10-17 07:29:48 +00:00
Andreas Jaeger 114d7ebaaf Use openstack-tox-cover template
Use openstack-tox-cover template, this runs the cover job as
non-voting in the check queue only.

Remove jobs and use template instead.

Fix cover environment.

Change-Id: I4fa5ac5d852544beffb020b30f2f428ebf56b78b
2018-09-07 14:34:01 +02:00
Andreas Jaeger 0613bb3497 Import legacy-cloudkitty-dsvm-install
Import job legacy-cloudkitty-dsvm-install and rename it.

Change-Id: I794463a056d76d384b754f6320e10fa6f85a2e0e
2018-09-05 19:38:37 +00:00
Doug Hellmann 34dfad43fa add python 3.6 unit test job
This is a mechanically generated patch to add a unit test job running
under Python 3.6 as part of the python3-first goal.

See the python3-first goal document for details:
https://governance.openstack.org/tc/goals/stein/python3-first.html

Change-Id: I478e430848ba2d0f3736584866be4bd0aad82c45
Story: #2002586
Task: #24289
2018-08-31 08:57:46 -04:00
Doug Hellmann 0e68005222 switch documentation job to new PTI
This is a mechanically generated patch to switch the documentation
jobs to use the new PTI versions of the jobs as part of the
python3-first goal.

See the python3-first goal document for details:
https://governance.openstack.org/tc/goals/stein/python3-first.html

Change-Id: I6232924e40edd580ab91109ed48b16bcb96b00e0
Story: #2002586
Task: #24289
2018-08-31 08:57:43 -04:00
Doug Hellmann 145eb07467 import zuul job settings from project-config
This is a mechanically generated patch to complete step 1 of moving
the zuul job settings out of project-config and into each project
repository.

Because there will be a separate patch on each branch, the branch
specifiers for branch-specific jobs have been removed.

Because this patch is generated by a script, there may be some
cosmetic changes to the layout of the YAML file(s) as the contents are
normalized.

See the python3-first goal document for details:
https://governance.openstack.org/tc/goals/stein/python3-first.html

Change-Id: I34e54c3776a15f656335d3108c8c179b7dcc7691
Story: #2002586
Task: #24289
2018-08-31 08:56:56 -04:00
James E. Blair b09709a17a Zuul: Remove project name
Zuul no longer requires the project-name for in-repo configuration.
Omitting it makes forking or renaming projects easier.

Change-Id: Ibafc8c1ca4335454845c4de43fcc5763050315c4
2018-01-28 17:26:08 -08:00
Andreas Jaeger 51d1dd4635 Don't run non-voting jobs in gate
The gate pipeline should only run voting jobs, non-voting ones get
completely ignored and just waste resources. Remove the non-voting job
from gate pipeline.

Change-Id: I598d0473289e88711ab02a8c4b6aad645ee68ae1
2017-12-16 22:48:10 +01:00
Luka Peschke 016fd7fa3a Add a tempest plugin gate job
This adds check and gate jobs using the new Tempest plugin to CloudKitty.
The jobs are non-voting for now.

Change-Id: I455eb7208fb97c140b94db9ae53f9da2cd87de82
2017-11-18 13:30:54 +01:00