Commit Graph

27 Commits

Author SHA1 Message Date
Ghanshyam Mann e326856965 Update gate jobs as per the 2023.1 cycle testing runtime
As per 2023.1 testing runtime[1], we need to test on Ubuntu
Jammy (which will be taken care by tempest and devstack patches
to move base jobs to Jammy) and at least single job to run on
Ubutnu Focal (for smooth upgrade). Also, python 3.10 testing is
voting now.

This commit makes python 3.10 functional job as voting and python 3.10
unit test job are voting via generic template. Python 3.8/3.9 jobs are
running on Focal and python 3.10 on Jammy.

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

Change-Id: I97b82399af9a640353ba979965c202afcb224163
2022-11-22 19:47:01 +00:00
Takashi Natsume 9101797227 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].

I needed to squash in another change that is dropping the py36 and py37
support. We cannot do that separately as those jobs are already failing.

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

Change-Id: I378d5c3c1f3e96696670a4865caf5901269a5ee4
2022-06-01 14:08:13 +02:00
Ghanshyam Mann 0c24adb61e Updating python testing 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 makes other required changes in zuul.yaml and
update the classifier in setup.cfg file.

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


Change-Id: Ia2caf2508604743cfddbdc76bc520641d1c647d1
2021-12-14 02:26:24 +00:00
Zuul b6f1e6b450 Merge "Add py38 package metadata" 2021-05-14 15:22:05 +00:00
likui 6914082606 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: I08a9a737d4c897405ad71b9b900654b716705894
2021-05-11 17:40:48 +08:00
likui c16bff5abc Add py38 package metadata
in 'victoria' cycle, we should test py38 by default.

Change-Id: I051511644d75781aa1080fd9f7fadbfc6ce5a902
2020-10-09 18:17:25 +08:00
likui d364b79616 Remove Babel
This is the default role and not needed anymore

also remove Babel from requirements[1]
[1] http://lists.openstack.org/pipermail/openstack-discuss/2020-April/014227.html

Change-Id: Ie237d0036088dfdf615657ae34d15238f3512baa
2020-08-05 15:57:58 +08:00
Andreas Jaeger 2abc37868b 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
- Use newer openstackdocstheme version
- Remove install_command from tox.ini, the default is fine
- Update to hacking 3.0, fix warnings

Change-Id: If66a87c519ce82ee7890ac3e133afef13fb35bd2
2020-04-13 11:28:10 +02:00
Zuul e4ceef795a Merge "[ussuri][goal] Drop python 2.7 support and testing" 2019-12-06 01:05:01 +00:00
Tetsuro Nakamura 52ef27a8ce [ussuri][goal] Drop python 2.7 support and testing
OpenStack is dropping the py2.7 support in ussuri cycle.

"osc-placement" is ready with python 3 and ok to drop the
python 2.7 support.

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

Change-Id: Ibd9d1c839f820d8c8ea0ad0979d5dca9223d11dc
2019-11-23 15:57:43 +00:00
Matt Riedemann 9b86d94559 Add resource provider allocation unset command
Adds the "openstack resource provider allocation unset" command which
allows removing resource provider(s) from the set of allocations for
the given consumer. This can be useful when a consumer has allocations
against more than one resource provider and
"openstack resource provider allocation delete" is undesirable as it
removes all allocations for the consumer. The new unset command requires
"--os-placement-api-version 1.12" or greater.

Note that the --provider option can be specified multiple times.

If the resulting allocations are all gone and 1.28 or greater is not
being used, a DELETE is called rather than PUT since
PUT /allocations/{consumer_id} before 1.28 does not allow an empty
"allocations" dict in the request body. In this case nothing is output
similar to the "openstack resource provider allocation delete" command.

Change-Id: I627bfd1ff699d075028da6afafbe7fb9b2f13058
Story: #2006779
Task: #37304
2019-11-19 12:38:42 -05:00
Corey Bryant 75f2480427 Add Python 3 Train unit tests
This is a mechanically generated patch to ensure unit testing is in place
for all of the Tested Runtimes for Train.

See the Train python3-updates goal document for details:
https://governance.openstack.org/tc/goals/train/python3-updates.html

Change-Id: I530fcaba664cd21e46ddf8011919954281a04865
Story: #2005924
Task: #34236
2019-07-05 15:43:06 -04:00
Ghanshyam Mann f15d7ad55b Dropping the py35 testing
All the integration testing has been moved to
Bionic now[1] and py3.5 is not tested runtime for
Train or stable/stein[2].

As per below ML thread, we are good to drop the py35
testing now:
http://lists.openstack.org/pipermail/openstack-discuss/2019-April/005097.html

[1] http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004647.html
[2]
https://governance.openstack.org/tc/reference/runtimes/stein.html
https://governance.openstack.org/tc/reference/runtimes/train.html

Change-Id: I15db8bfd2309814979a72e2a52d88514d9ec4e74
2019-05-10 17:06:21 +00:00
Chris Dent 2205ce6d38 Indicate python 3.6 support in the classifiers
This is useful for installers to be aware of, and prior
to [1] could cause issues for devstack/grenade.

Though osc-placement also works for 3.7, we don't yet
have formal tests for that. When we do we should update
the classifiers.

[1] https://review.openstack.org/649096

Change-Id: I451c2de94c6ed478bd3295978312e4fe3ce36648
2019-04-05 11:41:52 +01:00
98k c9a80ed4db Update home-page
Change-Id: I7c6d72d335885a71cb31a41c1fb65884d7083f9d
2019-03-28 13:12:21 +00:00
Takashi NATSUME 3791b22437 Update author-email in setup.cfg
The openstack-dev mailing list has been replaced with
the openstack-discuss mailing list (*).
So replace the openstack-dev mailing list with
the openstack-discuss mailing list in setup.cfg.

*: http://lists.openstack.org/pipermail/openstack-dev/2018-September/134911.html

Change-Id: I4b2a390fab54e3fc44cd8b6406ecaa54b1abd7ad
2018-12-04 04:30:36 +00:00
Andrey Volkov d343dcb7ca CLI allocation candidates (v1.10)
Adds the "openstack allocation candidate list" command.

Change-Id: I5508243771e20a9ab7724731a4289b218594dee5
Partially-Implements: blueprint placement-osc-plugin-rocky
2018-06-29 16:52:46 -04:00
Andrey Volkov fcc8081df7 Usages per project and user (v1.8, v1.9)
Adds support to "openstack resource provider allocation set"
for microversion 1.8 where --project-id and --user-id are
required (and highly recommended).

Adds a new "openstack resource usage show" command
for microversion 1.9 and GET /usages.

Change-Id: I8ec19c8138611a06b41ec3ad949f45b8f6d7ec17
Partially-Implements: blueprint placement-osc-plugin-rocky
2018-06-29 16:52:41 -04:00
Andrey Volkov d839cd9dc5 Resource class set (v1.7)
Change-Id: I449ee4574091c9f5babe0b31d8a771a086d7bc1c
Partially-Implements: blueprint placement-osc-plugin-rocky
2018-05-17 09:54:17 -04:00
Andrey Volkov 61b08c5ac7 CLI for traits (v1.6)
Change-Id: Id1543439bc5e97f7d78aa5e062a9b188d8fb8cbe
Partially-Implements: blueprint placement-osc-plugin-rocky
2018-05-15 14:35:45 +02:00
Andrey Volkov 73aaab7a02 CLI for resource classes (v1.2)
Set method was skipped due to two reason that from version 1.7 it is
not allowed to rename resource classes.

Change-Id: Id18aab2a95849bc60769f2f81c363c17d049b21f
2018-01-24 11:35:20 -05:00
Andrey Volkov e22c32e441 CLI for aggregates (v1.1)
Change-Id: Ia37c051c7451d174b8dbed8ab1bc13b6f2f0a3fe
2018-01-23 10:58:17 -05:00
Roman Podoliaka 4fd95eb2a8 CLI for usages
Co-Authored-by: Andrey Volkov <avolkov@mirantis.com>
Blueprint: placement-osc-plugin
Change-Id: I0c41f1140a97411019379dc703b1cf388865f8b3
2017-12-11 10:42:34 -08:00
Roman Podoliaka 5c65e79783 CLI for allocations
Co-Authored-by: Andrey Volkov <avolkov@mirantis.com>
Blueprint: placement-osc-plugin
Change-Id: I699fd01d6dbd1c9c5186d1b86499ae2bae94286a
2017-12-11 10:42:32 -08:00
Roman Podoliaka d6e223a191 CLI for inventories
Co-Authored-by: Andrey Volkov <avolkov@mirantis.com>
Blueprint: placement-osc-plugin
Change-Id: Ie46b6217fda65cb5d0f1379d0b4a986b4c30a3eb
2017-10-24 15:37:14 +03:00
Roman Podoliaka 1b1ae94ed8 CLI for resource providers
Co-Authored-by: Andrey Volkov <avolkov@mirantis.com>
Blueprint: placement-osc-plugin
Change-Id: Ifa82bc0ae5c067fd39a932e9e0ec02d5987ead46
2017-09-19 16:14:01 +03:00
Roman Podoliaka 2c538f3ea0 Initial commit
- import coockiecutter template
- set up basic testing
- implement interface of an OSC plugin
2017-03-22 11:58:28 +02:00