158 Commits

Author SHA1 Message Date
Zuul
ceda3957b2 Merge "Run pyupgrade to clean up Python 2 syntaxes" 2.6.0 2024-10-31 12:48:18 +00:00
Takashi Kajinami
1e2ea407cc Add note about requirements lower bounds
Since lower constraints job was removed the bounds are not actually
tested. Add a note to explain the bounds are maintained on best effort
basis.

Change-Id: I1336a1a4bf09b072e0006918281c14f241b3df7d
2024-10-31 09:50:39 +09:00
Takashi Kajinami
fd330a22ac Bump min openstacksdk to use name filter for service
As follow-up of 9575a24796e019fd66f1bb1a5ef0bcbfc167351a , bump
the minimum openstacksdk version because name filter in service list is
not available in the current min version[1].

[1] 1b21b7bda1ead2d28568acea7fc0c0addaa913b0

Change-Id: I506c536b601cfab773f6c49cde9a6d91a7854f4b
2024-10-27 14:03:12 +09:00
Zuul
a9f339bd48 Merge "pre-commit: Bump versions" 2024-10-23 16:15:07 +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
Takashi Kajinami
14ea68e4b8 pre-commit: Bump versions
... and use native hooks for bandit and hacking

Change-Id: I61d864d808d355161d6c8fffe78108963d51ea18
2024-10-21 19:46:16 +09:00
Zuul
b7d4136313 Merge "Query endpoint id from keystone" 2024-10-10 13:55:04 +00:00
Takashi Kajinami
bc1b590966 Declare Python 3.12 support
Now Python 3.12 unit tests job is voting. So we can safely say this
is tested with Python 3.12 .

Change-Id: I4192b2ca1637dc305ad78199017bde0c7b977d1c
2024-10-09 22:41:47 +09: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
2.5.0
2024-05-06 05:56:09 +00:00
Takashi Kajinami
818d3bc05b Remove old excludes
These are detected as errors since the clean up was done[1] in
the requirements repository.

[1] 314734e938f107cbd5ebcc7af4d9167c11347406

Change-Id: If6ab7142d6d2b5937b5659329d0587c33817e63b
2024-05-01 11:32:52 +09: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
2.4.0
2024-02-06 14:28:02 +00:00
Zuul
4bcb132fbe Merge "Bump hacking" 2024-01-27 11:30:04 +00:00
Takashi Kajinami
d85a3ad38c Bump hacking
hacking 3.0.x is too old.

Change-Id: I3c40ded7174691473e4ce36eb37da73707178f3c
2024-01-26 01:12:45 +09:00
Ghanshyam Mann
e8d996e281 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: I290f1611a4f7b77f544fdd1ca610c19770c9b2a0
2024-01-11 16:18:30 -08:00
Zuul
6be8940da5 Merge "Add openstack-cover-jobs to .zuul.yaml" 2.3.0 2023-12-19 19:32:23 +00:00
Zuul
c321205073 Merge "Fix up tox -e cover to use coverage" 2023-12-19 13:11:27 +00:00
melanie witt
a913005b9e Add openstack-cover-jobs to .zuul.yaml
Depends-On: https://review.opendev.org/c/openstack/oslo.limit/+/882072

Change-Id: I399e6fbef1969bcaf16c5c2a1513f3c35e38b10d
2023-10-06 18:55:07 +00:00
John Garbutt
027d5d263c Fix up tox -e cover to use coverage
Change-Id: I4516a958efd4b14a6d0f9f8a7763311f134c5215
2023-10-06 16:55:13 +00:00
Takashi Kajinami
ba8b9aba0b Ensure endpoint_id is set
The endpoint_id option is required because it is the key to look up
the target endpoint from Keystone catalog. This ensures more sensible
error is shown in case endpoint id is not set, instead of trying to
look up endpoint by 'None'.

Change-Id: I43859dec08040130e4e5fa6ad65b74be21489aff
2023-10-06 11:00:35 +09: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
Hervé Beraud
c9ee0adcbd Bump bandit
Change-Id: I63e59cae564a369a104b00866bfc0e5cad10b221
2.2.0
2023-05-19 14:43:53 +02:00
Ghanshyam
fc64349bd7 Revert "Moves supported python runtimes from version 3.8 to 3.10"
This reverts commit 886e7170f1d543da37de738660efee0a01cf1bac.

Keeping Python 3.10 in setup.cfg classifier and zuul.yaml changes.

Reason for revert:

Needed-By: https://review.opendev.org/c/openstack/openstack-zuul-jobs/+/882175

TC has been discussing about re-adding the python 3.8
testing in current master 2023.2 release testing.

- https://meetings.opendev.org/meetings/tc/2023/tc.2023-04-25-18.00.log.html#l-191
- https://lists.openstack.org/pipermail/openstack-discuss/2023-April/033469.html

While governance changes are under review, TC agreed to add py3.8 testing
so that we do not see more project/lib dropping python 3.8 and make them
uninstalable on python 3.8

- https://meetings.opendev.org/meetings/tc/2023/tc.2023-05-02-18.00.log.html#l-17
- https://review.opendev.org/c/openstack/governance/+/882165

Also adding py3.8 testing back in job https://review.opendev.org/c/openstack/openstack-zuul-jobs/+/882175

Change-Id: I79df2b9500be5269ecd9894ed4cf46a5edb1592a
2023-05-05 18:53:49 +00:00
Hervé Beraud
886e7170f1 Moves supported python runtimes from version 3.8 to 3.10
Within 2023.2 python version 3.9 and 3.10 are the
supported python runtimes [1].
[1] https: //review.opendev.org/c/openstack/governance/+/872232

Change-Id: I47b536149e8119324b3b715b2103b803b74a8a56
2023-04-10 13:06:20 +09: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
ee1d1aadd0 Add Python3 antelope unit tests
This is an automatically generated patch to ensure unit testing
is in place for all the of the tested runtimes for antelope.

See also the PTI in governance [1].

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

Change-Id: If0a66f70fee2e3b1451bdb3ede036f38413f148f
2.1.0
2022-09-09 09:16:49 +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
2.0.1
2022-05-27 12:11:59 +02:00
Hervé Beraud
992be2042c Drop python3.6/3.7 support in testing runtime
In Zed cycle testing runtime, we are targetting to drop the
python 3.6/3.7 support, project started adding python 3.8 as minimum,

example nova:
- 56b5aed08c/setup.cfg (L13)

Also indicates that we support python 3.9.

Change-Id: I206acb8e50a404e76766daf7439aed258ccfa499
2.0.0
2022-05-05 16:16:16 +02:00
Zuul
6451b4f61e Merge "Move Enforcer caching closer to limit retrieval" 1.6.0 2022-04-05 11:45:19 +00:00
Zuul
4a4d087110 Merge "Add Python3 zed unit tests" 2022-03-22 15:09:36 +00:00
melanie witt
c67c9cf0df Move Enforcer caching closer to limit retrieval
In change I22234e0bb6b3a1cecb29a6b99a3afcd02ffdbf5f added a
get_registered_limits() interface but missed making it work with the
Enforcer cache because caching was implemented in a higher layer,
_get_limit() and get_registered_limits() could not make use of
_get_limit().

This moves the caching logic to where limits are retrieved from
keystone, so that get_registered_limits() will use caching and any
interfaces that might be added in the future will be able to benefit
from using the cache.

Closes-Bug: #1964848

Change-Id: I28cdd4d3f4927b94acea3309b36999850cf2ee2a
2022-03-15 01:21:07 +00:00
Zuul
562ada0e2d Merge "Add documentation for config options" 2022-03-08 18:38:00 +00:00
Zuul
45e01c9071 Merge "oslo-config-generator: Fix ValueError" 2022-03-08 18:37:58 +00:00
004809a850 Add Python3 zed unit tests
This is an automatically generated patch to ensure unit testing
is in place for all the of the tested runtimes for zed.

See also the PTI in governance [1].

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

Change-Id: I51c6dd2064f8da833c1302db9b42858db9d5ada8
2022-03-04 17:18:13 +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
melanie witt
9f7a66a273 Add documentation for config options
This adds a doc page for oslo.limit config options by auto-generating
them.

Change-Id: I49070fdbf2172f87bafd4d2bd08af282c9ef29a4
2022-03-03 00:32:47 +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
melanie witt
bf9deb10c3 Add interfaces for getting limits without enforcing
We currently have a public Enforcer interface for getting limits and
calculating usage but it is not yet possible to retrieve only limits
without calculating usage.

While working on unified limits support in nova, we realized we need a
way to get limits only. In nova there are legacy APIs for showing quota
limits and initially we will provide compat by proxying to keystone to
get the limits.

This adds public interfaces for getting limits to Enforcer.

Related to blueprint unified-limits-nova

Change-Id: I22234e0bb6b3a1cecb29a6b99a3afcd02ffdbf5f
1.5.0
2022-01-21 19:35:33 +00:00
Dan Smith
7e4f36abdb Allow project_id=None for enforce/calculate
This allows a caller to pass None for the project_id if it only wants
it to check the registered limit for a given resource. This is useful
for non-project-scoped resourced where we just want to make sure some
global limit hasn't been exceeded. This would also be relevant for
resources that are created by system-scoped users, such as host
aggregates.

Change-Id: I5fea0143b6a96b5f79bc273961e3e284a260e25e
2022-01-21 19:35:26 +00:00
Dan Smith
a49f3a04d0 Make calculate_usage() work if limits are missing
The calculate_usage interface was added recently to allow consumers
to probe limits and usage without requiring the enforce behavior
workflow. If a limit was passed to it that was not registered in
keystone, get_project_limits() would raise a ProjectOverLimit
exception itself to abort the process immediately, providing the
"unregistered means zero" behavior. This works fine for the enforce
workflow, but not the calculate one.

This changes get_project_limits() to just return a zero limit for
a missing one, which will be considered by the enforce workflow in
the same way, keeping the existing behavior. It will merely be
reported by the calculate workflow, which is the desired change.

Change-Id: Iaab1f0d5eb0da9a667267537d86f6c70bc8db51d
2022-01-10 13:44:01 -08:00
Zuul
ca8df2af67 Merge "Add auth plugin options to options list" 2022-01-10 13:33:50 +00:00