Commit Graph

415 Commits

Author SHA1 Message Date
Callum Dickinson 8deababd1b Simplify Adjutant bindep dependencies
Remove bindep dependencies that are not required for building Adjutant:

* Python 2 (no longer supported)
* MySQL/MariaDB client (only the client library development package is required)
* MySQL/MariaDB server (unused)

Change-Id: Ife1ec591d18befb29ef4565a42ebd0f706ec0e56
2023-11-30 14:04:32 +13:00
Dale Smith df8c3e4a8b Update documentation to reflect newer OpenStack and confspirator
Change-Id: I06c30af22222f067d5630492a3e053a510fd7b69
2023-01-04 07:24:00 +00:00
Dale Smith 6b1856b4eb Support tox4, update style to match Black 23.1a1
This aligns code with https://github.com/psf/black/pull/3302

Depends-On: https://review.opendev.org/866943
Change-Id: Icfbca2fab8adeb677b980d01f797f194f580838e
2023-01-04 17:06:31 +13:00
OpenStack Release Bot a84d0da632 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: I367fa70f3868e6d2ba17c034c4091977d7a8379d
2022-12-09 15:49:34 +13:00
Zuul 5951ccdd91 Merge "Update master for stable/yoga" 2022-12-09 02:40:04 +00:00
LiZekun af317c37ad 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: I08c7cfa28cffe1d82889c9133ec33a8a2e4b560e
2022-12-07 07:14:00 +00:00
LiZekun 8d9cdb6e8e Update python testing classifier
Change-Id: I52eb71cc414f80b63eaa1f79c79b2b3b8000fbd3
2022-12-07 07:13:27 +00:00
OpenStack Release Bot 00c310ab7f 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: I22f4f074ea6c4fec6f792a87d74debe522aaaa13
2022-12-07 07:11:07 +00:00
Dale Smith 8ae383f9fe Fix gates for Antelope and update Django
* Zuul deprecated (and now removed) declaring shared queues at a pipeline
  level [1]. This patch fixes the syntax to make the gate work for
  adjutant.
* Updates Django version to allow upper-constraints version
* Fix Django 3.2 warnings
* Fix flake8 errors
* Remove support for Python 3.6, Python 3.7

[1] https://lists.openstack.org/pipermail/openstack-discuss/2022-May/028603.html

Change-Id: Ic369b59bb062df867d78b006f06e48cf9c98a3ee
2022-12-07 19:52:27 +13:00
Zuul b305d7285f Merge "Fix some issues with updating user email defaults" 2021-10-26 06:52:13 +00:00
Adrian Turjak ec6c2c6d1d Fix some issues with updating user email defaults
Change-Id: I8d33f0b0f13eba64569a17836bb2ca5ffb9f1c93
2021-10-26 16:10:58 +13:00
Adrian Turjak ab7f8115d4 Fix an issue with Adjutant's Invite process not checking inherited roles
Adjutant's InviteUser action was not correctly checking inherited roles
which might allow someone to invite/create another user with roles outside
of those they inviting user can manage.

Change-Id: I1f45da4ce5ee6d1295a17767c432875c23106b15
Story: #2009326
2021-10-26 15:34:14 +13:00
Adrian Turjak bee1e42c9f Fix notification overlay not working correctly
Change-Id: If1b1421a6a9ebe054824076416f6fbc87160bc2a
2021-09-30 20:55:02 +13:00
Adrian Turjak 97880c9364 Change wrong template/subject default for quota update emails
Change-Id: I562454fc5bae4ec3d3201d22fe935cbf727cbf10
2021-09-23 21:21:57 +12:00
OpenStack Release Bot a3ce558ec1 Add Python3 yoga unit tests
This is an automatically generated patch to ensure unit testing
is in place for all the of the tested runtimes for yoga.

See also the PTI in governance [1].

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

Change-Id: I54370601772d381b17c53840cf4fbbabd9e3e894
2021-09-17 14:16:20 +00:00
OpenStack Release Bot ec9c87a0dc 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: Ic5e920c741aecb41bef462c1db035a1b143e112b
2021-09-17 14:16:19 +00:00
Zuul a712ee2c20 Merge "Update master for stable/wallaby" 2021-09-14 01:24:28 +00:00
OpenStack Release Bot 8c6f0130ac Add Python3 xena unit tests
This is an automatically generated patch to ensure unit testing
is in place for all the of the tested runtimes for xena.

See also the PTI in governance [1].

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

Change-Id: I11174e264236584b2d37d67defb507591c34f569
2021-09-07 02:32:55 +00:00
Jonathan Herlin 7aa1fc69c3 Change default volume API to v3
Volumes v2 API was deprecated in pike and v3(.0)
 is identical to v2 API.
v3 was introduced in Mitaka

Change-Id: I38613145ae4234956f36184eb62feb8e95647113
2021-08-30 11:02:51 +02:00
OpenStack Release Bot adf52a3773 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: I12a97ab09cc76180e9e55db0052c2fe986abeb9d
2021-06-03 01:49:05 +00:00
Adrian Turjak d9045e4b10 Update formatting because of black version
Change-Id: If43c4256e1b452fc160750f492d2d6fdcb44d389
2021-06-01 14:24:00 +12:00
Adrian Turjak ad19ed13b6 remove mysqlclient from requirements
Change-Id: I59fc91858375b5bc3ae1bfd29409a1dcbc8b3e17
2021-03-03 15:28:32 +13:00
Adrian Turjak d703a634a4 Fix a bug with feature set config not being added as expected
The feature set config group was entirely missed from the config
tree, and the group itself wasn't setup for lazy_loading despite
needing to be based on when it is meant to have config added to it.

Change-Id: Ia9569ebb76ffe91d592dbc94bc528bde4aa00fc4
2021-02-26 13:37:48 +13:00
Zuul 1d5c474dc8 Merge "Fix pluralisation of quotas in api-ref" 2021-02-18 23:13:19 +00:00
Jonathan Herlin 758a1406b8 Rename git-blame-ignore-revs
It contains a space at the end of the filename, which is not clearly shown in git
'.git-blame-ignore-revs '

Change-Id: I0833fcae36177913e3088211e4ab0d755aae3fc2
2021-02-18 16:04:02 +01:00
Simon Merrick 6f5a59a414 Fix pluralisation of quotas in api-ref
Change-Id: I4f9b2b5462e75c3b06666cbe4e7c2304434567b1
2021-02-18 20:56:44 +13:00
Adrian Turjak 1795ac71c3 Fix an issue when username_is_email=False for Quotas
The email function was incorrectly trying to get the user email
when sending out a quota update email. This has been fixed, and
a test added to confirm.

Change-Id: Id76af3ff50f752764a0ea25281443104d44adeb1
2021-02-16 12:15:29 +13:00
Zuul e940fd4925 Merge "Add service helper for trove quota management" 2021-01-22 02:03:46 +00:00
Simon Merrick 45160d3378 Add service helper for trove quota management
Change-Id: Ib09692b1451f1493394af755cbcd14cc96a36b02
2021-01-22 13:39:38 +13:00
Uriel Medina 84270add34 Make identity interface configurable
Keystone middleware sets the default identity interface as "internal".
This was causing issues with DevStack where "internal" endpoints
weren't being created.

We added a new config for interface, and have it default to 'public'.

Task: 41593
Story: 2008515
Change-Id: Ib8e546d5fbfbcb561e5b139893605d05c1a8ad62
2021-01-21 00:33:55 +00:00
Zuul bf27115ad2 Merge "Add Python3 wallaby unit tests" 2021-01-12 21:46:00 +00:00
Zuul 1470c9accd Merge "Update master for stable/victoria" 2021-01-12 21:45:34 +00:00
Zuul 8206df81d4 Merge "Fixed typos in nova and neutron quota output" 2021-01-12 21:44:28 +00:00
Kevin Masterson d2fbd63fdb Fixed typos in nova and neutron quota output
The Nova and Neutron quota helper objects output the quota data with
the word 'secuirty' instead of 'security' in the key name. Adjutant-ui,
nova and neutron (among others) look for the keys with the correct
spelling. No other instance of the typo appears to exist in other
modules.

APIImpact: some keys returned by Adjutant are now correctly spelled
Change-Id: Idf2953027765119d70720592ccc1187472854fad
2021-01-12 08:11:08 -05:00
zhangboye eda6558b89 Add Victoria release info
Add the lack of release information for Victoria, this patch added it.

Change-Id: I0b4f89cd89fd0645e27291b6613fd231d6a69feb
2021-01-03 09:28:10 +08:00
OpenStack Release Bot a325ba8e55 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: Ia2326c21b65ebdb91d9916f172307ee6785124e6
2020-09-25 08:38:07 +00:00
OpenStack Release Bot 136ba2088a 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: Ic4b699a80fa5b118ccd4515037031c0109cb9d12
Sem-Ver: feature
2020-09-25 08:38:03 +00:00
Adrian Turjak 43e0c625e3 Allow authenticated token requirement for tasks
Tasks when defined can now set if they require the user submitting
a token to be authenticated.

keystone_user is now passed to actions when a token
is submitted. This requires all actions to update their submit
function, but a suitable fallthrough will exist for a cycle to
allow time.

Also fixes a minor issue around where error handling for
renamed or deprecated tasks is handled that cropped up
while testing this patch.

Change-Id: I4b51201872cb5a14f299f90e22a8b010d11a71cb
2020-09-17 13:01:12 +12:00
Adrian Turjak c42463bb29 Ignore blame for Black formatting update
Change-Id: I7ac842feb948a9d1fe3144e3d6f57e561b531272
2020-09-17 12:57:06 +12:00
Adrian Turjak b35fdcc6ab Reformat with updated version of black formatter
Change-Id: I74aea5668c3027cff4d2f3ecb6de456e60bb6129
2020-09-17 12:56:00 +12:00
Adrian Turjak 9dd1f3a302 Update CONFspirator with example and toml support
Example config generation now is in CONFspirator so we can instead
use that.

We now also natively get toml support through the new version of the
library.

Change-Id: Ic3a46d075dd83e11ee3cccc1ad2bbdb81005c60d
2020-08-07 20:28:24 +12:00
melissaml 9ef78c436e 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: I0247f2e6e76d9995f1720eac8be180e64c5bf243
2020-06-23 15:39:49 +08:00
Hervé Beraud de347e316d 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: Ie859ac36b1dcc4bc08e43eef3d6ed4399033f9f4
2020-06-02 19:31:59 +02:00
Andreas Jaeger b32d0be3a0 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.

Disable openstackdocs_auto_name to use 'project' variable as name.

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: Ic5488acc81538c1dbde70fcc52d9175e3b98059a
2020-05-24 20:23:55 +02:00
Sean McGinnis 571aa70667 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: Ie131fba4cee8b50612cbba7632079a64ccdd6e75
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-05-06 00:02:23 +00:00
Adrian Turjak 92793e349f Add pyc cleanup and black check to tox
Change-Id: Ie9343ea5993f9075fdae7f8d6e965095b59d4fb2
2020-05-06 11:34:51 +12:00
Adrian Turjak f61f6f25fa Fix migration ordering issue
The task model rework has some migration ordering issues,
this fixes that and ensures action migrations don't
continue until other steps are done.

Change-Id: I3c3669a12e5d5d6b11fdf0e49b14894468287b6a
2020-05-06 11:27:31 +12:00
Zuul c1d345ae5a Merge "Community goal contributing docs" 2020-05-05 22:00:42 +00:00
Adrian Turjak 64e9a8bcd9 Community goal contributing docs
Change-Id: I71084e1b81d64d7afe0d14647177afeb223d4ed7
Story: #2007236
Task: #38513
2020-05-01 10:42:55 +12:00
OpenStack Release Bot 34bba2e112 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: I7f2b148d4ac374faaa0ba3a203c1a96c55ff7953
2020-04-30 06:52:52 +00:00