* Update aodh from branch 'master'
to 7df6a7d1d6f7b32e57a604a0398acfc631c7bfd2
- Merge "Catch specific exception when validating time zone"
- Catch specific exception when validating time zone
... instead of the generic Exception to avoid hiding unexpected errors.
Change-Id: I5200e097bec2e0bd43f25a3c457391b10f913930
* Update aodh from branch 'master'
to 20d29d8a76847d923c38f182ae05070000cdf811
- Add job to test with SQLAlchemy master (2.x)
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
Change-Id: I7974f46bbecf56f208f172f3fe70da0f92c1a409
* Update aodh from branch 'master'
to 947c7b4ffddd693382c89e48db264d1cf508d96c
- db: Replace use of Engine.execute() method
Resolve the following RemovedIn20Warning warning:
The Engine.execute() method is considered legacy as of the 1.x
series of SQLAlchemy and will be removed in 2.0.
This also allows us to resolve the following RemovedIn20Warning warning:
The current statement is being autocommitted using implicit
autocommit, which will be removed in SQLAlchemy 2.0. Use the .begin()
method of Engine or Connection in order to use an explicit transaction
for DML and DDL statements.
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
Change-Id: I46f3277ea17e814e7b631750b2739f25e4395e22
* Update aodh from branch 'master'
to 9a66301aef981c4090f41cdfd585355647370565
- tests: Enable SQLAlchemy 2.0 deprecation warnings
Well, sort of. We enable them but immediately filter out the ones we're
actually seeing, the rationale being that we can address these in a
piecemeal fashion without the risk of introducing new issues.
There's a lot more to be done here. However, the work done in oslo.db
[1], nova [2], cinder [2] etc. should provide a guide for how to resolve
the outstanding issues.
We also take the opportunity to silence some rather annoying warnings
from webob and oslo_policy that are to be fixed later.
[1] https://review.opendev.org/q/topic:sqlalchemy-20+project:openstack/oslo.db
[2] https://review.opendev.org/q/topic:sqlalchemy-20+project:openstack/nova
[3] https://review.opendev.org/q/topic:sqlalchemy-20+project:openstack/cinder
Change-Id: I666cddbd2aef13c55118ea523b5e40bb924faf15
* Update aodh from branch 'master'
to 90076472acbe4ec499110339629201bf287b1e43
- Configure 'cache_ok' for TypeDecorator implementation
Both the JSONEncodedDict and TimestampUTC can be safely used in a cache
key. Set 'cache_ok' to indicate this. This resolves the following
warnings:
SAWarning: TypeDecorator TimestampUTC() will not produce a cache key
because the ``cache_ok`` attribute is not set to True. This can have
significant performance implications including some performance
degradations in comparison to prior SQLAlchemy versions. Set this
attribute to True if this type object's state is safe to use in a
cache key, or False to disable this warning. (Background on this error
at: https://sqlalche.me/e/14/cprf)
SAWarning: TypeDecorator JSONEncodedDict() will not produce a cache
key because the ``cache_ok`` attribute is not set to True. This can
have significant performance implications including some performance
degradations in comparison to prior SQLAlchemy versions. Set this
attribute to True if this type object's state is safe to use in a
cache ke y, or False to disable this warning. (Background on this
error at: https://sqlalche.me/e/14/cprf)
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
Change-Id: I589a0e378e155dcb181e6b1a9cca7aae4cad5349
* Update aodh from branch 'master'
to 3bd47b2b507eac1330e375d91a4e07d55aec0815
- db: Don't pass strings to 'Connection.execute'
Resolve the following RemovedIn20Warning warning:
Passing a string to Connection.execute() is deprecated and will be
removed in version 2.0. Use the text() construct, or the
Connection.exec_driver_sql() method to invoke a driver-level SQL
string.
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
Change-Id: Ic4518ca1a5aea94a72c9dc3e4393eb970b55c3dd
* Update aodh from branch 'master'
to 45e0eaaa61a607c34fe824b4f02ae4316485a623
- db: Remove use of autocommit
This is no longer necessary.
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
Change-Id: If34b4511dbbd95598f4370eb7b28585d153cf118
* Update aodh from branch 'master'
to b710d3fdad64d1be4e4638cc6717ca83a43f30e4
- db: Replace use of LegacyEngineFacade
We aren't passing context objects around, hence this looks more like
ironic's use of oslo.db than e.g. nova or cinder. Nothing complicated
though.
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
Change-Id: Ia0368cc128d495011776e80a27af04776e876fa9
* Update aodh from branch 'master'
to 8e7f091144b5ac56e72249ccba08673748445898
- Merge "Replace md5 with oslo version"
- Replace md5 with oslo version
This follows what was already done in the other projects like [1].
In FIPS mode, md5 is allowed only in non-security contexts. This
change disables the security context in the md5 call to determine
the hash for workload partitioning, because this usage does not
involve any security risks.
[1] 8027d907109b6b3c96623f9793aff752cec8ed12
Change-Id: I7d622a6e7d324a765760819c024295b57990f95c
* Update aodh from branch 'master'
to f1e87fadd4365492c6aef4107f9c5c45e3801982
- Ensure [telemetry_services] alarm_backend is set properly
... in PostgreSQL job.
Change-Id: I5c150eaac2f7bd885ac973d7527da4cba3cdf214
* Update aodh from branch 'master'
to e47e4ac7f9d6860a21bf79d6f0b94ad4482c448a
- Merge "tox: Drop envdir"
- tox: Drop envdir
tox now always recreates an env although the env is shared using envdir
options.
~~~
$ tox -e genpolicy
genpolicy: recreate env because env type changed from
{'name': 'genconfig', 'type': 'VirtualEnvRunner'} to
{'name': 'genpolicy', 'type': 'VirtualEnvRunner'}
~~~
According to the maintainer of tox, this functionality is not intended
to be supported.
https://github.com/tox-dev/tox/issues/425#issuecomment-1011944293
Change-Id: I8b4f588bfc38aa078bca243ee2ef38f84a92f62d
* Update aodh from branch 'master'
to e223ac14a7fd85cf83432c8f3c30c95bf9485c08
- Fix releasenotes build af yoga moved to unmaintained
The stable/yoga branch has been deleted and replaced with the
unmaintained/yoga branch, update the reno config accordingly.
Change-Id: I2c76cc06f371a284eb3f5d30523add0b7f77b157
* Update aodh from branch 'master'
to 3d49da3ce6a8043bf383ee7a90cfcc04cee4f06b
- Merge "Update python classifier in setup.cfg"
- Update python classifier in setup.cfg
As per the current release tested runtime, we test
python version from 3.8 to 3.11 so updating the
same in python classifier in setup.cfg
Change-Id: I3cd0d2e4ce5bffd6af3cce480a5de09860f5d3f7
* Update aodh from branch 'master'
to a61215e5beb4298638238fbde2463130ffe16865
- Merge "Dump loaded options during start up"
- Dump loaded options during start up
... so that operators can review effective values (except for secret
information such as password) from the log.
Change-Id: Ic094df537b5f7333be38c249cdec59a10d2e2660
* Update aodh from branch 'master'
to 16ea9ee1686de7164a39fb5b51a7ff47b24e84a0
- Add GITREPO for aodhclient
Calling git_clone_by_name without the GITREPO set doesn't work
correctly.
Change-Id: I449189431564b983f044c3a2bca2407f5a1a11c1
* Update aodh from branch 'master'
to d6416e32e40360ab6d2563ca35077a84028fedf0
- doc: Drop DJANGO_SETTINGS_MODULE environment
... because django is not relevant to aodh.
Change-Id: I23baadd4c69de2b1f0fac335ddc48bb5e3ec971f
* Update aodh from branch 'master'
to 59a43ef35a9a0058b182ee49180857ada9dba9a3
- Move functional tests to tempest_plugin
Remove pifpaf and dependencies to gnocchi for tox test runs.
Remove redundant gabbi tests.
Move wsme & query unit tests from fuctional to unit test folder where
they belong.
Remove integration tests which has been covered in the new tempest
cases in the depends on patch.
Remove run-tests.sh in favour of just calling stestr.
Depends-On: https://review.opendev.org/c/openstack/telemetry-tempest-plugin/+/901838
Change-Id: I5b33cba27dfcb2bbdf12c9bc6b28ecff9aa18d93
* Update aodh from branch 'master'
to 38495d63cf25db3b04cd7c5743dfd609d9549e18
- Merge "tests: Remove duplicate fixture config"
- tests: Remove duplicate fixture config
This is already done in the 'aodh.tests.functional.db.TestBase' base
class.
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
Change-Id: I33e40cdb00620dc67e214f181068d4a024aa1447
* Update aodh from branch 'master'
to 5f11352008234cf7fa7cf11d2553a2c70232276c
- Merge "setup: Remove unused dependencies"
- setup: Remove unused dependencies
None of oslo.context, debtcollector or testresources are used by aodh.
Remove them, along with the warnings about requirements order that no
longer applies with the "new" dependency resolver introduced in pip
20.3.
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
Change-Id: I37a1ffe9c9617262eb5e40fc3ad1b02277a11513
* Update aodh from branch 'master'
to c2f3f7c0c1ad5f97f98428a3e6dbc9edf5598e7b
- setup: Re-add Python version classifiers
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
Change-Id: I808e6166975882cf22279ee9045d572bc2bf70d2
* Update aodh from branch 'master'
to 9ebb2452c6a4de481f92ffcb02a4b9075d68eba0
- setup: Remove sqlalchemy extra dep
This is already listed in requirements.txt so it's not necessary to
repeat it here.
We also remove the Python version classifiers since they're noise:
'python_requires' does this for us in a machine-readable manner
nowadays.
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
Change-Id: Ia2c8a5792c175fb0a8762e61ff76383119251cdd
* Update aodh from branch 'master'
to 197440c3c80ca601bd94719dadb6e6d338589349
- Merge "Add Prometheus evaluator"
- Add Prometheus evaluator
This patch adds threshold evaluator for Prometheus metrics.
Alarms are based on Prometheus query only. The library
python-observabilityclient is used for querying Prometheus.
Co-authored-by: Jaromír Wysoglad <jwysogla@redhat.com>
Depends-On: Ie7477e0b11479449f7f13c7a784737ac70059964
Change-Id: I72e124cca4398b78f7ed12e1db3f66bdbfcb196e
* Update aodh from branch 'master'
to 99df2a40bf1b8f933747ad2f9ef93a50597b1299
- Merge "Remove python2 shebang from some files"
- Remove python2 shebang from some files
... because these are not actually necessary.
Change-Id: I11622a2a2dbf8ff7b5a32bfa3bea380be12bb1d0
* Update aodh from branch 'master'
to 76d367be5675983d9c5cdf03076cd34e8822cf44
- Fix py311 job
The py311 job has currently trouble locating mysqld.
On debian the mysqld binary is installed to /usr/sbin,
but on debian /usr/sbin isn't in PATH by default.
This patch appends /usr/sbin to PATH.
Change-Id: I89b2631f38e6a7292d6e58b4ddee6f7fdfc6fa9f
* Update aodh from branch 'master'
to ccf41cefef641281c35842099839d6dfa4db5832
- Merge "Fix bindep.txt for python 3.11 job(Debian Bookworm)"
- Fix bindep.txt for python 3.11 job(Debian Bookworm)
Python 3.11 job run on Debian Bookworm which does
not the mysql pkg for example, mariadb-server, libmysqlclient-dev
instead they have mariadb. Updating bindep.txt file
to adjust the pkgs as per Debian bookworm.
Change-Id: I29c476b4da2a0b0fda5c0d42df8470b801cc224c
* Update aodh from branch 'master'
to a9fbc1cd88730ad824a8ca6693adb12a97ae6481
- Merge "tox: Remove unnecessary configuration"
- tox: Remove unnecessary configuration
tox 4 is Python 3-only. We don't need to configure a basepython now.
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
Change-Id: I539cdad868fe930a4cf660ed23290b05294292e0
* Update aodh from branch 'master'
to c19cb61f46c1f0bda6c6494ad20e51141e23d052
- Merge "Use devstack helper for installation"
- Use devstack helper for installation
... to make sure the destination is selected according to some
environment variables in devstack.
Change-Id: I1de8dbf693a7109b4fcceea98eab9f0782f7bd4a
* Update aodh from branch 'master'
to b7f9d2b21d179a74d96c2b7abed4413ce7503e30
- Merge "Disable GLOBAL_VENV"
- Disable GLOBAL_VENV
Devstack recently introduced the functionality to use a single venv [1]
but some devstack plugins in telemetry project are not compatible with
this change.
This disables the option as a short term workaround.
[1] https://review.opendev.org/c/openstack/devstack/+/558930
Change-Id: Ic300c90a19ca348b8316e63190e60b67f6b73ad3
Story: 2010912
Related-Bug: 2031639
Related-Bug: 2034891
* Update aodh from branch 'master'
to e8194d9d9e26ffe97de887bd513c2b2bdc6853b8
- Merge "Update master for stable/2023.2"
- Update master for stable/2023.2
Add file to the reno documentation build to show release notes for
stable/2023.2.
Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/2023.2.
Sem-Ver: feature
Change-Id: I77620d621e4de842415b4fd5b5bc40863d84550d
* Update aodh from branch 'master'
to ab2909623627ff62af48756edf6e2acfe6653f84
- Revert "Fix docs job"
The actual cause is been solved here
Depends-on: https://review.opendev.org/c/openstack/requirements/+/896195
This reverts commit 2a2958bd6338ed8b98fa165309fa8b44d83ac974.
Change-Id: I29123962edc4b0e1423dbbf1b2705a4692adbf6c
* Update aodh from branch 'master'
to 2a2958bd6338ed8b98fa165309fa8b44d83ac974
- Fix docs job
aodh is relying on WSME, which is effectively no longer maintained.
We're waiting on a new release to fix compatibility with Sphinx 5.0
(!!!). While we wait for this, monkey patch the fix in and allow us to
unblock the gate.
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
Change-Id: Ia1fe3ac109973a3414911f3fa0ab4a3106a9e2b5
* Update aodh from branch 'master'
to 763bb401857e2501c92d7538a658df3aea38a07f
- Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html
Change-Id: I3a2ac4493ccf509dbce9ce05784754626d29a7e9
* Update aodh from branch 'master'
to 94dc273712415910b951113633fe8a76ca9f72f8
- Merge "Add check-requirements job"
- Add check-requirements job
This job is maintained by requirements team and ensures that
requirements and constraints have proper format and do not conflict
with guidelines.
Co-Authored-By: Erno Kuvaja <jokke@usr.fi>
Change-Id: I3dd8b1b1826473495725bb8cff2c42c6aa7b35f1
* Update aodh from branch 'master'
to 87c60bbf2f370884885e71fd746d4dc6a6acba99
- Merge "Remove "test" extra deps from setup.cfg"
- Remove "test" extra deps from setup.cfg
Utilizing the "test-requirements.txt" for the test requirements
and building tox 'testenv' with pifpaf and gnocchi rather than
assuming they are actual lib dependencies of Aodh tests.
Change-Id: Ia8bb7c1f17a8090c4932541ac3eed3a8a73f3252
* Update aodh from branch 'master'
to ab75b98bececae2e5ae21ad3494611c08ba38815
- Merge "Drop tenacity cap to align with global_requirements"
- Drop tenacity cap to align with global_requirements
The cap does not seem to be needed anymore.
Change-Id: Iaff14e4b004e8562b41f8c94e40c2ee595884f6e
* Update aodh from branch 'master'
to 1eb2a7ac8677617e5c8a31695206077e05f3c183
- [coordination] backend_url should be secret
The backend_url option can sometimes contain secrets.
For example when redis coordination backend is used and authentication
is enabled in redis, the plain redis password is put as an URL element.
[coordination]
backend_url=redis://:password@127.0.0.1:6379
Closes-Bug: #2012246
Change-Id: Ib918532d82c4633add7fad9c8441868cfd84001b
* Update aodh from branch 'master'
to bb36bb618e11ce463990c61a601ae85bbf5425c7
- Merge "Add oslo.policy.enforcer entry point"
- Add oslo.policy.enforcer entry point
this will allow various oslo.policy scripts like
oslopolicy-policy-generator to work with Aodh.
Change-Id: I5941fe03277368f789a0e07d823ececdf86ed37e
Story: 2010559
Task: 47247
* Update aodh from branch 'master'
to 63b1e664364ac5ab677e366a3cad6ca0f07aeba8
- Update master for stable/2023.1
Add file to the reno documentation build to show release notes for
stable/2023.1.
Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/2023.1.
Sem-Ver: feature
Change-Id: I8ed4c0e7ea4b0af8d74e3223d416a12c2cd549ca
* Update aodh from branch 'master'
to aa91a3b6141dd3177d581c5517ae9fe37e75ab4c
- Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html
Change-Id: Id64afa53b7c1ae059ecac2c6823840cf116fad53
* Update aodh from branch 'master'
to 9da66476230da8af542c3b8bbcaca5b3883ec658
- Complete the revert of "Support Ceilometer API"
This partly reverts commit d32ca244539650aaa2e6e85d438a79600e7cb701.
The rest of the revert is in 9b50734bf748fca1f34ea2e92d97c21807bae986.
This partial revert is because the changes to
aodh/api/controllers/v2/alarm_rules/composite.py were omitted in the
original revert.
Change-Id: I181380747bd9f613239de87fa931f75e7d97ff7d
* Update aodh from branch 'master'
to 84d59a198257ea6f3b839ca5d96cbaa74f2f3b76
- Make tox.ini tox 4.0 compatible
* use min version 4.2.5, for fixes [1][2][3]
* passenv fixed as space-separated list is not allowed anymore
* doc target uses requirements.txt as well as docs/requirements.txt
* skipsdist is not supported
* Add usedevelop = False so that aodh-api gets installed
Update setup.cfg: [files] -> [options]
[1] https://github.com/tox-dev/tox/issues/2754
[2] https://github.com/tox-dev/tox/pull/2824
[3] https://github.com/tox-dev/tox/pull/2828
Change-Id: I2422dc17e6c73ef346de80e57cdf61ef5d271d69
* Update aodh from branch 'master'
to 3a6480434e8ee4b6fa0af3fcf60c4b34ef7b09b1
- Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html
Change-Id: Iaa5665d93fb35f2a66fb9ae5205c4d27e9876602
* Update aodh from branch 'master'
to c05f35922ecaa39c28c288ecc6294a20b42c3922
- 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: Iaa33a4747bec7e31fe733fed86e7e992134b7744
* Update aodh from branch 'master'
to b315f181a81265bd3fbbd0c5b040abf64ad21a66
- Update master for stable/zed
Add file to the reno documentation build to show release notes for
stable/zed.
Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/zed.
Sem-Ver: feature
Change-Id: I351325cd4abd64e73ea529ee819a0310017b369c
* Update aodh from branch 'master'
to 1ead679b313fce766448fea73d424cd1c11b57c7
- Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html
Change-Id: I52110a5a2e58579249522ea4ff66afed29052e46
* Update aodh from branch 'master'
to 1484946d245f4e651b6d2b0537f58db54844b2d4
- Merge "Fix compatibility with oslo.db 12.1.0"
- Fix compatibility with oslo.db 12.1.0
oslo.db 12.1.0 has changed the default value for the 'autocommit'
parameter of 'LegacyEngineFacade' from 'True' to 'False'. This is a
necessary step to ensure compatibility with SQLAlchemy 2.0. However,
Aodh is currently relying on the autocommit behavior and needs changes
to explicitly manage sessions. Until that happens, we need to override
the default.
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
Change-Id: I129b54b06e1a5c3fafd2a03f295cc1cfd9c9e33c
* Update aodh from branch 'master'
to 654c2172ca9af84ac3c813e19725c5ae296ba80f
- Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html
Change-Id: Ic6cece0969bfd56b1106e235cf007ad6ac633635
* Update aodh from branch 'master'
to 165c96b51d64458d11abbc5e93cf8262cb2f5e63
- Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html
Change-Id: Ia5c47c57b01ed67f6438d0376164fc7d7e7ef299