5025 Commits

Author SHA1 Message Date
Stephen Finucane
63c3466f29 Migrate to stestr
This is effectively os-testr but maintained.

Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
Change-Id: I97183318f715b03f31145fa3d0f00bb7bc8a0c82
2022-03-23 10:23:00 +00:00
11eb43d68e 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: I09d998595f20ce36c61972e6f8b0f2e9dac68def
2022-03-08 12:05:31 +00:00
190c9e1d21 Update master for stable/yoga
Add file to the reno documentation build to show release notes for
stable/yoga.

Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/yoga.

Sem-Ver: feature
Change-Id: I8b83bde8f1a2eda9b4ab551fe77ff9dbdb891f88
2022-03-08 12:05:29 +00:00
James Page
74eadfbd58 gnocchi: Use Dynamic Aggregates API
Switch to using the Dynamic Aggregates API as the Metric Aggregation
API is deprecated.

When using the Dynamic Aggregates API, any aggregation using rates
can use the underlying base measures for the aggregation rather than
the rate, for example:

    (aggregation rate:mean (metric cpu mean))

The tuple of data for each record returned via this API is encapsulated
with information about the aggregation used so adapt the sanitization
function to deal with this and the formatting of the metrics measures
API as well.

Change-Id: I4f631d224404460138f4050b1b981d577b592544
Closes-Bug: 1946793
14.0.0 14.0.0.0rc1
2022-02-18 12:40:39 +00:00
Takashi Kajinami
8ac7c65cff Load api-paste.ini from configuration directories first
The api-paste.ini file defines WSGI definition of API. This file is
regarded as one configuration file and sometimes users need to modify
the file, for example to enable an additional middleware.

However currently aodh-api by default expects the file is located in
the aodh source directory and users should set the [api] paste_config
parameter in addition to copy and modify the file.

This change makes the aodh-api process search the api-paste.ini file
from configuration directories automatically, so that users can more
easily customize the file by putting the modified file in /etc/aodh
(or any other config directories).

If the paste_config parameter is defined as a full path then aodh-api
directly loads the file from the specified path. If the file is not
found then the default file in the aodh source directory is used.

Change-Id: I4a6194fbf6a5317a523d75e3fb6bd2fd055f5100
2021-12-01 10:50:31 +09:00
Zuul
6bbf61a67b Merge "Rename [coordination] heartbeat to hearbeat_interval" 2021-10-19 21:18:30 +00:00
Takashi Kajinami
1948461d95 Rename [coordination] heartbeat to hearbeat_interval
... so that users can more easily understnad the parameter defines
interval. This makes the parameter name consistent with other services
like designate or mistral, which provides the similar functionality
using the same tooz library.

Change-Id: I53cf905d7f643a3dc41f1121404abe3c9f0e61ac
2021-10-14 15:13:52 +09:00
Zuul
cf1e686645 Merge "Run TripleO jobs on CentOS8 instead of CentOS7" 2021-09-29 08:32:01 +00:00
Zuul
9fa5ad045b Merge "Introduce Guru Meditation Reports into Aodh" 2021-09-29 07:57:26 +00:00
OpenStack Proposal Bot
59b06e06a1 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I81c4a068812e9a169b2c8d6f8a87ff52f0100405
2021-09-19 06:27:34 +00:00
0d6c43811d 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: I1bdb4ec028606f76836a0adca2ad1024806978a3
2021-09-15 01:59:50 +00:00
22c5722c04 Update master for stable/xena
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: I5276b167fcd3cb277da309a017e1d502dea88b02
2021-09-15 01:59:48 +00:00
Bhagyashri Shewale
d72944233f Run TripleO jobs on CentOS8 instead of CentOS7
As we are cleaning up the c7 jobs and obselete featuresets [1].
This change replaces usage of CentOS7 in TripleO jobs by CentOS8.

[1]: https://review.opendev.org/q/topic:%22cleanup_featuresets%22+(status:open%20OR%20status:merged)

Change-Id: I6dac8447e50aabb97bdec65c61f46b9bc78002b7
2021-09-14 12:31:32 +00:00
Zuul
e61fba4a0b Merge "Add Python3 xena unit tests" 13.0.0 13.0.0.0rc1 2021-08-31 01:51:59 +00:00
Zuul
85882a3fc2 Merge "Revert "Support Ceilometer API"" 2021-08-26 10:20:15 +00:00
Zuul
f2919bc93c Merge "Changed minversion in tox to 3.18.0" 2021-08-26 08:18:47 +00:00
Chris Sibbitt
a236b07d3d Adding FIPS job
Change-Id: I4cfcb3e12012075eb56c6f69200825f0b597803f
Depends-On: I05713ed77b79e583ad1073ff80ccd7a031e34c26
2021-08-18 04:31:06 +00:00
Takashi Kajinami
0416ccec8c Introduce Guru Meditation Reports into Aodh
This change introduces support for Guru Meditation Report(GMR) into
Aodh, using oslo.reportis library.
With this change, each service prints GMR to stderr or file when
the service receives SIGUSR1.

The same was introduced into Cilometer a long ago[1], and this change
is based on the change made in Ceilometer.
 [1] https://review.opendev.org/c/openstack/ceilometer/+/196369

Change-Id: I7f67acd98c2089bb248d3249159719a3979d27e7
2021-08-15 03:23:23 +09:00
Zuul
10383f4d5b Merge "Fix oslo policy DeprecatedRule warnings" 2021-07-14 07:34:12 +00:00
Zuul
3c0e8410a6 Merge "Suppress policy default change warnings" 2021-07-14 07:25:29 +00:00
Zuul
71c5171488 Merge "Merge notifier opts" 2021-07-09 16:28:45 +00:00
Matthias Runge
7a166e05f7 Replace oslo_utils.fnmatch with fnmatch
The oslo_utils.fnmatch module was added to solve an issue in py2.7 but
it is no longer required because py2.7 is no longer supported.
The module was deprecated since oslo.utils 4.9.1[1] and the stdlib's
fnmatch module should be used instead.

SQLAlchemy url is now immutable
Use URL.set to update

Co-authored by: Takashi Kajinami
[1] 4c893c92f551c9dd2a7cfbe7ae8171ad8139df0b

Change-Id: I59c4d93a5914b8e14f7ef93bcaff8d1caaf5e75a
2021-07-09 12:47:17 +02:00
Ghanshyam Mann
082f6cf0ae Fix oslo policy DeprecatedRule warnings
Since 3.7.0, oslo policy started the DeprecationWarning[1] if
deprecated_reason and deprecated_since param are not passed
in DeprecatedRule or they are passed in RuleDefault object.

These warnings are logged for every test which increase the
log size and sometime can full the log buffer and fail the
job.

[1] https://github.com/openstack/oslo.policy/blob/3.7.0/oslo_policy/policy.py#L1538

Change-Id: I8b9f0611364f6857b86fc800c89fe403672af975
2021-07-06 16:52:33 +00:00
Ghanshyam Mann
f975f56fdc Suppress policy default change warnings
As part of the new policy, all of the defaults for
policies were changed and warnings about it are being emitted
constantly in the logs. We can suppress these for now until we are
enforcing new defaults [1].

[1]https://docs.openstack.org/nova/latest/configuration/config.html#oslo_policy.enforce_new_defaults

Change-Id: Ie6e33d80469b3f32459f10c59b32cad4b548cb86
2021-07-06 11:51:55 -05:00
wangzihao
42c078247b Changed minversion in tox to 3.18.0
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: I0968c6740ccb96d93527ba368eebe3e56e4e043f
2021-06-29 10:10:24 +08:00
Zuul
8404e9ac74 Merge "Bugs are in launchpad" 2021-06-23 08:10:17 +00:00
Matthias Runge
434ee46815 Bugs are in launchpad
Update the README to point to oftc, and also update the
bug location.

Change-Id: I93fbdc4b8c35d4e90607064813ebccb632f73886
2021-06-18 12:17:53 +02:00
Zuul
71f4d02715 Merge "Deprecate unused [coordination] check_watchers" 2021-06-02 17:11:53 +00:00
yangyawei
777ccfa3ce Switch testing to Xena testing runtime
Upating the tetsing template to Xena testing runtime:
https://governance.openstack.org/tc/reference/runtimes/xena.html

Change-Id: I7db8a4cf3617c780547157af20fab2490525994d
2021-05-28 16:47:32 +08:00
Takashi Kajinami
082d67f596 Deprecate unused [coordination] check_watchers
The [coordination] check_watchers is no longer used in any
implementation. This change deprecates the parameter so that we can
remove it in a future release.

Closes-Bug: #1929178
Change-Id: I973eb15433e66c75366666940a841e5a579bf0e8
2021-05-21 19:51:34 +09:00
Matthias Runge
95d616dc90 sqlalchemy is used but not declared
in requirements.

It is used e.g. in
aodh/storage/sqlalchemy/models.py

Change-Id: I3677fddb70b4b2b0452e37a2a512997e7e4b5f0c
2021-05-19 11:15:14 +02:00
Zuul
f035533291 Merge "Limit number of records deleted by aodh-expirer" 2021-05-17 07:37:36 +00:00
Zuul
352a6b4b42 Merge "setup.cfg: Replace dashes with underscores" 2021-05-12 07:02:44 +00:00
wu.shiming
4f6ac78059 setup.cfg: Replace dashes with underscores
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: I62cedb56f25f1f409ed24fa3a1b1a3dbc8758e74
2021-05-12 09:12:31 +08:00
Takashi Kajinami
02179e0c32 Limit number of records deleted by aodh-expirer
This patch introduces the same functionality as is implemented in panko
recently[1], and allows us to limit the number of alarm histories
deleted in a single iteration, to avoid the query takes a long time and
if there are many expired records.

[1] Icf83ffe089301b3782273923f18efd4d209131c2

Change-Id: Ie1d1bbb911cf56a56f712291f61ffaabfa97422f
2021-05-06 21:02:35 +09:00
Takashi Kajinami
0b01d7b728 Merge notifier opts
The notifier group are duplicated when defining options. This is not
affecting functionality but make the code less readable. Let's merge
these tow using itertools as is done for other groups.

Change-Id: Icd8389c771363235062807c31a866d2960726ec6
2021-04-23 22:50:56 +09:00
songwenping
ce0954c8e7 Use py3 as the default runtime for tox
Moving on py3 as the default runtime for tox to avoid to update this at
each new cycle.

Wallaby support officially the following runtimes [1]:
- Python 3.6
- Python 3.8

During Victoria Python 3.7 was used as the default runtime [2] however this
version isn't longer officially supported.

[1] https://governance.openstack.org/tc/reference/runtimes/wallaby.html#python-runtimes-for-wallaby
[2] https://governance.openstack.org/tc/reference/runtimes/victoria.html#python-runtimes-for-victoria

Change-Id: Id4acb623ef216249385e8020ca9ca1ec68e987a8
2021-04-20 02:47:08 +00:00
Zuul
dcb97668bf Merge "Use python 3.8 for tox" 2021-04-07 05:59:01 +00:00
OpenStack Proposal Bot
7448ac71e4 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I0d7b7b4005960cd09a4a348563b7c3c7d30495f3
2021-04-02 06:15:40 +00:00
Zuul
21453ee678 Merge "Cap tenacity < 7.0.0" 2021-03-25 16:49:26 +00:00
Matthias Runge
9cf69d72d2 Cap tenacity < 7.0.0
https://github.com/jd/tenacity/pull/274/files removed code
which was still in use.

Change-Id: Ib7c0be686aaf542a483a426c1966ad067a5fe3eb
2021-03-22 11:43:03 +01:00
f483f6c47a 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: I816613b861a084fb92ba2e6e4f72e7830f11c1e5
2021-03-22 09:28:45 +00:00
6fc880f6b3 Update master for stable/wallaby
Add file to the reno documentation build to show release notes for
stable/wallaby.

Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/wallaby.

Sem-Ver: feature
Change-Id: I0a6dce64c17477aa49de33e6441ca91feae9e02f
2021-03-22 09:28:41 +00:00
Matthias Runge
d587a9e56c Use python 3.8 for tox
Change-Id: I2fd374514fd6bf3be02191b7a23b50b6dec93e08
2021-03-04 22:33:34 +01:00
Matthias Runge
9b50734bf7 Revert "Support Ceilometer API"
ceilometerclient is deprecated and not supported since 2017.

This reverts commit d32ca244539650aaa2e6e85d438a79600e7cb701.

Change-Id: Id5bac2f317deceefe625d91f0dc91b071a6f8037
2021-03-01 18:21:09 +01:00
OpenStack Proposal Bot
418d17c34b Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: If08de0aebd23e647ae951141978679a491803c39
wallaby-em 12.0.0 12.0.0.0rc1
2021-01-30 06:10:34 +00:00
Zuul
a584056c0e Merge "Implement secure RBAC for alarms and quota policies" 2021-01-18 17:23:24 +00:00
OpenStack Proposal Bot
6635dc0ca6 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I60919c81031f4680bce93333d584a84587662c7e
2021-01-14 06:12:01 +00:00
Zuul
7ad4ae15c3 Merge "[goal] Deprecate the JSON formatted policy file" 2021-01-13 20:12:43 +00:00
Zuul
3115c71a36 Merge "Update TOX_CONSTRAINTS_FILE" 2021-01-12 14:02:31 +00:00