Commit Graph

75 Commits

Author SHA1 Message Date
Dale Smith 02dd3d7363 Drop lower constraints and remove tests
Remove lower constraints in line with TC Resolution [1].

[1] https://governance.openstack.org/tc/resolutions/20220414-drop-lower-constraints.html

Change-Id: I7833428643a3484b6f9c25eaf9330795bea358a5
2023-09-18 09:05:52 +12:00
Dale Smith 6fa9478b15 Update zuul settings, drop Python 3.{6,7} support.
Change-Id: I38dd2866d436134bfe8f2370cc251d853481bced
2022-12-23 10:14:31 +13:00
Kevin Masterson 104c474479 Now checks for code 202 when checking for success for other operations.
Task: 41574
Story: 2008505
Change-Id: I58ea7dc0aae66a38a00ed68e6c6b2cd9a4cbd32b
2021-02-15 12:45:37 -05:00
Zuul bb92841b5b Merge "Add Python3 wallaby unit tests" 2021-01-12 22:51:34 +00:00
Kevin Masterson 208181a569 Now checks for code 202 when checking for success
Task: 41574
Story: 2008505
Change-Id: I99e88b5786940fdc73b9afa25fdd6638a811eb9a
2021-01-12 17:00:53 -05:00
Zuul 702ab83112 Merge "Comparison exception causes quota output to fail" 2021-01-12 21:51:04 +00:00
Kevin Masterson 9c5660acbb Comparison exception causes quota output to fail
The key/value pairs being checked include the quota's id, and the value
is a UUID. Being that this is the only key where the value is not an
integer, this causes issues with Python 3's rules for comparisons
between different types. This manifests as a "Failed to list quota
sizes." error when viewing a region's quota information. This patch
will catch this exception and allow it to continue as before, without
modifying the value.

I opted for this method instead of just skipping 'id' at the start of
the loop since this is closer to the original behavior, and there is
already an explicit check for 'id' at the bottom before adding to the
output. This way, any future keys that also have non-int values will
be handled gracefully as well.

Change-Id: Ib0e53572bfc8600094a6f8483e26bf2d0023ce80
2021-01-12 08:08:13 -05:00
Hervé Beraud d46e9e267d Add doc/requirements
We need to specify doc requirements in doc/requirements.txt
to avoid problems with the pip resolver [1] for the release team [2][3].
Removed specific doc requirements from test-requirements.txt.

The problem here is that this repos haven't doc/requirements.txt file
and by default in this case zuul will use the test-requirements.txt file
to pull requirements [4].

This requirements file contains extra requirements like flake8 that
collided with those allowed in our job environment and so the new pip
resolver fails to install these requirements and the job exits in error.

This project meet the conditions leading to the bug.

[1] http://lists.openstack.org/pipermail/release-job-failures/2021-January/001500.html
[2] http://lists.openstack.org/pipermail/openstack-discuss/2021-January/019611.html
[3] http://lists.openstack.org/pipermail/openstack-discuss/2021-January/019612.html
[4] https://opendev.org/zuul/zuul-jobs/src/branch/master/roles/ensure-sphinx/tasks/main.yaml#L36

Change-Id: Ifa46f9f0b7dca27c9e8a305932141da78b85cd50
2021-01-05 11:18:34 +01:00
OpenStack Release Bot 1a82cbd28a 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: I00c306cb98703ed8a034ffe3874df9dc288bd310
2020-09-25 08:45:57 +00:00
Zuul 92f8bdc649 Merge "drop mock from lower-constraints" 2020-06-23 03:14:38 +00:00
Zuul d537df2a53 Merge "Fix hacking min version to 3.0.1" 2020-06-23 03:14:37 +00:00
Zuul 9d50579e58 Merge "Stop to use the __future__ module." 2020-06-23 03:10:48 +00:00
Hervé Beraud a52d588a2e drop mock from lower-constraints
The mock third party library was needed for mock support in py2
runtimes. Since we now only support py36 and later, we don't need it
in lower-constraints.

These changes will help us to drop `mock` from openstack/requirements

Change-Id: I44e4eb34d8e4e30d7a3bb9e1361a259d8f6c9d19
2020-06-08 22:21:35 +02:00
Hervé Beraud 92c5533748 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: Ia51ad057b476b9b8817af895d23bf0549cee0bae
2020-06-02 19:32:17 +02:00
Andreas Jaeger dc3e4448f7 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.

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: Ib3db49d1256072975e9f3a9472cb27ca6d9895f6
2020-05-30 16:13:15 +02:00
Ghanshyam Mann 9c2e432a88 Fix hacking min version to 3.0.1
flake8 new release 3.8.0 added new checks and gate pep8
job start failing. hacking 3.0.1 fix the pinning of flake8 to
avoid bringing in a new version with new checks.

Though it is fixed in latest hacking but 2.0 and 3.0 has cap for
flake8 as <4.0.0 which mean flake8 new version 3.9.0 can also
break the pep8 job if new check are added.

To avoid similar gate break in future, we need to bump the hacking min
version.

- http://lists.openstack.org/pipermail/openstack-discuss/2020-May/014828.html

Change-Id: If6bd35105d281ebf179dbdd4d3636a0419d5cd5c
2020-05-12 19:23:10 -05:00
Zuul 56dcc376d7 Merge "Add py38 package metadata" 2020-05-11 05:25:28 +00:00
Andreas Jaeger f932b4ea2a 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
- Update classifiers
- Use newer openstackdocstheme and Sphinx versions
- Build docs, don't publish yet

Change-Id: I2de4e1dbac061002940f80b2cf129dc343343a0d
2020-05-09 18:08:43 +02:00
Sean McGinnis 070fe96df9
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: I91cbe83df8580d72bee157c1c430b9f1f69abf3f
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-05-02 07:48:11 -05:00
OpenStack Release Bot 7b8e1590ed 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: Ib5d298c1f6efef24b45ff61ed9a070cfc4545c76
2020-04-30 06:58:59 +00:00
Zuul 14f2771431 Merge "Update hacking for Python3" 2020-04-29 08:08:07 +00:00
Zuul 2082188cf3 Merge "Follow PTI for docs builds" 2020-04-29 07:45:55 +00:00
Andreas Jaeger 61a1ca1641 Update hacking for Python3
The repo is Python 3 now, so update hacking to version 3.0 which
supports Python 3.

Fix problems found.

Remove hacking and friends from lower-constraints, they are not needed
for installation.

Change-Id: I7dd7a16d2b2d75120fa14de1d5c080a1a1c9729d
2020-04-29 09:24:20 +02:00
Sean McGinnis b7ab048a72 Follow PTI for docs builds
This updates the docs build command to follow the instructions from the
project team guide.

Use newer TOX_CONSTRAINTS variable.

Change-Id: I4381ae349e2988b2654696086ca5f7159b695b7e
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-04-29 09:17:12 +02:00
Sean McGinnis d528b3cee4
Use unittest.mock instead of third party mock
Now that we no longer support py27, we can use the standard library
unittest.mock module instead of the third party mock lib.

Change-Id: Icc42a058851448152ddc86fded6b8808e2e704a4
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-04-20 09:37:25 -05:00
Sean McGinnis f3b42daedd
[ussuri][goal] Drop python 2.7 support and testing
OpenStack is dropping the py2.7 support in ussuri cycle.

This also adds the standard expected jobs to be run for ussuri.

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

Various fixes to make the expected jobs pass as well.

Change-Id: I3e8c107c9e3cb8a13a531fb81fd2030d0aad0e7e
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-04-20 09:36:01 -05:00
jacky06 bd59ec3a61 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. Remove unncessary "=="

Change-Id: I1d321e17470216b76fca84f21896bc1457a6a92a
2020-04-02 02:59:18 +00:00
Andreas Jaeger a9a49899c2 Fix some flake8 warnings
fix and enable:
- E121 continuation line under-indented for hanging indent
- E126 continuation line over-indented for hanging indent
- E226 missing whitespace around arithmetic operator
- H306  imports not in alphabetical order
- H401  docstring should not start with a space

Change-Id: I1dab6908652924931e750187380d153d64eba2b6
2020-02-21 09:12:15 +01:00
Andreas Jaeger 310b86b076 Add pep8 jobs
Add first jobs for this repo - without jobs, nothing can merge.
Disable failing pep8 tests for now.

The repo previously had noop-jobs defined in project-config but that got
removed.

Further jobs and templates can be added later.

Change-Id: I17734aab0aec5e74ecab941f4d142c68184b6700
2020-02-21 08:58:24 +01:00
Adrian Turjak 5d34774f0a Change Adjutant UI to use the correct service type
Keep a fallback to the old one to ease migrations.

Change-Id: Ic7e1e554a3c4197a09fe52f01fadcc10ccb534cc
2020-02-19 15:27:10 +13:00
Zuul b014b2e49f Merge "Upgrade app for Django >= 2.0 compatability" 2020-02-19 01:03:59 +00:00
Simon Merrick 1569cc47f9 Upgrade app for Django >= 2.0 compatability
Change-Id: I9c2ecf330d08d47e44d41d7c2f9ba3a21d023f3b
2020-02-04 15:19:04 +13:00
Adrian Turjak 8d8c361b4a Update Adjutant-UI to handle 202 http codes
This matches the new changes to Adjutant as part of
the refactor to split API and Workflow layers.

202 will be the most common response code when dealing
with the creation of new tasks due to future async
task processing.

Change-Id: Ia09a070709b8a2973c9149df91c67af2b69199a0
2020-01-28 11:24:59 +13:00
Zuul 7e5b950098 Merge "Fix the misspelling of "available"" 2020-01-23 00:29:29 +00:00
Andreas Jaeger aa114828a0 Remove six usage
This repo does not support Python 2 anymore, so we don't need
six for compatibility between Python2 and 3, convert six usage to Python
3 code.

Needed-By: https://review.opendev.org/701743
Change-Id: Ia51c0af5df488069f3048f632f56774dcb4344ef
2020-01-11 15:48:35 +00:00
OpenDev Sysadmins 3d9f2a042c OpenDev Migration Patch
This commit was bulk generated and pushed by the OpenDev sysadmins
as a part of the Git hosting and code review systems migration
detailed in these mailing list posts:

http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003603.html
http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004920.html

Attempts have been made to correct repository namespaces and
hostnames based on simple pattern matching, but it's possible some
were updated incorrectly or missed entirely. Please reach out to us
via the contact information listed at https://opendev.org/ with any
questions you may have.
2019-04-19 19:30:26 +00:00
lijunjie fc3e47bf49 Fix the misspelling of "available"
Change-Id: Ic5c82580e1b968b2fab21a00f067cb15420b5dc4
2019-01-22 13:43:24 +08:00
Adrian Turjak 64b7a8c58f Get rid of iteritems in favor of items
Change-Id: I8cb19d301be92b7c6f4a26b4616547221f77caf0
2019-01-17 16:24:04 +13:00
Akihiro Motoki baeb8879a2 Drop nose dependencies
Horizon test setting no longer depends on nose and related stuffs.
This commit cleans up nose related dependencies.

Filenames of test modules need to start with test_*
so that Django test runner detects them.
There is no test defined but it would be nice to adjust the filename.

Also moves horizon dependencies to requirements.txt.

Change-Id: Ib2f246d76da8a1f5d26a9cf8e9ef27e5f4f62bee
2018-08-17 02:16:42 +09:00
Zuul 8f8022d3b8 Merge "Fixes to match Horizon Rocky" 2018-05-03 02:39:35 +00:00
Adrian Turjak bb878a3f33 Fixes to match Horizon Rocky
Horizon in Rocky 'fixed' recursive inheritance but this
in turn broke our use of overextends. As such we drop
overextends for Rocky onwards, but this means Adjutant-UI
from Rocky onwards only works with Horizon from Rocky onwards.

This also fixes issues with quota naming cleanup which was
changed in Horizon proper.

Change-Id: I60fa4e8e751bb62760830e37775c42b9900fb59c
2018-05-02 16:08:38 +12:00
Zuul c4dd4c47b0 Merge "Fix key error with unknown service in size" 2018-05-02 01:03:43 +00:00
Adrian Turjak 4396ad3c87 Fix key error with unknown service in size
When Adjutant has sizes defined for a service that
only exists in certain regions, this can cause errors.

If we come across a region without that service, skip
the service.

Change-Id: Icc6b8cc3aaed408c10dc4fb54c54fe2376cf2a88
2018-05-02 12:59:27 +12:00
Zuul f5ec379fc4 Merge "Fix horizon install" 2018-05-01 07:30:14 +00:00
Adrian Turjak 479618c775 rename project users internal column name
This column should have always been roles, this renames that
properly. No point having the data source be called roles
and the column be called role.

Change-Id: I6ce736bfa1449fccf8f9f96d504a236546d76e82
2018-03-27 16:41:43 +13:00
Andreas Jaeger ccbbff0f8e Fix horizon install
Install horizon from git in OpenStack CI instead of from tarball.

Update tox.ini for this.

Change-Id: I78ec5f3cb2105dcaed6b3e3879af189d5890fbfc
2018-03-23 08:55:40 +01:00
Andreas Jaeger 70a73acdec Set up .gitreview
Set up .gitreview for this project so that the usual OpenStack git
review process works.

Change-Id: I4da43556b07782439d51e217012caa869491f8e8
2018-03-23 08:52:02 +01:00
Adrian Turjak ad31c8c398 Remove useless manifest file
PBR by default gets most files in the repo itself
so a manifest file isn't needed.

"MANIFEST.in generation ensures almost all files
stored in Git, with the exception of .gitignore,
.gitreview and .pyc files, are automatically
included in your distribution."

Change-Id: I5a3dd88e92eee6d7f28d3578e412689fa1f729f4
2018-02-15 18:02:42 +13:00
Adrian Turjak d93485a8a3 Use include_usage param in adjutant quota get view
Adjutant-ui was requesting data for all regions when
it didn't need usage for all regions. This gives us a
way to avoid that.

Change-Id: Iecb474b86c6cd1454f4eb61f7b1326bd65b1dcfa
2018-02-14 12:29:34 +13:00
Adrian Turjak 379709c979 Clean up service and role translations
* add documentation for settings
* clean up documentation
* split role help into own template
* remove old debug print statements

Change-Id: Id764dca96e37627974c77181e73634f461ab10b1
2018-02-13 18:03:20 +13:00