Commit Graph

395 Commits

Author SHA1 Message Date
OpenStack Release Bot 03eab3cd4b Update master for stable/2024.1
Add file to the reno documentation build to show release notes for
stable/2024.1.

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

Sem-Ver: feature
Change-Id: If1758d046e5fe8217b36ca14eadb34c5191d7e62
2024-03-08 16:36:58 +00:00
Zuul dc6cf1392f Merge "Add functional tests for prometheus type alarms" 2024-03-07 11:55:05 +00:00
Zuul 5e4e310f06 Merge "Fix releasenotes build of yoga moved to unmaintained" 2024-03-07 11:24:56 +00:00
Dr. Jens Harbott c10ea92f05 Remove oslo.db test cap
oslo.db==15.0.0 has been released as part of the 2024.1 release and
further updates may appear during the lifetime of the release. Delete
the version cap from python-aodhclient in order to avoid installation
issues.

Change-Id: Ia52af213df2182f3d78ed9b0fcdf37672cefb84f
2024-03-03 17:06:56 +01:00
Jaromir Wysoglad 31fec512e3 Add functional tests for prometheus type alarms
Change-Id: I9c26c17b4f1a002cea847a185d5a6659d4e4927d
2024-02-29 15:11:05 +01:00
Zuul 3c705fa886 Merge "Bump hacking" 2024-02-21 07:18:33 +00:00
Takashi Kajinami 80c9d8608a Fix releasenotes build of yoga moved to unmaintained
The stable/yoga branch has been deleted and replaced with the
unmaintained/yoga branch, update the reno config accordingly.

Co-Authored-By: Dr. Jens Harbott <harbott@osism.tech>
Change-Id: I0f40243e2f48786959d9da5ea2948612a6ace1ab
2024-02-05 21:12:27 +09:00
Zuul 11c37391ea Merge "Move functional test to dsvm and remove pifpaf" 2024-01-30 15:54:17 +00:00
Takashi Kajinami f5cef98b0a Bump hacking
hacking 3.0.x is too old.

Change-Id: I274b6ef21061336a11070ccf5edfe11c990cbc28
2024-01-27 22:24:22 +09:00
Zuul c64013839f Merge "Bump upper version of db libraries in test requirements" 2024-01-09 05:23:30 +00:00
Jaromir Wysoglad 1d5b06ca39 Move functional test to dsvm and remove pifpaf
I moved the functional tests to be executed in a devstack VM.
This allows us to remove the use of pifpaf and it will enable
us to test prometheus based alarms here in the future.

Depends-On: https://review.opendev.org/c/openstack/aodh/+/904752

Change-Id: Ic6715fdeeacba6f2d74081ce04fb08783c92472b
2024-01-05 09:42:13 -05:00
Ghanshyam Mann 07971e372f 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: If7687bcb30e4664b709d9862799f1b8abfc3b0b3
2024-01-04 01:11:23 -08:00
Zuul 1822ce0b3d Merge "Update master for stable/2023.2" 2023-11-20 09:05:11 +00:00
Takashi Kajinami b4c14eab87 Bump upper version of db libraries in test requirements
... because the current versions conflict with the global u-c.

Also SALAlchemy-migrate is no longer needed since it was replaced by
alembic in aodh.

Change-Id: I64993a657507dfb7662a26789e15d272d26b79ab
2023-11-15 23:08:01 +09:00
Zuul b5ca22c201 Merge "Prometheus alarms" 2023-11-07 14:41:12 +00:00
Martin Mágr 0a4b26bb45 Prometheus alarms
This patch adds possibility to create alarms of type prometheus.

Co-authored-by: Jaromír Wysoglad <jwysogla@redhat.com>
Depends-On: If5140dfb9d9b41d7f1044f653701bed5e33cab62
Change-Id: If9bc3ace34a405c3ba00d646814cc5cbb6624a67
2023-11-07 13:41:29 +00:00
Martin Mágr 6dd743f315 Fix gate
Install gnocchi from master branch until the recent fixes
will be included in next release.

More info at:
https://github.com/gnocchixyz/gnocchi/pull/1354

Change-Id: If5140dfb9d9b41d7f1044f653701bed5e33cab62
2023-11-07 14:39:29 +01:00
OpenStack Release Bot d52f46913f 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: I80ee69b559a168986b0738778fcc2545dda60426
2023-09-07 09:48:49 +00:00
Ghanshyam Mann 6cf6c49331 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: I4342d71a0388ce55463b23d6197e30f16a231ff1
2023-09-06 17:07:46 -05:00
Stephen Finucane 8636fb0574 Move test requirements to tox.ini
They were listed in requirements.txt despite not being runtime
requirements of aodhclient. Correct this.

Change-Id: I2b3d81668fb6c4f5009f44e8083c94f6e8344702
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2023-04-17 15:32:03 +01:00
OpenStack Release Bot cd9935bef9 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: Iaecc9b0464bb78c296af45defaa9f80489f26e5d
2023-03-02 14:11:59 +00:00
Yadnesh Kulkarni 5a8598c436 Fix CI jobs(py38, py310) and upload of wheels package to PyPi
According to PEP440[1] python wheel with a direct references
in their metadata cannot be uploaded to PyPi(public index server). Move "aodh-master" tarball url to tox.ini.

Since this project doesn't consume upper-constraints, the latest
releases of a few packages are being installed which breaks
"gnocchi upgrade" when running py38 and py310 jobs. Avoid this
by pinning sqlalchemy and oslo.db packages.

[1] https://peps.python.org/pep-0440/#direct-references

Change-Id: I6c10d87c572f9503484fcb02f6f0a0188c9454b3
2023-02-20 17:38:48 +00:00
Emma Foley 02176deb25 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
* dock target uses requirements from requirements.txt as well as
  doc/requirements.txt
* skipsdist is not supported
* whitelist_externals has been removed in favour of allowlist_externals

* reno was added to doc/requirements.txt to fix the releasenotes target
* update setup.cfg to install aodh from tarball in the requirements
  The tarball wasn't being installed when specified in tox.ini, and the
  [extras] section in setup.cfg needed updating to support installing
  from a URL

[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: I4122d0d05f297f864318e80392e6c77fb2e9fdcf
2023-01-06 16:28:23 +00:00
OpenStack Release Bot 3214e4fbdd 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: I6baeba53067a037fa6cefb86c520a5c8774296c8
2022-09-14 09:24:43 +00:00
OpenStack Release Bot 53284afa07 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: I2a4f4d76b2a4fdf0d9385e116f61f97cb591f2b7
2022-09-06 12:35:38 +00:00
Zuul a1f47383a4 Merge "Remove six" 2022-06-21 18:12:52 +00:00
Hemanth Nakkina d656c19113 Unblock the gate and update python testing
This combines two commits in one

* Change aggregation method to mean

Commit 6061286c3133a4b85c4a72160960ecf6a82d02f8 handles
ignoring gnocchi api error when metric is not created.
However there are functional test failures when the
aggregation method is set to last for alarm type
gnocchi_aggregation_by_resources_threshold,

This fix changes the aggregration method to mean for
any create/update of alarm type
gnocchi_aggregation_by_resources_threshold.

* Update python testing as per zed cycle testing runtime

In Zed cycle, we have dropped the python 3.6/3.7[1] testing
and its support. Add release notes and update the python
classifier for the same.

[1] https://governance.openstack.org/tc/reference/runtimes/zed.html

Co-Authored-By: Ghanshyam Mann <gmann@ghanshyammann.com>

Depends-On: https://review.opendev.org/c/openstack/aodh/+/843764
Change-Id: Ia11f25fa8c36c6051a44994f2545e2b64a665593
Closes-Bug: #1974682
2022-06-10 05:53:23 +00:00
wangzihao b625d7b182 Remove six
Remove six.moves Replace the following items with Python 3 style code.
- six.moves.urllib
- six.iteritems
- six.PY2
- six.StringIO

Change-Id: If3fe0e534b092d436e46fca944c2955911e38197
2022-05-09 16:37:02 +00:00
OpenStack Release Bot 9c3c2c983e 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: I81088b3f4c6304aa12fa3a58cadb9d44b6d783a2
2022-03-03 10:39:15 +00:00
Zuul c1d7fe16ff Merge "Add Python 3 only classifier" 2022-02-08 15:11:10 +00:00
Takashi Kajinami c3c00002ef Add Python 3 only classifier
Python 2 support was removed during Ussuri cycle. This change adds
the classifier to clearly state that only Python 3 is supported.

Change-Id: I1f2788b7ffe8a28fdfbc5df0947f62c48449e8ad
2022-02-08 23:14:01 +09:00
Zuul 6651c4854d Merge "setup.cfg: Replace dashes by underscores" 2022-02-07 13:41:07 +00:00
Zuul 9153846ae2 Merge "Update master for stable/xena" 2022-02-07 08:26:24 +00:00
Takashi Kajinami 20f4372c00 setup.cfg: Replace dashes by underscores
Since setuptools v54.1.0[1], the parmeters with dash have been
deprecated in favor of the new parameters with underscore.

This change updates the parameters accordingly to avoid the warnings
like the example below.

  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: I5aa097573e323ec0c34cb9d621e85d5259195f21
2022-02-07 16:42:41 +09:00
Takashi Kajinami d978eb75d1 Add Python3 yoga unit tests
This is a 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

This patch is manually created, because the previous patch was not
merged before Xena release and release bot didn't create the automated
patch at that time.

Change-Id: I902f342800d6ea7dda3eff2a10f7c9dd54fa6151
2022-02-06 21:10:35 +09:00
Zuul f8f1b349ce Merge "Add Python3 xena unit tests" 2022-02-06 10:55:17 +00:00
rabi 3a36ed1774 Fix aodhclient for pyparse 3.0.6
Replaces removed pyparsing.operatorPrecedence().

Also removes broken ceilometer threshold tests as they
don't seem to be supported by aodh anymore.

Change-Id: Ifa82042fc15e6c167ed2e3a1923baa6ee61c6237
2021-11-26 04:03:28 +00:00
OpenStack Release Bot bc7a4834db 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: I26a2474826a83750f3b5546c0688cb282d780324
2021-09-17 16:43:29 +00:00
OpenStack Release Bot 60df9b4035 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: I55c5a8568ccd93e504120365d4d2f3107cf0aa06
2021-03-12 12:39:44 +00:00
OpenStack Release Bot e0bb4cfdc9 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: I04a5bf29398dc6661d5efa16a618aa629b9067d2
2021-03-12 12:39:37 +00:00
OpenStack Release Bot b747ae3161 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: Idafb008621da6fc157ed46261975dd31668882bb
2020-09-10 12:41:14 +00:00
OpenStack Release Bot ded3c8175b Update master for stable/victoria
Add file to the reno documentation build to show release notes for
stable/victoria.

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

Change-Id: I31ec5389c4ef98a22a3cb0a63c3c114f40ff8d69
Sem-Ver: feature
2020-09-10 12:41:12 +00:00
Dan Radez dff4f153d4 Don't use */* in accept header
The response is returned as text/plain in case of exception.
Pecan 1.4 uses accept header to decide the response content type.

This also affected gnocciclient and has been fixed there.
https://github.com/gnocchixyz/python-gnocchiclient/pull/110

Change-Id: Ia46259e960493c92a6701a165518ef87b03c5c2d
2020-08-24 09:03:24 -04:00
wu.chunyang 7153763b9e Remove translation sections from setup.cfg
These translation sections are not needed anymore, Babel can
generate translation files without them.

Remove babel.cfg as well, this is the default role and not needed
anymore.

Change-Id: Ib240beb075ef8db5ba659dae8487b85d59efb355
2020-06-16 00:32:55 +08:00
Hervé Beraud d8fb2d1030 Stop to use the __future__ module.
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: I0dada323a2a33afef8f5adcbbdda48919defb432
2020-06-02 20:45:54 +02:00
Andreas Jaeger d05a4306a3 Switch to newer openstackdocstheme and reno versions
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.

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.

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.

See also
http://lists.openstack.org/pipermail/openstack-discuss/2020-May/014971.html

Change-Id: I3b5249bee4f8452cc3a717dc93d2eca70002ce59
2020-05-22 17:17:07 +00:00
Zuul a7a5e8d1f2 Merge "Bump default tox env from py37 to py38" 2020-04-26 01:05:20 +00:00
Sean McGinnis 5d55e9b3a5
Bump default tox env from py37 to py38
Python 3.8 is now our highest level supported python runtime.
This updates the default tox target environments to swap out
py37 for py38 to make sure local development testing is
covering this version.

This does not impact zuul jobs in any way, nor prevent local
tests against py37. It just changes the default if none is
explicitly provided.

Change-Id: I46268c46a527e9189a380deb4dec9493e7e3fb26
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-04-24 10:25:53 -05:00
Sean McGinnis 03b51dfc9e
Add py38 package metadata
Now that we are running the Victoria tests that include a
voting py38, we can now add the Python 3.8 metadata to the
package information to reflect that support.

Change-Id: Ia132a9dc4f4ff8af7ca5186343bbd43cac989d8f
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-04-24 08:23:15 -05:00
Sean McGinnis 11577d6cf0 Use unittest.mock instead of third party mock
Now that we no longer support py27, we can use the standard library
unittest.mock module instead of the third party mock lib.

Change-Id: I7268264d3e2c98474604ec5f46298d36b7d32f18
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
Co-Authored-By: zhurong <aaronzhu1121@gmail.com>
2020-04-19 23:01:06 -07:00