Commit Graph

168 Commits (master)

Author SHA1 Message Date
OpenStack Release Bot 84bd480b64 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: Ib59ce3050bebf1c03fad47a4799f41564c40a236
2023-09-15 13:54:20 +00:00
Pierre Riteau fa1a31a448 Drop lower-constraints.txt and its testing
As discussed in TC PTG [1] and TC resolution [2], we are dropping the
lower-constraints.txt file and its testing. We will keep lower bounds
in the requirements.txt file but with a note that these are not tested
lower bounds and we try our best to keep them updated.

[1] https://etherpad.opendev.org/p/tc-zed-ptg#L326
[2] https://governance.openstack.org/tc/resolutions/20220414-drop-lower-constraints.html

Change-Id: Ib425c4791477803224460b536fe88c506e36d623
2023-09-14 18:49:00 +02:00
Pierre Riteau 4bec9288e3 Update copyright date for release notes
This is a small change to force refresh of release notes.

Change-Id: I08e494d1e0becea3b7aa7a756a514a9c3974deb9
2023-03-20 15:49:33 +01:00
OpenStack Release Bot 5363e624c9 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: I5cd78fadf94425d247d4adb7b8a14dde4477a0c3
2023-02-28 13:31:05 +00:00
manchandavishal 58acda9e06 Update tox.ini for tox4
OpenStack CI now uses tox4 by default. This patch
drop "skipsdist = True". When skipsdist=True is specified,
a target application is not installed into a tox env, but
there seems no reason to do so. In various other OpenStack
projects, a target applicatin needs to be installed into a
tox venv, for example, in docs and/or linter jobs and it
causes failures with tox4. So dropping it would avoid potential
future failures.

Change-Id: I18d5ee7f96e77e345f304536bbc385d87bb859f2
2023-01-17 20:56:13 +00:00
Pierre Riteau 323ee3da5d Ignore release note from yoga
This release note is showing up in zed, maybe because it was in the
commit used to tag the yoga release.

Change-Id: I97273807b1e2237f2d836597a861cb0aedc3df49
2022-09-22 14:28:21 +02:00
OpenStack Release Bot bac857f3cf Switch to 2023.1 Python3 unit tests and generic template name
This is an automatically generated patch to ensure unit testing
is in place for all the of the tested runtimes for antelope. Also,
updating the template name to generic one.

See also the PTI in governance [1].

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

Change-Id: Ife0ef9c6a82cc8eb58c9933f63aa07926d85d3f5
2022-09-16 09:26:00 +00:00
OpenStack Release Bot 8699314b30 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: I18567bf8ad810631ce8c2e2e1fa4d45bb4cfb622
2022-09-16 09:25:58 +00:00
manchandavishal 837eb58428 Address RemovedInDjango40Warning
In Django 3.1, django.conf.urls.url() is deprecated
in favor of django.urls.re_path(). For more info see [1]
These were already replaced in Horizon repo by [2].

[1] https://docs.djangoproject.com/en/4.0/releases/3.1/#id2
[2] https://review.opendev.org/c/openstack/horizon/+/827093

Change-Id: I71e21300e6c072f790ae0517bb40d18b01a4a23b
2022-04-29 22:00:57 +05:30
Hervé Beraud be5b93831f Remove unnecessary unicode prefixes
Change-Id: Ibc10c61ee39731501867196ac6fa95b9d6d6c91d
2022-04-20 13:16:50 +02:00
OpenStack Release Bot cdf302f853 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: Ia2d4a7336e573fd26f57f13b5eab907935b9d122
2022-03-08 11:54:49 +00:00
OpenStack Release Bot 80b9177a75 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: Ie57d6b7dadca91c38d468b0398146304c9d0b96d
2022-03-08 11:54:48 +00:00
Pierre Riteau fb9ae6e2c2 Display error details
The red error box will now show why a lease failed to be created or
updated, for example if not enough resources are available.

Also remove "Please try again" which is not a helpful message.

Change-Id: Id0b39fd151956ae6b08ab503a7ae0c5dc09af7f6
2022-02-15 12:35:58 +01:00
Zuul d30f9f45aa Merge "Updating python testing classifier as per Yoga testing runtime" 2022-02-10 16:26:09 +00:00
Mark Powers 96b3921d77 Add documentation for configuring availability calendar
This adds documentation explaining how to enable, configure the
calendar attribute, and what permissions are needed to use the
calendar.

Change-Id: I80026407ab537b7967ccbd2965d66f40018c4c0e
2022-01-31 10:03:46 -06:00
manchandavishal f03cd5b3dc Updating python testing classifier as per Yoga testing runtime
Yoga testing runtime[1] has been updated to add py39
testing as voting. Unit tests update are handled by the
job template change in openstack-zuul-job

- https://review.opendev.org/c/openstack/openstack-zuul-jobs/+/820286

this commit updates the classifier in setup.cfg file.

[1] https://governance.openstack.org/tc/reference/runtimes/yoga.html

Change-Id: I189ac002fcd7b1950ed15626e04cdf8e941aa690
2022-01-31 10:42:21 +05:30
Mark Powers d6398f5e7a Add a resource availability calendar for hosts
This adds a calendar view where users can see a timeline of resources,
showing when each resource is reserved.

Implements: blueprint calendar-view
Change-Id: I4f2649d6c9538037dff4747ef4a8210da3666354
2022-01-27 16:06:50 +01:00
OpenStack Release Bot eda400f1ec 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: I63e4653cfb8c068a2ea7d053ea6a50af6f4ae5c1
2021-09-17 13:48:00 +00:00
OpenStack Release Bot 563ad1aed9 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: Ib879910f6837b5a54921b661c015581367a38505
2021-09-17 13:47:58 +00:00
Takashi Natsume 5876f70d95 Change minversion of tox to 3.18.0
The patch bumps min version of tox to 3.18.0 in order to
replace whitelist_externals with allowlist_externals option.
https://github.com/tox-dev/tox/blob/master/docs/changelog.rst#v3180-2020-07-23

Signed-off-by: Takashi Natsume <takanattie@gmail.com>
Change-Id: I8799f81b3bb6c305e14d589066bb8127b7f556fa
2021-05-31 12:19:19 +02:00
Pierre Riteau 46ac7b8c7d Fix PDF docs build
Update tox config to include upper-constraints as dependencies. This
resolves issues with building PDF docs.

Change-Id: I1d83437079f224a0d560dd3cc339bf3ce5213534
2021-05-31 11:52:51 +02:00
OpenStack Release Bot c33709700f 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: I978b4edde3c0d31051fcc13868196371c60cf8a7
2021-03-24 13:07:06 +00:00
OpenStack Release Bot 2de6bc0794 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: Ic35d7ac19477f40d02dd83c57d8416d8885c8ef5
2021-03-24 13:06:44 +00:00
Zuul f90eac95dd Merge "Change dashes to underscore in setup.cfg" 2021-03-11 13:51:08 +00:00
Pierre Riteau c6db787140 Change dashes to underscore in setup.cfg
Recent versions of setuptools are warning that usage of dash-separated
keys will not be supported in future versions.

Change-Id: I40e09327f4d3d9db183aaea8eaedc52e1d5e9233
2021-03-11 06:23:59 +01:00
Zuul aefcb17f2f Merge "Use TOX_CONSTRAINTS_FILE" 2021-02-16 16:47:30 +00:00
manchandavishal 99d7832230 Fix lower-constraints job
This patch bumps PyYAML version to 3.13 to fix the lower-constraints
job.

Change-Id: Ibf10dcc2a4551762d68ed47f3ec6cf8635225a15
2021-02-16 14:43:37 +01:00
manchandavishal 63012469a0 Use TOX_CONSTRAINTS_FILE
UPPER_CONSTRAINTS_FILE is old name and deprecated.
This allows to use upper-constraints file as more
readable way instead of UPPER_CONSTRAINTS_FILE=<lower-constraints file>.
For more info. please refer [1].

[1] https://zuul-ci.org/docs/zuul-jobs/python-roles.html#rolevar-tox.tox_constraints_file

Change-Id: Id062b4014a61adf75fd9917a6928c0521739fc01
2021-02-16 12:32:21 +00:00
Zuul 9120374151 Merge "Configure bandit security linter" 2020-10-08 23:51:12 +00:00
Pierre Riteau 0a184a0a05 Configure bandit security linter
Change-Id: I4c3b4fec50e7b2aedd8cb3b7dfa5dacd0d44c329
2020-10-02 16:48:11 +02:00
Lukas Euler 33c58438ab Use json.loads instead of eval for JSON parsing
Also fixed error messages.

Change-Id: I998d6929ad05d9b5bc4e07f27f3f9cbf2dd64c68
Closes-Bug: #1895688
2020-09-30 19:07:43 +02:00
OpenStack Release Bot 3dac655641 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: Ia4d5752dffddb9374f65a3b970ef8e69445e4f8f
2020-09-22 14:13:21 +00:00
OpenStack Release Bot ccafbb5574 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: I9a37c63b6600f32db80eba60a970762b2e572809
Sem-Ver: feature
2020-09-22 14:13:19 +00:00
manchandavishal f494ec1941 Cleanup for Refactor-error-messages
This patch is a clean-up patch for refactor-error-messages bp
which remove the exception message from base message otherwise
the same exception message display twice like
this https://ibb.co/XyFWMdz .

Change-Id: Ia9b66536afe2c0122b652c58d9e11235f962a71c
2020-08-26 11:45:59 +00:00
Zuul 9b5ea99863 Merge "drop mock from lower-constraints and requirements" 2020-06-23 09:28:23 +00:00
Zuul 1cd8b09e60 Merge "Stop to use the __future__ module." 2020-06-23 09:22:53 +00:00
Zuul a5a603cac0 Merge "Switch to newer openstackdocstheme and reno versions" 2020-06-09 09:22:39 +00:00
Hervé Beraud 1bc2c223b1 drop mock from lower-constraints and requirements
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 and requirements.

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

Change-Id: I310cb8deafdd85498d3f425257506e11332c298c
2020-06-08 22:24:24 +02:00
Hervé Beraud daf0e0d40c 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: I3c11cfe1e5e87cd74e2b679aac906898ffdb1b27
2020-06-02 19:35:42 +02:00
Zuul 4b66dd64ca Merge "Add Python3 victoria unit tests" 2020-05-26 09:47:00 +00:00
Zuul 626b179e0a Merge "Add py38 package metadata" 2020-05-26 09:40:42 +00:00
Zuul 411ef8908f Merge "Bump default tox env from py37 to py38" 2020-05-26 09:40:41 +00:00
OpenStack Release Bot dd86bf546a 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: Id1f02e987ef7c51426abc282511b9810b4587487
2020-05-26 09:27:03 +00:00
OpenStack Release Bot b3d4325764 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: Ib9f1d03d75792aa635a74d2eccf8a0a4c135ece5
Sem-Ver: feature
2020-05-26 09:12:35 +00:00
Andreas Jaeger d249b802be 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.

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: I882ab18020ee8a15a3204e72d1bf68f4d5195b14
2020-05-21 20:18:30 +02:00
manchandavishal 76040f4ce0 Bump default tox env from py37 to py38
Python 3.8 is now our highest level supported python runtime.
This updates the default tox target environments to swap out
py37 for py38 to make sure local development testing is
covering this version.

This does not impact zuul jobs in any way, nor prevent local
tests against py37. It just changes the default if none is
explicitly provided.

Change-Id: Ia8695eb481235043b6aedda2c92aeb7f49a3c00b
2020-05-15 17:43:57 +00:00
manchandavishal 049594c28c 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: I65f2574089ae7eda8e028a8b2ee415c6acc9c971
2020-05-15 17:40:07 +00:00
Ghanshyam Mann 98944bf7d6 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: I9bfb66c5e21ca3c1b81f84fbd46df7ce34d86378
2020-05-13 08:08:35 +00:00
Pierre Riteau 4209178fcc Fix build of html docs
Change I379c086a15477da4b0223fddd48035c829992c88 mistakenly generated
HTML docs into the wrong folder.

Change-Id: Ia9a9025b773448598891fc229166b668f21fb7b4
2020-05-12 17:13:19 +02:00
Andreas Jaeger 26fda6b697 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
- Switch to using sphinx-build
- Cleanup doc/source/conf.py to remove now obsolete content.
- Use newer openstackdocstheme version
- Update hacking to version 3.0; remove hacking and friends
  from requirements, they are not needed; fix warnings found
- Use unittest.mock

Change-Id: I379c086a15477da4b0223fddd48035c829992c88
2020-04-16 15:23:47 +02:00