Commit Graph

307 Commits

Author SHA1 Message Date
Ghanshyam Mann 64b937b882 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
2024-01-04 01:09:23 -08:00
Stephen Finucane c2f3f7c0c1 setup: Re-add Python version classifiers
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
Change-Id: I808e6166975882cf22279ee9045d572bc2bf70d2
2023-11-16 14:53:59 +00:00
Stephen Finucane 9ebb2452c6 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
2023-11-16 14:52:08 +00:00
Martin Mágr f932265290 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
2023-11-07 06:22:28 +00:00
Dmitriy Rabotyagov 800402e7ad 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
2023-05-10 13:31:18 +01:00
Erno Kuvaja 7ae3fd78c3 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
2023-05-10 13:30:51 +01:00
Pavlo Shchelokovskyy 9d9840023e 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
2023-02-02 15:55:14 +00:00
Emma Foley 84d59a1982 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
2023-01-17 17:03:41 +00:00
Takashi Kajinami 48ff3fc4b8 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

Change-Id: I94a68a6210e63831da6ec1ff165300dd9648bb43
Co-Authored-By: Ghanshyam Mann <gmann@ghanshyammann.com>
2022-06-08 01:00:06 +09:00
Takashi Kajinami dbbd2a5ab2 Add Python 3.9 to supported runtimes
... because it has been part of tested runtimes since Yoga[1].

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

Change-Id: Ic0c10d26a8e7239daf19e2270659659db125fe4a
2022-06-08 00:58:29 +09:00
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
Zuul 85882a3fc2 Merge "Revert "Support Ceilometer API"" 2021-08-26 10:20:15 +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
Matthias Runge 9b50734bf7 Revert "Support Ceilometer API"
ceilometerclient is deprecated and not supported since 2017.

This reverts commit d32ca24453.

Change-Id: Id5bac2f317deceefe625d91f0dc91b071a6f8037
2021-03-01 18:21:09 +01:00
Ghanshyam Mann 5e7a0519cf [goal] Deprecate the JSON formatted policy file
As per the community goal of migrating the policy file
the format from JSON to YAML[1], we need to do two things:

1. Change the default value of '[oslo_policy] policy_file''
config option from 'policy.json' to 'policy.yaml' with
upgrade checks.

2. Deprecate the JSON formatted policy file on the project side
via warning in doc and releasenotes.

Also replace policy.json to policy.yaml ref from doc and tests.

[1]https://governance.openstack.org/tc/goals/selected/wallaby/migrate-policy-format-from-json-to-yaml.html

Change-Id: Ia0fa4ba1fecf2740a291c5a65b906b089c95404d
2020-12-25 16:41:53 +00:00
melissaml 3127609edd Remove translation sections from setup.cfg
These translation sections are not needed anymore, Babel can
generate translation files without them.

Change-Id: I75d52a207ec280353892354cc5fd680db5843617
2020-05-14 20:52:24 +08:00
Sean McGinnis 04f82e1ad6
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: Ifc5f88dec427fe34b56b053b11ff18adf829e664
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-04-24 08:22:30 -05:00
Andreas Jaeger 54f2eb0904 Cleanup py27 support
This repo is now testing only with Python 3, so let's make
a few cleanups:
- Remove python 2.7 stanza from setup.py
- Add requires on python >= 3.6 to setup.cfg so that pypi and pip
  know about the requirement
- Remove obsolete sections from setup.cfg
- Update classifiers
- Update requirements, no need for python_version anymore
- Use newer openstackdocstheme and reno version
- Update hacking version to 3.0
- move python3 setting into toxenv, remove install_command and
  move constraints into deps

Change-Id: Ibb42f8199eb4ca93e438e5e7ef5d4c4e0b35a738
2020-04-13 18:04:34 +02:00
Sean McGinnis 59a36b7146
Replace third party mock with unittest.mock
Now that we no longer support older version of Python, there is no need
to use the third party 'mock' library for test mocking and can instead
use the standard library unittest mock module.

Change-Id: I1ea77249834e6c595c88f257226a483633be5f7a
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-03-13 09:00:27 -05:00
Lingxian Kong d32ca24453 Support Ceilometer API
This patch adds the Ceilometer API support back to Aodh.

Change-Id: I7b3301fd0569e041218196f1d05047ae7a6138e4
2019-11-22 15:38:10 +13:00
Ghanshyam Mann 95c2b51463 Drop python 2.7 support and testing
OpenStack is dropping the py2.7 support in ussuri cycle.

Aodh 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://review.opendev.org/#/c/691178/

Change-Id: I12158c5f382f832da50d5be90906ca4a7dd8ccdc
2019-10-30 07:21:50 +00:00
Corey Bryant c45127a5c1 Add Python 3 Train unit tests
This is a mechanically generated patch to ensure unit testing is in place
for all of the Tested Runtimes for Train.

See the Train python3-updates goal document for details:
https://governance.openstack.org/tc/goals/train/python3-updates.html

Change-Id: Ife7bbcb1f5d4f766ebf9470e252a8c0cf520ee16
Story: #2005924
Task: #34251
2019-07-05 16:29:29 -04:00
jacky06 f3ffbb4dce Sync Sphinx requirement
1. Sync sphinx dependency with global requirements. It caps python 2 since
sphinx 2.0 no longer supports Python 2.7.
2. Update some URLs to latest

Change-Id: I24cb8d8d084a291028a961823fcac4f09b4bf1ca
2019-06-19 14:46:28 +08:00
Lingxian Kong a8285b564d Support Heat auto-healing notifier
The auto-healing notifier works together with loadbalancer_member_health
evaluator.

Presumably, the end user defines a Heat template which contains an
autoscaling group and all the members in the group are joined in an
Octavia load balancer in order to expose service to the outside, so that
when the stack scales up or scales down, Heat makes sure the new members
are joining the load balancer automatically and the old members are
removed.

However, this notifier deals with the situation that when some member
fails, the stack could be recovered by marking the given autoscaling
group member unhealthy, then update Heat stack in place.

Change-Id: I6e92d1fc2125e155bb5068ff2c14fa318b126442
2019-05-16 11:26:13 +12:00
Lingxian Kong b2911cb7c8 Add loadbalancer_member_health type alarm rule
The loadbalancer_member_health_rule is used with
loadbalancer_member_health evaluator that was introduced here[1].

[1]: https://review.opendev.org/#/c/652622/

Change-Id: Ic1b3d429d3233be0789f173fa8d3ef5ca5522b8b
2019-04-22 17:27:50 +12:00
Zuul b892f23703 Merge "Add load balancer pool member evaluator" 2019-04-18 02:28:23 +00:00
Lingxian Kong 018b7d45fe Add load balancer pool member evaluator
This patch is adding a new evaluator for the alarms of type
'loadbalancer_member_health' which evaluates the alarm by checking
the operating status of the members in a given load balancer pool.

A new config option 'member_creation_time' is introduced in order to
ignore the members in initialization status.

This is the first part of the auto-healing solution.

Change-Id: I57b848e6dc6aa5e79af1c17dbf1a42a9f068f174
2019-04-16 21:15:44 +12:00
Ghanshyam Mann 33f5ea37f1 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: If5119930dbdbc3366a330929e2328b96a00c6fe7
2019-04-15 01:45:46 +00:00
akhiljain23 bef0f9bfd0 Add framework for aodh-status upgrade check
This commit adds the functionality of aodh-status CLI for performing
upgrade checks as part of the Stein cycle upgrade-checkers goal.
It only includes a sample check which must be replaced by real checks in
future.

Change-Id: I21e331266ab061a41d0ffe3c179b10f777af44f5
Story: 2003657
Task: 27733
2019-04-10 10:43:37 +00:00
prankul mahajan 01bdd00910 Change openstack-dev to openstack-discuss
Mailinglists have been updated. Openstack-discuss replaces
openstack-dev.

Change-Id: I31dd86fcbe05951f16f85a2e4a3cfc1c10fd54ef
2018-12-04 11:40:51 +05:30
Nguyen Van Trung a89016706f Follow the new PTI for document build
For compliance with the Project Testing Interface as described in:
https://governance.openstack.org/tc/reference/project-testing-interface.html

For more details information, please refer to:
http://lists.openstack.org/pipermail/openstack-dev/2017-December/125710.html

Change-Id: I28b26e9fa38c2ef854cc5f84e00b4f50ad55394d
2018-07-18 08:40:33 +00:00
Nguyen Hung Phuong 32997e2ad5 Remove pbr warnerrors in favor of sphinx check
This change removes the now unused "warnerrors" setting, which is
replaced by "warning-is-error" in sphinx releases >= 1.5 [1].

[1] http://lists.openstack.org/pipermail/openstack-dev/2017-March/113085.html

Change-Id: I718875b43291d05b2ee5b1ae425c24a4b4c2ee6c
Closes-Bug:#1693670
2018-02-27 15:52:52 +00:00
Mehdi Abaakouk b53d862bb5 Remove ceilometer-api alarm type
This change removes the deprecated 'threshold' alarm type from Aodh.

This also removes the useless ceilometerclient dependency.

Depends-On: Id89130fd8a782dea863c85b37a919fbf0f0897dd
Change-Id: I7ccf930f2ad0316dbda0675a2ec0344e61986022
2018-01-12 21:03:25 +01:00
Chandan Kumar 649d289465 Remove aodh intree tempest plugin
* https://review.openstack.org/#/c/526298/ moves the aodh tempest
  tests and configurations in ceileometer. So we are removing the
  intree tempest tests from aodh.

Change-Id: I972c53eb7c3f2b6d717220a5732b9b1fc0d33a9d
2017-12-22 15:05:32 +05:30
Mehdi Abaakouk 57b50bc20e Add missing dependency
subunit-trace is not in the virtualenv and no more present into the gate
image.

This change installs it into the virtualenv.

Change-Id: Iedab49d13bc5cdbacf40db25694f1ac15eb9e6f7
2017-12-21 10:08:04 +01:00
Andreas Jaeger 5bd747b888 Fix releasenotes builds
The updated releasenote and requirements jobs expect requirements for
docs in one of the requirements files. Move requirements from setup.cfg
to doc/requirements.txt file.

Update also releasenotes build to use same command as in jobs - build
with warnings as errors.

See also
https://governance.openstack.org/tc/reference/project-testing-interface.html#documentation

Fix failure of building with warnings as errors:
Replace the instructions for querying for release notes for newton
with the results of a reno report because some of the broken release notes
are on branches that have been closed and we have no way to edit them.

Depends-On: I994aa3cf173ec8a9412239544e3269aca17adc25
Change-Id: If8df8a6e8cad2d9247f07c9ed7a71f29b19f7d51
2017-11-22 20:35:32 +01:00
Dai Dang Van c150d00dee Implement policy in code (1)
This commit will prepare for implementing policies in code[1]
that mean with oslo.policy, we can define all of default rules
in code base and only update some rules via policy file if need.

To do that, we can move "rule by rule" into code base.
In this change, we will:

- Define some common rules in code base.
- Register them into policy engine to use as default policy rules
- Remove them out of policy.json file, so if operators want to
update rules, they should define them in policy file like the way
we done with config option with oslo.config.

Summary, with any rules that we defined in codebase, we no need to keep
them in policy file anymore if we don't want to customize them.
And everything still work well meanwhile we didn't define rules
in policy file with falling back to default rules.

[1] https://governance.openstack.org/tc/goals/queens/policy-in-code.html

Change-Id: Ide8f581b9adb6701eeb9b1f5293307dcee3dd9c3
Co-authored-By: Hieu LE <hieulq@vn.fujitsu.com>
2017-11-07 18:07:27 +07:00
zhangyangyang f36b740f87 Cleanup setup.cfg
python-subunit is not used directly anywhere
and it is dependency of both testrepository
and os-testr
(probably was used by some tox wrapper script before)

Change-Id: I5425614f54c89add268a6528ebf0daf56b07fea1
2017-09-20 21:37:06 +08:00
Jenkins e2b48c9fb2 Merge "turn on warning-is-error for doc builds" 2017-07-17 13:42:44 +00:00
Jenkins a432ab8d32 Merge "Update URL home-page in documents according to document migration" 2017-07-17 13:36:06 +00:00
chenxing d87e55fa75 Update URL home-page in documents according to document migration
Change-Id: Id48b89713ffa5e272d5168d2a490e20f66fb25ed
2017-07-14 16:03:15 +00:00
Doug Hellmann a597136e8a turn on warning-is-error for doc builds
Turn on the flag in setup.cfg.

Fix some formatting issues with a couple of docstrings.

Fix some mistakes in the rst files.

Suppress warnings from Sphinx extensions that used to be suppressed by
pbr with older versions of Sphinx.

Change-Id: I549292b5e22cf8ae0f54f878793a36f2cd3b8e6c
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2017-07-14 10:06:41 -04:00
Doug Hellmann 7805ec4306 move class api reference into contributor docs
Change-Id: I89b11d8e542feadb6a424234a8aaeb59a29862c3
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2017-07-14 10:01:11 -04:00
Jenkins ceabd801ce Merge "switch to openstackdocstheme" 2017-07-13 17:52:55 +00:00
Mehdi Abaakouk 3b365a1876 tests: rework functional live tests
This allows to run functional live tests without devstack.
And runs tests within the normal tox target without devstack

This increases test coverage because all backend are now tested.

Change-Id: If475b6d1f43a44540f276209a3651e7e790c2233
2017-07-13 12:57:41 +02:00
gord chung ead7d16f11 switch to openstackdocstheme
Change-Id: I64cc7124cab48ea8a53ace957efe20d2b68ef2ef
2017-07-12 11:53:10 +00:00
gord chung e9bf3190a7 add sqlalchemy-utils
we use it in tests

Change-Id: Ic410666e32d6310405325489db7bb8c029f51e66
2017-06-21 19:55:27 +00:00
Jenkins 1f733027f1 Merge "Add `aodh-config-generator' tool to generate sample configuration file" 2017-05-21 10:28:11 +00:00
Hanxi Liu 74f83f11bd Deprecate olsotest.mockpatch in favor of native fixtures
olso.mockpatch has been deprecated since I3efb3c64ebce396e756a47d110a74fe8604b6b72.
We now remove it in favor of native fixtures.

Change-Id: I701a106a08553b4cfb8fcc3074b9e56e1c3d4114
2017-05-04 09:57:19 +08:00