4991 Commits

Author SHA1 Message Date
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
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
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
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
Zuul
2ea2f9a83a Merge "Add common personas to base policies" 2021-01-12 11:34:40 +00: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
wu.shiming
2710b6000d Update TOX_CONSTRAINTS_FILE
UPPER_CONSTRAINTS_FILE is old name and deprecated
-https://zuul-ci.org/docs/zuul-jobs/python-roles.html#rolevar-tox.tox_constraints_file
This allows to use lower-constraints file as more
readable way instead of UPPER_CONSTRAINTS_FILE=<lower-constraints file>.

Change-Id: I9a31e347bc3a2b78b9b3e6b205f48da3131803d1
2020-12-14 17:51:30 +08:00
Zuul
0bac3700b3 Merge "Update requirements to implement secure RBAC" 2020-12-11 08:59:44 +00:00
Zuul
c9a6cdc5d0 Merge "Remove six" 2020-12-04 23:18:59 +00:00
wangzihao
a2d9f3ce50 Remove six
Remove six.moves Replace the following items with Python 3 style code.

- six.moves.range
- six.moves.xrange
- six.text_type
- six.PY2
- six.PY3
- six.moves.urllib
- six.string_types
- six.iteritems
- six.add_metaclass
- six.moves.map
- six.with_metaclass
- six.iterkeys
- six.itervalues

Change-Id: I469b49772899672c05f869c6870512fddfc6183d
2020-12-04 01:35:57 +00:00
Zuul
d4f6067d5d Merge "Fix pygments style" 2020-12-03 10:51:41 +00:00
Lance Bragstad
7779da4916 Implement secure RBAC for alarms and quota policies
This commit updates the default policies to include supports for
enhanced token scope checking and default roles, including a read-only
role for GET APIs.

This is part of a broader change across OpenStack projects to
consolidate common personas and provide a more secure and consistent
authorization experience for end users and operators.

Change-Id: If17dbfec10302c9c57d814cb406faee1a6efc59a
2020-12-01 16:08:16 +00:00
Lance Bragstad
5df5505c8d Add common personas to base policies
This commit adds some common personas, or check strings, to the
policies.py file. We can use these later to implement more secure policy
defaults that will be consistent with changes across OpenStack and will
provide a better, more secure authorization experience for operators and
users.

Change-Id: I030a5c6a94c5a4be59051d1b8828ab41281465f0
2020-12-01 15:45:53 +00:00
Lance Bragstad
b99761d38f Update requirements to implement secure RBAC
This commit bumps the versions for oslo.policy, oslo.log, and
keystonemiddleware. It also adds a dependency on oslo.context so that we
can re-use context objects to make authorization decisions in
oslo.policy, instead of building authorization information from the
request manually, which is error-prone and redundant.

The versions bumps for these libraries are necessary to provide better
default policies through deprecations and enhanced scope checking.

Change-Id: I1bdecf2e762e2b7652a411efd03210ea51575ada
2020-12-01 15:38:47 +00:00
Eyal
857e5a19dc Remove deprecated tail_log function
This function has been deprecated for a long time, let's finally
remove it. It is only generating a warning anyway.

Depends-On: https://review.opendev.org/c/openstack/panko/+/763941
Change-Id: I02372642b94ef508aed28942fe49a09f3ad35728
2020-11-24 09:00:37 +00:00
OpenStack Proposal Bot
1c5797631e Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I04da8b7b3c082564d79c8d46c5046978c062339c
2020-10-04 06:28:38 +00:00
267f07ed6f 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: I3e587330d9130faa3fa12a2d9460dad171691d59
2020-09-24 09:13:44 +00:00
3399daec53 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: I01dd4d116884d06c57ba85ec050f1323369f54db
Sem-Ver: feature
2020-09-24 09:13:40 +00:00
Rabi Mishra
8635b67777 Use SETUPTOOLS_USE_DISTUTILS=stdlib for global pip installs
A new setuptools release has changed the way pip installs are done,
see [0]. With this change we switch back to using the distro
method for global pip installs.

This patch also disables including aodh.conf sample to fix
PDF build. This follows the same pattern like in
https://review.opendev.org/#/c/737230/

[0] http://lists.openstack.org/pipermail/openstack-discuss/2020-August/016905.html

Depends-On: https://review.opendev.org/749543
Change-Id: Ied9bf958c6b19e5a25224b7a63ef8756ecd56666
victoria-em 11.0.0 11.0.0.0rc1
2020-09-03 08:34:44 +02:00
Hervé Beraud
932b1e0e61 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: I51c6ea487e714fc61fe79a42e83a461cb0fed81e
2020-06-02 19:34:10 +02:00
Hervé Beraud
32e956517b Cap jsonschema 3.2.0 as the minimal version
Previous versions of jsonschema (<3.2.0) doesn't support python 3.8 [1].
Python 3.8 is part of the victoria supported runtimes [2] so we now force
to use jsonschema version 3.2.0 to avoid issues, remove ambiguity and ensure
that everything works with python 3 in general.

[1] https://github.com/Julian/jsonschema/pull/627
[2] https://governance.openstack.org/tc/reference/runtimes/victoria.html#python-runtimes-for-victoria

Change-Id: I6e47beaf0a5f2e455db5828dd2381d98aba25bd8
2020-05-26 21:45:41 +02:00
Andreas Jaeger
d86bc73d35 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.

Set openstackdocs_pdf_link to link to PDF file. Note that
the link to the published document only works on docs.openstack.org
where the PDF file is placed in the top-level html directory. The
site-preview places the PDF in a pdf directory.

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.

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.

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

Change-Id: Ic3745264cee3515683dfe028014203388e735fdd
2020-05-21 14:22:45 +02:00
gugug
31777297e9 Fix pygments style
New theme of docs respects pygments_style.

more info: http://lists.openstack.org/pipermail/openstack-discuss/2020-May/014971.html

Change-Id: Iecaf623e413c514d0a7cf42557576fa0e6fd4ba1
2020-05-21 01:22:04 +00:00
OpenStack Proposal Bot
a62aaabaac Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: Ia07e9173b58dfd7165cc97ec70b83387fa91c3f0
2020-05-19 06:05:42 +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
OpenStack Proposal Bot
9af9f09644 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I45a6aed2ef9da990f81fa53c4b0747ad50760c01
2020-04-28 06:08:21 +00: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
d35a14690c Add Python3 victoria unit tests
This is an automatically generated patch to ensure unit testing
is in place for all the of the tested runtimes for victoria.

See also the PTI in governance [1].

[1]: https://governance.openstack.org/tc/reference/project-testing-interface.html

Change-Id: Iff700860d2db96471785389cee5cd58db8158754
2020-04-22 13:11:05 +00:00
692572bd95 Update master for stable/ussuri
Add file to the reno documentation build to show release notes for
stable/ussuri.

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

Change-Id: I3b055e39544dea6173df0a7fbe9119cb150e3727
Sem-Ver: feature
2020-04-22 13:11:04 +00:00
zhurong
6792853f5d Add irrelevant-files for tempest jobs
Change-Id: I2edf7f441cfa49c4f24bde3cccb7fbcace5cfdc7
2020-04-20 00:12:31 -07:00
OpenStack Proposal Bot
20d03d2ebe Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I4a9a786e34836820e1c1e0189edcd71c019bb09e
ussuri-em 10.0.0.0rc1 10.0.0
2020-04-19 06:36:52 +00:00
OpenStack Proposal Bot
e0f7a2b583 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: If63d8ab56a5e520abf515429d9b88bb942bb49e0
2020-04-16 06:52:45 +00:00
Zuul
833f3f1a6a Merge "Fix py38 error" 2020-04-14 09:05:27 +00:00
zhurong
9936fe5fb3 Fix py38 error
Change-Id: I47644f60474eb5cfc57eebaef60804900358afd9
2020-04-14 00:38:18 +00: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
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