Commit Graph

233 Commits

Author SHA1 Message Date
OpenStack Release Bot 4a7c0e9944 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: I3eea72b8a5e19add16fe497f817e6b28afa06dc0
2024-03-08 13:58:34 +00:00
Zuul 62e25aa314 Merge "reno: Update master for unmaintained/wallaby" 2024-03-05 20:55:39 +00:00
Zuul 5fd5976f35 Merge "reno: Update master for unmaintained/victoria" 2024-03-05 20:51:07 +00:00
OpenStack Release Bot ee25d60157 reno: Update master for unmaintained/xena
Update the xena release notes configuration to build from
unmaintained/xena.

Change-Id: Ib3a6fecc31123480781b423766de9c0dd3163d7d
2024-03-05 18:28:07 +00:00
OpenStack Release Bot d9cc3a591a reno: Update master for unmaintained/wallaby
Update the wallaby release notes configuration to build from
unmaintained/wallaby.

Change-Id: Id965647eac46762d168eefe8befa34e4445a98ff
2024-03-05 18:27:26 +00:00
OpenStack Release Bot 9e2684e500 reno: Update master for unmaintained/victoria
Update the victoria release notes configuration to build from
unmaintained/victoria.

Change-Id: I5c6f2103c9e041637379f48ec23e01342b0123c1
2024-03-05 18:26:46 +00:00
OpenStack Release Bot 8eabd1e8a3 reno: Update master for unmaintained/yoga
Update the yoga release notes configuration to build from
unmaintained/yoga.

Change-Id: I5c90433de528f8743f34e3d636af62d5cd314e58
2024-02-05 17:00:16 +00:00
Ghanshyam Mann 6f20a2b0ce Update python classifier in setup.cfg
As per the current release tested runtime, we test
till python 3.11 so updating the same in python
classifier in setup.cfg

Change-Id: I4dff67cd3b0eb72bca2dd8d53f27c19967c5696c
2024-01-04 20:30:54 +00:00
Sairam Vengala c3e0388543 Use generic testing template
Change If402f9ae0ca06fec0 replaced cycle-specific testing templates
that had to be changed in each project's zuul config file with a
generic template that only needs to be updated in one place, namely,
in the openstack-zuul-jobs repo.

Apparently python-blazarclient didn't get the memo, so we fix that now.

Change-Id: I8a3ea54a4fb89564f446d2d0882c5822719e10f9
2023-09-27 11:27:16 +05:30
OpenStack Release Bot e491d3c656 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: I8923bd604b541be5aca5b06852c46af9f63bf252
2023-09-08 14:43:41 +00:00
OpenStack Release Bot 9acb735cfe 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: I8eb0d9e32b16730495ba358706d36296ce1db053
2023-02-24 15:14:17 +00:00
jakecoll 30eab20112 Add Resource Allocations API support
The Resource Allocation API was added in Stein. This adds support for
querying it with blazarclient. Only the host resource type is supported
for now.

Co-Authored-By: Matt Crees <mattc@stackhpc.com>
Co-Authored-By: Pierre Riteau <pierre@stackhpc.com>
Change-Id: I28f45320164188df73b70d4c9e04c5e53655062e
2023-02-17 09:50:42 +01:00
Matt Crees 6c0ae07ee2 Separate ID parser argument from ShowCommand
Move the ID parser argument from the base ShowCommand class to the
resource classes. This allows us to define arguments in any order,
instead of requiring the ID to be first.

Change-Id: I8929e631562dc1ed5cd78f71e59517aa50429aca
2023-01-23 10:39:36 +00:00
OpenStack Release Bot ed22ab79a9 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: I88eaabe87ef5ea1642754c9fe7138595cded58ea
2022-09-06 12:29:01 +00:00
OpenStack Release Bot f13f7f265d 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: I275e468216b589bb5e2f44474337b469849cdc2d
2022-09-06 12:28:59 +00:00
niuke 2dabe78770 remove unicode prefix from code
Change-Id: I364acb3efbd1cb9e1025b19ebf5c08b4ac8626e2
2022-08-12 22:30:16 +08:00
Radosław Piliszek 4c994853e2 Remove Babel from requirements
It's not a runtime dependency (and even oslo.i18n has dropped it).
For details, see [1].

[1] http://lists.openstack.org/pipermail/openstack-discuss/2020-April/014227.html

Change-Id: I604ba0b901474b00efa704e6c206d0400b7cec34
2022-08-02 15:42:59 +00:00
Radosław Piliszek 4c95a4e67a [CI] Run Zed jobs instead of Yoga
Change-Id: I8f4a9ff8d9986f7bc9bb2f5076cee9351bca4173
2022-08-02 17:42:19 +02:00
Pierre Riteau dc24087857 Update configuration for compatibility with Sphinx 5
Change-Id: Iffcc27894844c0f281d1fcafc25fed583542e634
2022-06-06 20:09:51 +02:00
Ghanshyam Mann d2f6c39f5c 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#proposal

Change-Id: If4f5b6aff58241c16da70fcf61e5d00324a64af0
2022-04-30 15:33:24 -05:00
OpenStack Release Bot 1739dd763b 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: Ic442465b7278d16a4747f8f8b70d0e96e34374d9
2022-03-03 10:51:09 +00:00
Zuul 59fd6c0167 Merge "Add commands for resource property API" 2022-02-23 23:46:23 +00:00
Mark Powers cf2de7cb63 Add commands for resource property API
This adds commands for interacting with the resource property API
that is specified in blueprint resource-properties-discovery-api.

Change-Id: Ibe024dc9b2d02d4061ab7eb68a4607d1356a6318
2022-02-23 22:47:39 +01:00
Ghanshyam Mann 9354e62300 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: I0d4b3163b834efdce382277b1ef6c85b98f1d643
2021-12-14 02:18:19 +00:00
OpenStack Release Bot 2091bd933a 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: I1f7d28b47a069311e97db655baf0074a01b7f946
2021-09-10 15:55:24 +00:00
OpenStack Release Bot 55395d00f9 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: I7d25847dba4a0bfe0a41c7efc6d66c6498d886ea
2021-09-10 15:55:21 +00:00
Sam Morrison cfabd241df Fix up client init
Commit c9114b7eb8 introduced a critical
bug where service_type is not being passed through to the client making
it fail.

Change-Id: I6c19199785109cacef6d8b06e08d926efc6d4890
Closes-Bug: #1942330
2021-09-02 12:44:24 +02:00
Zuul d2eb2f6583 Merge "Default client service type to reservation" 2021-08-26 16:10:24 +00:00
Zuul 082fe71164 Merge "Migrate from testr to stestr" 2021-08-18 21:07:53 +00:00
Mark Powers f2277b5f7a Add openstackclient support
This adds support for the recommended CLI using the OpenStackClient,
without modifying the existing Blazar shell CLI.

The existing shell command classes are used, by introducing a check in
the base comand class to use either the client passed by Blazar shell,
or the client using the osc_lib client_manager.

The argument --physical-reservation is also removed for the create lease
command when using the OpenStack client.

Implements: blueprint openstackclient-support
Change-Id: I97a7b91f0d05efc887307ac167e5c368276d4f81
2021-08-05 10:24:28 -05:00
Anand Bhat 27c426a76f Migrate from testr to stestr
* Replace .testr.conf by .stestr.conf for migration and update
  .gitignore, test-requirements.txt and lower-constraints.txt
  files accordingly
* Use py3 as the default runtime for tox and 3.18.0 as the
  minversion for tox
* Add a new job, openstack-cover-jobs, to run the coverage in Zuul

Change-Id: If6fa3f2f861d5eb6787743edcc6333e5aacef7d0
2021-07-01 16:12:14 +05:30
Sam Morrison c9114b7eb8 Default client service type to reservation
Provide a default service type to avoid having to specify one,
this brings it inline with other openstack clients.

Change-Id: Idf423a87402894c131e6a57a86edc78ddcfd3ff6
2021-03-19 14:46:15 +11:00
OpenStack Release Bot 1cf4d73dd5 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: Ie52d284f270891d09bb09a7ada1e8abdf89bcfcb
2021-03-18 10:21:58 +00:00
OpenStack Release Bot c3fef3d890 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: Id9f779a7bb378518711906c9a59ea934550d304b
2021-03-18 10:21:20 +00:00
Pierre Riteau a2d8abf557 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: I5f0ad65e0dfc98e8e9693e66355a4bfd79d3bcf1
2021-03-11 06:20:49 +01:00
Pierre Riteau 22cafd21a5 Provide a default affinity value
Change-Id: Ifd55fce5f9a6eb78aa6a909beab0d502b67c1d7a
Closes-Bug: #1917636
2021-03-03 16:28:05 +01:00
Zuul 67a15bfe21 Merge "Use unittest.mock instead of third party mock" 2021-03-01 16:40:27 +00:00
Zuul 0002ded0fd Merge "Remove use of mock.seal()" 2021-03-01 16:30:40 +00:00
Pierre Riteau 65e5f9b785 Uncap PrettyTable
This is now maintained as a Jazzband project [1].

[1] https://github.com/jazzband/prettytable

Change-Id: I29f68f2d08aa707dd328504f49e80fcd2d3f771b
2021-02-23 15:53:28 +01:00
Sean McGinnis d2503ab476 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: I692abac2bf1fe118c27af043e71f315c8354c8a0
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2021-02-23 14:20:15 +00:00
Pierre Riteau 1db6cb37c6 Remove use of mock.seal()
The seal function was introduced in unittest.mock in Python 3.7. It is
preventing us from using unittest.mock instead of mock.

We can restore it when the minimum runtime is Python 3.7 or later.

Change-Id: Ieb26af07da0c4084fb8c4ea2c4d461eb5595f583
2021-02-23 15:10:51 +01:00
Martin Kopec e875b75392 Bump hacking max version to 3.0.1 and fix pep8
pep8 job is failing because the version of flake8
(flake8<2.7.0,>=2.6.0) requested by hacking<1.2.0 is not
compatible with pyflakes>=2.1.1. Therefore the patch increases
the max version of hacking.
Also the patch fixes a few pep8 errors.

Change-Id: Ib9f1cb5a77947cfb1ab28a7f26e97edba007466c
2021-01-03 11:52:53 +00:00
wuchunyang 56c539ace9 Replace deprecated UPPER_CONSTRAINTS_FILE variable
UPPER_CONSTRAINTS_FILE is old name and deprecated
-https://zuul-ci.org/docs/zuul-jobs/python-roles.html#rolevar-tox.tox_constraints_file
This allows to use lower-constraints file as more
readable way instead of UPPER_CONSTRAINTS_FILE=<lower-constraints file>.

Change-Id: Ib52b501dc43bc9d6685ffd2dd79ceb881044a1f3
2020-11-27 09:27:30 +00:00
wangzihao cff1b05773 Remove six
Replace the following items with Python 3 style code:

- six.text_type
- six.StringIO

Change-Id: I9db56ea304938d66753106357e572f307d226850
2020-11-09 14:34:07 +00:00
wu.chunyang aa0e1dc076 Remove the unused coding style modules
Python modules related to coding style checks (listed in blacklist.txt in
openstack/requirements repo) are dropped from lower-constraints.txt
they are not needed during installation.

Change-Id: I3be1bf801a386052e42c070c0710680f2f8d2a19
2020-10-22 00:33:26 +08:00
maaoyu e4ccb1dfd4 bump py37 to py38 in tox.ini
in 'victoria' cycle, we should test py38 by default.

ref:
  https://governance.openstack.org/tc/reference/runtimes/victoria.html

Change-Id: I23079372b2cbbc083f6c4fef1df2268755a2da1e
2020-10-12 16:58:36 +08:00
maaoyu db0aeecfe1 Remove install unnecessary packages
The docs requirements migrated to doc/requirements.txt
we need not install things from requirements.txt.

Change-Id: Iebf119fe20e8767d3d8f088d889eb5a8d38a81b2
2020-09-24 08:56:51 +08:00
OpenStack Release Bot 802605a988 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: I01d8d50d76b8cc9b76d3bd84bf3c67e53f542fce
2020-09-10 19:52:05 +00:00
OpenStack Release Bot c393b6d2cd 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: Ibf43fb846edd1cf76af59aa5e93ccd9de7ffe4c6
Sem-Ver: feature
2020-09-10 19:52:03 +00:00
Zuul 5473d56736 Merge "Fixup failing tests due to passing date threshold" 2020-09-10 17:12:23 +00:00