4945 Commits

Author SHA1 Message Date
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
OpenStack Proposal Bot
04f507a64b Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: Ifdd0409e1d83bb4624077bade808c90b5b57f22b
2020-04-11 06:36:09 +00:00
OpenStack Proposal Bot
6ae7f90ad2 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I9b3390ee8952d9c10adb5c399593ad164c22276f
2020-04-08 06:55:30 +00:00
Andreas Jaeger
e71c636dfa Update hacking for Python3
The repo is Python 3 now, so update hacking to version 3.0 which
supports Python 3.

Fix problems found.

Change-Id: Ia621c3fea2b8ded8df7727c07931ad071a61e736
2020-04-03 13:59:31 +02:00
OpenStack Proposal Bot
ed80204406 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: Id663a1b0ba796905105f47e192dbfb5cf1f886d6
2020-03-18 06:41:23 +00: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
83ef3a8117 Release note for quota API
Change-Id: Ib915aee888d376cb620a49ad9fdc2dc9806e986d
2020-02-03 20:37:32 +00:00
Zuul
39a894634b Merge "Delete quota API" 2020-02-03 12:14:54 +00:00
Lingxian Kong
a0a036d7e6 Delete quota API
Change-Id: If3d938833bf1c519cd454221c1a8b7658a26440b
2020-02-03 02:34:33 +00:00
OpenStack Proposal Bot
93b4d3a046 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I7792227d82c7c6cd1e1bcba5be9b7a2353767bf4
2020-02-02 09:57:39 +00:00
Lingxian Kong
6e5c918fc7 Documentation about quota management
Change-Id: Id2e9dbe600ff72e827171e51ccdec88a5e1cdc00
2020-01-31 14:03:24 +13:00
Lingxian Kong
90a7c6eab2 Improve the quota check
- Check alarm quota by considering the quota setting in DB.
- Add more unit tests for quota API.

Change-Id: I1af381f357b0d80f68e3ead16e158428b7a14555
2020-01-31 13:19:33 +13:00
Lingxian Kong
223178716e Support quota API
Currently Aodh only supports global quota for projects and users, we
need quota API to manage quotas per project.

The new quota API only supports project quotas as the same with other
openstack services.

By default, only admin user can update the quota.

TODO(in subsequent patches):
- Check quota from DB when creating resources
- Doc
- Release note
- openstack CLI support

Change-Id: I9258ae4801edbc5289d890fe2e060964a73b216c
2020-01-29 22:09:39 +13:00
Lingxian Kong
58dd647097 Use config options when creating keystone session
Use the config options in 'service_credentials' section to get Keystone
session, so that options like 'cafile', 'insecure', etc. could be used.

Related Story: #2007181
Related Task: #38297
Change-Id: I2f78ca7406737c6e181a1ff5fe416925019c5720
2020-01-20 17:32:19 +13:00
Lingxian Kong
c0190a0a59 Improve the description of aodh notifiers
Change-Id: I322d22a8c3156e63d76e19d525aac2526bdde978
2020-01-11 13:48:48 +13:00
OpenStack Proposal Bot
b54455f165 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I2f983982d8671f8a34e022be907f27cb7edfb98d
2019-12-22 10:04:09 +00:00
Lingxian Kong
b76f377781 Fix getting alarms
The normal users can get all other projects alarms because no project_id
filter when querying the db.

Change-Id: I024ff3ec0e5c21f2f6cef9fa453cfb1497921947
2019-12-20 16:04:57 +13:00
OpenStack Proposal Bot
b18d0bae7c Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: Ic7320f11bae11d9c5d1c3c58be2cc4899b5eaf41
2019-12-12 07:39:49 +00:00
Lingxian Kong
1349706e2e Support aodh-evaluator built-in active/active deployment mode
Support to deploy aodh-evaluator in active/active mode by leveraging
database non-locking mechanism. With this feature, there could be
multiple aodh-evaluator processes running without dependency of etcd or
zookeeper.

The main change is in aodh/evaluator/__init__.py, in order to use
non-locking db update, a new column named 'evaluate_timestamp' is
introduced to 'alarm' table. all other code is changed
because of 'storage_conn.get_alarms()' implementation changed.

Change-Id: I666817cdcf9083f2ad5871d157900cb6dc5a86e0
2019-12-06 16:23:32 +13:00
Lingxian Kong
3bb8de94f7 Some minor improvements for doc and log
Change-Id: I7901f9a4d871a20d833049db11c39f0270ccc098
2019-11-27 13:31:53 +13:00
OpenStack Proposal Bot
beb2896a4b Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I30819845f977530b350ce563a26c837877c93b78
2019-11-26 08:38:34 +00: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
OpenStack Proposal Bot
4c9e95d685 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I905db33eb1300d2a3f7f3e6821a46baf77fd37eb
2019-11-15 10:06:29 +00: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
Lingxian Kong
b47550ae44 heat notifier: Fix getting unhealthy resource names
In the autoscaling scenario, the resource which should be marked as
unhealthy is always the parent resource of the failed load balancer pool
member.

Change-Id: I30cfe9d1cc8c7209e6f865bdd721494dcb4e33ed
2019-10-09 22:58:08 +13:00
68f1effa10 Update master for stable/train
Add file to the reno documentation build to show release notes for
stable/train.

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

Change-Id: I01d7f28ce9131c45679aa6fcd1cb2ef5b60ecc3a
Sem-Ver: feature
2019-09-25 08:46:15 +00:00
pengyuesheng
670267b960 Update the constraints url
For more detail, see http://lists.openstack.org/pipermail/openstack-discuss/2019-May/006478.html

Change-Id: Ia3ab1f30eff941a6b15f5c01f53c7b634bc19cbf
9.0.0 9.0.0.0rc1
2019-09-20 16:28:53 +08:00
zhurong
28f7d804e8 PDF documentation build
Change-Id: I98f6a8dcfd434fbbd519dd0ab76ebf5d89fee4b8
2019-09-19 01:55:54 -07:00
Eyal
c79990e8a3 Update jsonschema according to requirements
Change-Id: I8b0b07bdbe7145fb080e77726e76db5108a2c160
2019-09-10 12:47:35 +03:00
Ghanshyam Mann
506a99a6f8 Run 'telemetry-dsvm-integration-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' which will
deploy services on IPv6.

This commit Run 'telemetry-dsvm-integration-ipv6-only' job in Aodh gate.

Story: #2005477
Task: #35939

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

Change-Id: I5506631a17003f84c22acd6f8b92faf84047ebc4
2019-09-05 11:16:47 +00:00
Zuul
1ccb27528e Merge "Add the native zuulv3 jobs instead of legacy way" 2019-09-03 05:22:48 +00:00
Zuul
32e8d38938 Merge "Imported Translations from Zanata" 2019-08-30 07:10:57 +00:00
zhurong
bc64b28a04 Add the native zuulv3 jobs instead of legacy way
Change-Id: I47d1753f2700c1339171c471a682718a5b72c9d6
2019-08-28 08:59:05 +08:00
zhurong
b1a7ed61f3 Add _static folder to fix docs build error
Change-Id: Ib783f293120e5f4832d0c2a28352f4abd5a1e935
2019-08-27 18:51:26 +08:00
OpenStack Proposal Bot
b90d75704b Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Depends-On: https://review.opendev.org/#/c/677694/
Change-Id: I0c9ae0dd09cb77b44f74d4bd0133f171859273da
2019-08-22 00:25:48 +00:00
Lingxian Kong
e2d2ebf44e Heat notifier: notify alarm without Octavia tags
This patch improves heat notifier by removing the hard requirement for
Octavia tags. When Aodh is deployed in an environment that Octavia
doens't support tags yet(before stable/stein), heat notifier will do
resource search by the Octavia member ID.

Note:

Both approaches need specific Heat template definition:

1. Use Octavia tags.

    pool_member:
      type: OS::Octavia::PoolMember
      properties:
        address: {get_attr: [server, first_address]}
        pool: {get_param: pool_id}
        protocol_port: {get_param: webserver_port}
        tags: [{get_param: "OS::stack_id"}]

2. Resource search.

    outputs:
      OS::stack_id:
        value: { get_resource: pool_member }

Change-Id: Ic2328aa907d23c6b6f827661a3fb3cb26f8496fd
2019-08-12 13:15:11 +12:00
Zuul
4b93caca42 Merge "Bump the openstackdocstheme extension to 1.20" 2019-07-09 09:01:02 +00:00
pengyuesheng
a492d329e4 Bump the openstackdocstheme extension to 1.20
Some options are now automatically configured by the version 1.20:
- project
- html_last_updated_fmt
- latex_engine
- latex_elements
- version
- release.

Change-Id: I33deff1b7c87d223af33cc8f95273e3795a74065
2019-07-08 10:32:38 +08:00
pengyuesheng
34684ee412 Blacklist sphinx 2.1.0 (autodoc bug)
See https://github.com/sphinx-doc/sphinx/issues/6440 for upstream details
Depend-On: https://review.opendev.org/#/c/663060/

Change-Id: Ib6bbd7465d62ebbe45df30b975d70263be55cbea
2019-07-08 10:28:27 +08: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
Zuul
f64d58a348 Merge "Byte encoding of member Id" 2019-06-28 05:23:28 +00:00
Vinay Kapalavai
9c9112ad1f Byte encoding of member Id
From stein we will be porting to python3.
To deal with that, when calling for class PartitionCoordinator
the member id need to be encoded in byte format
otherwise it raises MemberNotInGroupError exception.

Closes-Bug: https://storyboard.openstack.org/#!/story/2005894
Change-Id: Idee3216c7c1b4f6391d08649637e619ba1a0ac13
2019-06-27 15:43:47 -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
Jorge Niedbalski
83fb96463c Add user_domain_name to keystone client.
Use user_domain_name as a fallback if no user_domain_id is provided,
the default keystone password auth uses only user_domain_id, if not
provided aodh will fail getting a token, add the extra
user_domain_name parameter to the authentication.

Closes-Bug: #1831181

Change-Id: I170267ddbed31f63717e1c8fe119b2557afc812e
Signed-off-by: Jorge Niedbalski <jorge.niedbalski@canonical.com>
2019-05-31 15:40:56 -04:00
Zuul
c6f07bf92d Merge "Support Heat auto-healing notifier" 2019-05-16 04:02:04 +00: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
Zuul
b56b55fe2c Merge "Use standard py37 jobs, remove py35" 2019-05-14 09:23:14 +00:00
Zuul
8742b0d540 Merge "Add install_command in tox.ini" 2019-04-22 08:51:08 +00:00
Zuul
0773dc5cba Merge "Replace git.openstack.org URLs with opendev.org URLs" 2019-04-22 08:25:34 +00:00
Zuul
855e31283e Merge "Add loadbalancer_member_health type alarm rule" 2019-04-22 07:40:05 +00:00