36 Commits

Author SHA1 Message Date
Zuul
ceda3957b2 Merge "Run pyupgrade to clean up Python 2 syntaxes" 2024-10-31 12:48:18 +00:00
Takashi Kajinami
585d49fa30 Run pyupgrade to clean up Python 2 syntaxes
Update all .py source files by
 $ pyupgrade --py3-only $(git ls-files | grep ".py$")
to modernize the code according to Python 3 syntaxes.

Also add the pyupgrade hook to pre-commit to avoid merging additional
Python 2 syntaxes.

Change-Id: I1f005fa2c925612ebfd97d0ca9c2727a4d162523
2024-10-21 10:50:36 +00:00
Zuul
b7d4136313 Merge "Query endpoint id from keystone" 2024-10-10 13:55:04 +00:00
fb950a18b9 Update master for stable/2024.2
Add file to the reno documentation build to show release notes for
stable/2024.2.

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

Sem-Ver: feature
Change-Id: Ib6ecaf2d5651ef4e134c50276ca2dbd696a86bae
2024-09-05 16:01:08 +00:00
Takashi Kajinami
9575a24796 Query endpoint id from keystone
Endpoint id is not predictable so users can't configure the endpoint_id
option until keystone endpoints are created. This requires redundant
steps in deployment. For example both keystone and glance are run by
httpd + mod_wsgi then you first have to deploy keystone and then create
glance endpoints, until you can install glance and restart httpd.

This introduces a few new options to look up the target endpoint from
Keystone. All these options accept predictable values.

Closes-bug: #1931875
Change-Id: I0411d4aa6abd86cb38bf3c1999f2bae213983078
2024-09-05 11:08:12 +09:00
25f58f919c reno: Update master for unmaintained/zed
Update the zed release notes configuration to build from
unmaintained/zed.

Change-Id: I688bb3b7c0fbec2d0a9665bb6a7f86a95173ef8f
2024-05-06 05:56:09 +00:00
Zuul
9d645d9713 Merge "reno: Update master for unmaintained/xena" 2024-03-12 14:38:29 +00:00
Zuul
9d900d8798 Merge "reno: Update master for unmaintained/wallaby" 2024-03-12 14:16:02 +00:00
Zuul
9a9ecaabb5 Merge "reno: Update master for unmaintained/victoria" 2024-03-12 13:13:23 +00:00
89772fcc7f 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: I53e658c9459b48f171670814af4de800d4e5ad2e
2024-03-08 14:22:30 +00:00
ed356c6934 reno: Update master for unmaintained/xena
Update the xena release notes configuration to build from
unmaintained/xena.

Change-Id: Id67960d0d6eb005aafd8ea1f0b4886f157b62a2f
2024-03-07 14:25:38 +00:00
f3461d6ca7 reno: Update master for unmaintained/wallaby
Update the wallaby release notes configuration to build from
unmaintained/wallaby.

Change-Id: I7c76882e8e796fb44126fb0572d888427b580582
2024-03-07 14:21:24 +00:00
5c9243ef0a reno: Update master for unmaintained/victoria
Update the victoria release notes configuration to build from
unmaintained/victoria.

Change-Id: Iaa5e0d17151fd02414f2cb7544f49ec6d28b8450
2024-03-07 14:16:01 +00:00
a9d27925a0 reno: Update master for unmaintained/yoga
Update the yoga release notes configuration to build from
unmaintained/yoga.

Change-Id: I3e7b0ad53932deafce1b51de8a401ce37e2b4494
2024-02-06 14:28:02 +00:00
f28b01e652 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: I12738b4f4f252f2e6b7cbceb72487599e3b2775f
2023-09-07 09:36:52 +00:00
de69de18ab 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: Ic252a5812db3bc3c243d0cee91c7ab85646a9e66
2023-02-24 15:18:42 +00:00
36731d8f8a 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: I794dc8f558497de66535cd6b97a4ccd54480fa1e
2022-09-09 09:16:48 +00:00
Hervé Beraud
beb080d1a2 Fix formatting of release list
Change-Id: I0a7d70a24c527a03930887d4d1ee1214462c8de3
2022-05-27 12:11:59 +02:00
Zuul
45e01c9071 Merge "oslo-config-generator: Fix ValueError" 2022-03-08 18:37:58 +00:00
a6e08b0dce 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: Ifd733042b819aa64c417730b5587140700595a30
2022-03-04 17:18:12 +00:00
Takashi Kajinami
ce5aa7dcca oslo-config-generator: Fix ValueError
This fixes how the opts data is formatted to fix auto-generation of
config file using oslo-config-generator with oslo.limit entry point.

Closes-Bug: #1962406
Change-Id: I176a7b2b8e2edb50659783a2139c3cc13e8f2f53
2022-02-28 01:27:50 +09:00
Zuul
36b9ca3ccd Merge "Add caching of limits in Enforcer" 2022-01-10 13:11:46 +00:00
melanie witt
43683f543e Add caching of limits in Enforcer
This adds caching of resource limits for an Enforcer in order to
improve performance when repeated limit checks are needed. The cache
lasts the lifetime of an Enforcer and is enabled by default. It can be
disabled by passing cache=False when instantiating an Enforcer.

One usage pattern for a caching Enforcer would be to create an Enforcer
per service request so that the caching lives only as long as the
request.

Change-Id: I8e43dceec76aecd2b2ae23a137e56519efe29777
2021-10-18 21:43:57 +00:00
e60489fb07 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: If079ffb950122121a9cd9254cce28bf62106ed57
2021-09-10 14:34:50 +00:00
Zuul
1bfa1280c0 Merge "remove unicode from code" 2021-04-16 10:43:42 +00:00
9ebe3c67e5 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: I0ee8832bb010b0929ba0e7a0dd00fa9a399004e7
2021-04-15 18:17:47 +01:00
xuanyandong
6115a3ea87 remove unicode from code
Change-Id: I09d641c27372bba638aa8be207d27d80c8ec01ab
2021-01-03 16:06:59 +08:00
Zuul
55675ba447 Merge "Adding pre-commit" 2020-09-22 12:37:24 +00:00
a66a3697c2 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: I73e3c0ae23f57c57cb3d55157df3cd8024914100
Sem-Ver: feature
2020-09-11 20:57:59 +00:00
Hervé Beraud
00b4875144 Adding pre-commit
Introduced changes:
- pre-commit config and rules.
- Add pre-commit to pep8 gate, Flake8 is covered in the pre-commit hooks.
- Applying fixes for pre-commit compliance in all code.

Also commit hash will be used instead of version tags in pre-commit to
prevend arbitrary code from running in developer's machines.

pre-commit will be used to:
- trailing whitespace;
- Replaces or checks mixed line ending (mixed-line-ending);
- Forbid files which have a UTF-8 byte-order marker
  (check-byte-order-marker);
- Checks that non-binary executables have a proper
  shebang (check-executables-have-shebangs);
- Check for files that contain merge conflict strings
  (check-merge-conflict);
- Check for debugger imports and py37+ breakpoint()
  calls in python source (debug-statements);
- Attempts to load all yaml files to verify syntax (check-yaml);
- Run flake8 checks (flake8) (local)

For further details about tests please refer to:
https://github.com/pre-commit/pre-commit-hooks

Change-Id: Ic00da1340d695c7a109f41a09929b654baf995a7
Signed-off-by: Moisés Guimarães de Medeiros <moguimar@redhat.com>
2020-09-08 13:48:34 +02:00
Andreas Jaeger
16f9098312 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.

Remove doc requirments from lower-constraints, they are not used for
install. Remove also hacking, the version is ancient and not needed
there either.

openstackdocstheme renames some variables, so follow the renames. A
couple of variables are also not needed anymore, remove them.

Set openstackdocs_auto_name to use project as name.

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: I5ec9dda8582f55fc0b287c422d5c43ad2e23b9b8
2020-05-21 13:42:35 +00:00
b2685099f2 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: I28d813d853e7961adcf617e452769b64f9e7eccc
Sem-Ver: feature
2020-04-14 10:14:41 +00:00
Hervé Beraud
64b78b7878 oslo.limit mistakenly released as 1.0.0 (release note)
For further reading:
http://lists.openstack.org/pipermail/openstack-discuss/2020-February/012606.html

Change-Id: I44cb645bd118c17e1f067cb617dbce845dacd5c6
2020-02-21 10:34:02 +01:00
Hervé Beraud
188ee76177 [ussuri][goal] Drop python 2.7 support and testing
OpenStack is dropping the py2.7 support in Ussuri cycle.

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://governance.openstack.org/tc/goals/selected/ussuri/drop-py27.html

Change-Id: Ie48c796b6c83b42c85555d13a09f3b3ed96428f8
Sem-Ver: api-break
2020-02-06 10:24:15 +01:00
d426c5d078 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: I07dc249c5fdd264c40407b4d1e9fd3b0ea40f43c
Sem-Ver: feature
2019-09-20 16:33:15 +00:00
wangxiyuan
88684c2074 Fix CI
We enabled some basic jobs for oslo.limit recently. This patch
fixed the related CI error.

Change-Id: I1fd27724686ae12c0a279d7a7e45c2711b62bf45
2018-07-30 14:22:38 +08:00